[Fix] New invoice showing old paid amount if POS Profile is not created (#11160)

This commit is contained in:
rohitwaghchaure 2017-10-15 19:09:14 +05:30 committed by Makarand Bauskar
parent 496174bbdf
commit 8bf7230fcc

View File

@ -103,9 +103,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
this.make_payment_modal();
} else {
this.frm.doc.payments.map(p => {
if (p.amount) {
this.payment.dialog.set_value(p.mode_of_payment, p.amount);
}
this.payment.dialog.set_value(p.mode_of_payment, p.amount);
});
this.payment.set_title();