fix: Check if onload property exists in the form object
(cherry picked from commit 41b2d98c3f)
This commit is contained in:
committed by
mergify-bot
parent
740a9da1ee
commit
14ac2d39ab
@@ -1049,7 +1049,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user