mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
fix: Cannot read properties of null (reading 'doc')
(cherry picked from commit 62c3389bd6)
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -1510,8 +1510,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
item_grid.set_column_disp(fname, me.frm.doc.currency != company_currency);
|
item_grid.set_column_disp(fname, me.frm.doc.currency != company_currency);
|
||||||
});
|
});
|
||||||
|
|
||||||
var show = (cint(cur_frm.doc.discount_amount)) ||
|
var show = (cint(this.frm.doc.discount_amount)) ||
|
||||||
((cur_frm.doc.taxes || []).filter(function(d) {return d.included_in_print_rate===1}).length);
|
((this.frm.doc.taxes || []).filter(function(d) {return d.included_in_print_rate===1}).length);
|
||||||
|
|
||||||
$.each(["net_rate", "net_amount"], function(i, fname) {
|
$.each(["net_rate", "net_amount"], function(i, fname) {
|
||||||
if(frappe.meta.get_docfield(item_grid.doctype, fname))
|
if(frappe.meta.get_docfield(item_grid.doctype, fname))
|
||||||
|
|||||||
Reference in New Issue
Block a user