Merge pull request #23353 from SDLyu/patch-1
fix: missing default Sales Taxes And Charges Template when frm.doc.taxes is []
This commit is contained in:
commit
bbc6aee803
@ -417,7 +417,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
var taxes_and_charges_field = frappe.meta.get_docfield(me.frm.doc.doctype, "taxes_and_charges",
|
||||
me.frm.doc.name);
|
||||
|
||||
if (!this.frm.doc.taxes_and_charges && this.frm.doc.taxes) {
|
||||
if (!this.frm.doc.taxes_and_charges && this.frm.doc.taxes && this.frm.doc.taxes.length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user