fix: Use extend_cscript function to properly extend class methods to cscript
This commit is contained in:
@@ -166,7 +166,9 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
|
||||
"account_list": frappe.flags.round_off_applicable_accounts
|
||||
},
|
||||
callback(r) {
|
||||
frappe.flags.round_off_applicable_accounts.push(...r.message);
|
||||
if (r.message) {
|
||||
frappe.flags.round_off_applicable_accounts.push(...r.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user