mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
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:
@@ -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",
|
var taxes_and_charges_field = frappe.meta.get_docfield(me.frm.doc.doctype, "taxes_and_charges",
|
||||||
me.frm.doc.name);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user