Merge pull request #43884 from ljain112/fix-pos-os

fix: recalculate outstanding after save on checkout for POS Invoice
This commit is contained in:
ruthra kumar
2024-10-30 10:06:29 +05:30
committed by GitHub

View File

@@ -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);