mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Merge branch 'version-13-hotfix' into asset_bug_fixes_13
This commit is contained in:
@@ -115,7 +115,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
|||||||
calculate_item_values: function() {
|
calculate_item_values: function() {
|
||||||
let me = this;
|
let me = this;
|
||||||
if (!this.discount_amount_applied) {
|
if (!this.discount_amount_applied) {
|
||||||
for (item of this.frm.doc.items || []) {
|
for (const item of this.frm.doc.items || []) {
|
||||||
frappe.model.round_floats_in(item);
|
frappe.model.round_floats_in(item);
|
||||||
item.net_rate = item.rate;
|
item.net_rate = item.rate;
|
||||||
item.qty = item.qty === undefined ? (me.frm.doc.is_return ? -1 : 1) : item.qty;
|
item.qty = item.qty === undefined ? (me.frm.doc.is_return ? -1 : 1) : item.qty;
|
||||||
|
|||||||
Reference in New Issue
Block a user