From 63668eb855252cd2b0c39356c21660871463eae5 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Tue, 29 Oct 2024 12:15:59 +0530 Subject: [PATCH] fix: recalculate outstanding after save on checkout for POS Invoice (cherry picked from commit 9ce2184c6628075116f7cb93df709a91680ed553) --- erpnext/selling/page/point_of_sale/pos_payment.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erpnext/selling/page/point_of_sale/pos_payment.js b/erpnext/selling/page/point_of_sale/pos_payment.js index 232b6a02123..9f389dfa81f 100644 --- a/erpnext/selling/page/point_of_sale/pos_payment.js +++ b/erpnext/selling/page/point_of_sale/pos_payment.js @@ -350,6 +350,11 @@ erpnext.PointOfSale.Payment = class { } checkout() { + const frm = this.events.get_frm(); + frm.cscript.calculate_outstanding_amount(); + frm.refresh_field("outstanding_amount"); + frm.refresh_field("paid_amount"); + frm.refresh_field("base_paid_amount"); this.events.toggle_other_sections(true); this.toggle_component(true);