fix: standard formula to calculate the "difference" (#36612)
fix: standard formula to calculate the "difference" (#36612)
(cherry picked from commit 843e77e72d)
Co-authored-by: HarryPaulo <paulo_fabris@hotmail.com>
This commit is contained in:
@@ -153,7 +153,7 @@ frappe.ui.form.on('POS Closing Entry', {
|
|||||||
frappe.ui.form.on('POS Closing Entry Detail', {
|
frappe.ui.form.on('POS Closing Entry Detail', {
|
||||||
closing_amount: (frm, cdt, cdn) => {
|
closing_amount: (frm, cdt, cdn) => {
|
||||||
const row = locals[cdt][cdn];
|
const row = locals[cdt][cdn];
|
||||||
frappe.model.set_value(cdt, cdn, "difference", flt(row.expected_amount - row.closing_amount));
|
frappe.model.set_value(cdt, cdn, "difference", flt(row.closing_amount - row.expected_amount));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user