Merge pull request #24817 from AfshanKhan/fix-get_round_off_applicable_accounts-arguments
fix: call get_round_off_applicable_accounts() function when arguments available
This commit is contained in:
commit
98cc7b1751
@ -158,6 +158,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
||||
let me = this;
|
||||
frappe.flags.round_off_applicable_accounts = [];
|
||||
|
||||
if (me.frm.doc.company) {
|
||||
return frappe.call({
|
||||
"method": "erpnext.controllers.taxes_and_totals.get_round_off_applicable_accounts",
|
||||
"args": {
|
||||
@ -168,6 +169,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
||||
frappe.flags.round_off_applicable_accounts.push(...r.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
determine_exclusive_rate: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user