From 8e2e4f0abf5dd185f0c513bb3d818154f061f79d Mon Sep 17 00:00:00 2001 From: ConnCampbell Date: Tue, 7 Jan 2025 17:34:54 -0700 Subject: [PATCH] fix: Bank Reconciliation tool fails to match on expense claims with tax --- hrms/hr/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hrms/hr/utils.py b/hrms/hr/utils.py index ba45c2387e..64dee12512 100644 --- a/hrms/hr/utils.py +++ b/hrms/hr/utils.py @@ -783,9 +783,9 @@ def get_ec_matching_query( ref_rank = frappe.qb.terms.Case().when(ec.employee == common_filters.party, 1).else_(0) + 1 if exact_match: - filters.append(ec.total_sanctioned_amount == common_filters.amount) + filters.append(ec.total_amount_reimbursed == common_filters.amount) else: - filters.append(ec.total_sanctioned_amount.gt(common_filters.amount)) + filters.append(ec.total_amount_reimbursed.gt(common_filters.amount)) else: ref_rank = ConstantColumn(1)