fix: round unreconciled_amount before asserting

This commit is contained in:
Dany Robert
2023-11-20 14:36:58 +05:30
committed by GitHub
parent b226adeb2f
commit 392ee2e0fd

View File

@@ -533,7 +533,7 @@ def check_if_advance_entry_modified(args):
where where
name = %(voucher_no)s and docstatus = 1 name = %(voucher_no)s and docstatus = 1
and party_type = %(party_type)s and party = %(party)s and {0} = %(account)s 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( """.format(
party_account_field, precision party_account_field, precision
), ),