Merge pull request #30372 from deepeshgarg007/price_list_ignore_fix
fix: Check if onload property exists in the form object
This commit is contained in:
commit
d180d09916
@ -1070,7 +1070,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(flt(this.frm.doc.conversion_rate)>0.0) {
|
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();
|
this.calculate_taxes_and_totals();
|
||||||
} else if (!this.in_apply_price_list){
|
} else if (!this.in_apply_price_list){
|
||||||
this.apply_price_list();
|
this.apply_price_list();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user