Skip to content

Commit

Permalink
fix: standard formula to calculate the "difference" (#36612)
Browse files Browse the repository at this point in the history
fix: standard formula to calculate the "difference" (#36612)

(cherry picked from commit 843e77e)

Co-authored-by: HarryPaulo <paulo_fabris@hotmail.com>
  • Loading branch information
mergify[bot] and HarryPaulo authored Aug 14, 2023
1 parent 90b390c commit 716d5c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ frappe.ui.form.on('POS Closing Entry', {
frappe.ui.form.on('POS Closing Entry Detail', {
closing_amount: (frm, 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));
}
})

Expand Down

0 comments on commit 716d5c0

Please sign in to comment.