fix: Ignore for Purchase Invoices

This commit is contained in:
Deepesh Garg
2022-03-24 13:09:55 +05:30
parent 2e33e748ea
commit ed38679d22

View File

@@ -793,7 +793,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
this.frm.set_value('base_paid_amount', flt(base_paid_amount, precision("base_paid_amount"))); this.frm.set_value('base_paid_amount', flt(base_paid_amount, precision("base_paid_amount")));
}, },
calculate_change_amount: function(){ calculate_change_amount: function() {
this.frm.doc.change_amount = 0.0; this.frm.doc.change_amount = 0.0;
this.frm.doc.base_change_amount = 0.0; this.frm.doc.base_change_amount = 0.0;
if(in_list(["Sales Invoice", "POS Invoice"], this.frm.doc.doctype) if(in_list(["Sales Invoice", "POS Invoice"], this.frm.doc.doctype)