Fix missing tax autoload when frm.doc.taxes is []
This commit is contained in:
parent
2aea184f6f
commit
68672af8ab
@ -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…
x
Reference in New Issue
Block a user