Skip to content

Commit

Permalink
Merge pull request #30372 from deepeshgarg007/price_list_ignore_fix
Browse files Browse the repository at this point in the history
fix: Check if onload property exists in the form object
  • Loading branch information
deepeshgarg007 authored Mar 23, 2022
2 parents c3f1ad7 + 78ca88d commit d180d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}

if(flt(this.frm.doc.conversion_rate)>0.0) {
if(this.frm.doc.__onload.ignore_price_list) {
if(this.frm.doc.__onload && this.frm.doc.__onload.ignore_price_list) {
this.calculate_taxes_and_totals();
} else if (!this.in_apply_price_list){
this.apply_price_list();
Expand Down

0 comments on commit d180d09

Please sign in to comment.