From fa3580b1ea7c2ba742047e9aa81a11b22e65fae3 Mon Sep 17 00:00:00 2001 From: Heather Kusmierz Date: Thu, 7 Jul 2022 10:55:58 -0400 Subject: [PATCH] feat: update SQL to use filter.bank_account in query --- check_run/check_run/report/positive_pay/positive_pay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_run/check_run/report/positive_pay/positive_pay.py b/check_run/check_run/report/positive_pay/positive_pay.py index 896ccf70..2b03ee22 100644 --- a/check_run/check_run/report/positive_pay/positive_pay.py +++ b/check_run/check_run/report/positive_pay/positive_pay.py @@ -39,7 +39,7 @@ def get_data(filters): WHERE `tabPayment Entry`.reference_date >= %(start_date)s AND `tabPayment Entry`.reference_date <= %(end_date)s - AND `tabPayment Entry`.bank_account = 'Checking - Local Bank' + AND `tabPayment Entry`.bank_account = %(bank_account)s AND `tabPayment Entry`.payment_type = 'Pay' AND `tabPayment Entry`.mode_of_payment = 'Check' AND `tabPayment Entry`.docstatus = 1