mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 11:44:11 +00:00
fix: recalculate outstanding after save on checkout for POS Invoice
(cherry picked from commit 9ce2184c66)
This commit is contained in:
@@ -350,6 +350,11 @@ erpnext.PointOfSale.Payment = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkout() {
|
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.events.toggle_other_sections(true);
|
||||||
this.toggle_component(true);
|
this.toggle_component(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user