Merge pull request #43071 from rohitwaghchaure/fixed-support-21512

fix: Cannot read properties of null (reading 'doc')
This commit is contained in:
rohitwaghchaure
2024-09-09 09:00:13 +05:30
committed by GitHub

View File

@@ -1520,8 +1520,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
item_grid.set_column_disp(fname, me.frm.doc.currency != company_currency);
});
var show = (cint(cur_frm.doc.discount_amount)) ||
((cur_frm.doc.taxes || []).filter(function(d) {return d.included_in_print_rate===1}).length);
var show = (cint(this.frm.doc.discount_amount)) ||
((this.frm.doc.taxes || []).filter(function(d) {return d.included_in_print_rate===1}).length);
$.each(["net_rate", "net_amount"], function(i, fname) {
if(frappe.meta.get_docfield(item_grid.doctype, fname))