fix: calculate totals and taxes

(cherry picked from commit a7ec0c1cec)
This commit is contained in:
Nihantra C. Patel
2024-06-05 15:49:44 +05:30
committed by Mergify
parent 1ead66721d
commit 5544309048

View File

@@ -83,7 +83,7 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
this.frm.doc.paid_amount = flt(this.frm.doc.grand_total, precision("grand_total"));
}
this.frm.refresh_field("taxes");
this.frm.refresh_fields();
}
calculate_discount_amount() {
@@ -841,7 +841,7 @@ erpnext.taxes_and_totals = class TaxesAndTotals extends erpnext.payments {
});
}
this.frm.refresh_field("taxes");
this.frm.refresh_fields();
}
set_default_payment(total_amount_to_pay, update_paid_amount) {