Fixed merge conflict
This commit is contained in:
@@ -609,7 +609,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
||||
this.frm.doc.change_amount = 0.0;
|
||||
this.frm.doc.base_change_amount = 0.0;
|
||||
if(this.frm.doc.paid_amount > this.frm.doc.grand_total && !this.frm.doc.is_return) {
|
||||
var payment_types = $.map(cur_frm.doc.payments, function(d) { return d.type });
|
||||
var payment_types = $.map(this.frm.doc.payments, function(d) { return d.type });
|
||||
if (in_list(payment_types, 'Cash')) {
|
||||
this.frm.doc.change_amount = flt(this.frm.doc.paid_amount - this.frm.doc.grand_total +
|
||||
this.frm.doc.write_off_amount, precision("change_amount"));
|
||||
|
||||
Reference in New Issue
Block a user