Skip to content

Commit

Permalink
fix: Cannot read properties of null (reading 'doc')
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Sep 5, 2024
1 parent f3b91d4 commit 62c3389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 62c3389

Please sign in to comment.