From 9ce2184c6628075116f7cb93df709a91680ed553 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 --- 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 cadbfa70415..204f68320d0 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);