Merge pull request #38217 from rtdany10/payment-reco-rounding-issue

fix: round `unreconciled_amount` before asserting
This commit is contained in:
ruthra kumar
2023-11-21 11:33:42 +05:30
committed by GitHub

View File

@@ -533,7 +533,7 @@ def check_if_advance_entry_modified(args):
where
name = %(voucher_no)s and docstatus = 1
and party_type = %(party_type)s and party = %(party)s and {0} = %(account)s
and round(unallocated_amount, {1}) = %(unreconciled_amount)s
and round(unallocated_amount, {1}) = round(%(unreconciled_amount)s, {1})
""".format(
party_account_field, precision
),