Skip to content

Commit

Permalink
feat: update SQL to use filter.bank_account in query
Browse files Browse the repository at this point in the history
  • Loading branch information
HKuz committed Jul 7, 2022
1 parent 128b5d6 commit fa3580b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_run/check_run/report/positive_pay/positive_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa3580b

Please sign in to comment.