Skip to content

Commit

Permalink
fix: failing tests fixed
Browse files Browse the repository at this point in the history
(cherry picked from commit 2ce0786)

# Conflicts:
#	erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py
  • Loading branch information
vishakhdesai authored and mergify[bot] committed Dec 24, 2024
1 parent cc0a478 commit 498abf7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ def subtract_allocations(gl_account, vouchers):
voucher_allocated_amounts = get_total_allocated_amount(voucher_docs)

for voucher in vouchers:
<<<<<<< HEAD
<<<<<<< HEAD
rows = get_total_allocated_amount(voucher[1], voucher[2])
amount = None
Expand All @@ -469,6 +470,9 @@ def subtract_allocations(gl_account, vouchers):
break
=======
rows = voucher_allocated_amounts.get((voucher.get("doctype"), voucher.get("name")))
=======
rows = voucher_allocated_amounts.get((voucher.get("doctype"), voucher.get("name"))) or []
>>>>>>> 2ce07865d3 (fix: failing tests fixed)
filtered_row = list(filter(lambda row: row.get("gl_account") == gl_account, rows))
>>>>>>> 6b847cdb62 (fix: refactor query in get_total_allocated_amount in bank_transaction)

Expand Down

0 comments on commit 498abf7

Please sign in to comment.