mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge pull request #25438 from nextchamp-saqib/round-off-diff-allowance
fix: ignore fraction difference while making round off gl entry
This commit is contained in:
@@ -171,7 +171,7 @@ def round_off_debit_credit(gl_map):
|
|||||||
else:
|
else:
|
||||||
allowance = .5
|
allowance = .5
|
||||||
|
|
||||||
if abs(debit_credit_diff) >= allowance:
|
if abs(debit_credit_diff) > allowance:
|
||||||
frappe.throw(_("Debit and Credit not equal for {0} #{1}. Difference is {2}.")
|
frappe.throw(_("Debit and Credit not equal for {0} #{1}. Difference is {2}.")
|
||||||
.format(gl_map[0].voucher_type, gl_map[0].voucher_no, debit_credit_diff))
|
.format(gl_map[0].voucher_type, gl_map[0].voucher_no, debit_credit_diff))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user