fix: set_missing_values in SE and re-use the same on all SE mappings

- `set_missing_values` in SE will set actual qty, transfer qty and calculate rate/amount
- Re-use `set_missing_values` wherever SE is doc is being mapped
This commit is contained in:
marination
2022-05-11 14:54:22 +05:30
parent 494ddd1eb4
commit 90a8e924f5
9 changed files with 18 additions and 8 deletions

View File

@@ -1384,7 +1384,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
var me = this;
var args = this._get_args(item);
if (!(args.items && args.items.length)) {
if(calculate_taxes_and_totals) me.calculate_taxes_and_totals();
if (calculate_taxes_and_totals) me.calculate_taxes_and_totals();
return;
}
@@ -1392,7 +1392,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
if (this.frm.doc.__onload && this.frm.doc.__onload.ignore_price_list) {
// Calculate totals even though pricing rule is not applied.
// `apply_pricing_rule` is triggered due to change in data which most likely contributes to Total.
if(calculate_taxes_and_totals) me.calculate_taxes_and_totals();
if (calculate_taxes_and_totals) me.calculate_taxes_and_totals();
return;
}