Skip to content

Commit

Permalink
Small fix for statement owing (bcgov#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Sep 10, 2024
1 parent 4df33a6 commit 80e0650
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pay-api/src/pay_api/services/eft_short_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ def get_statement_summary_query():
InvoiceModel.id == StatementInvoicesModel.invoice_id,
InvoiceModel.payment_method_code == PaymentMethod.EFT.value
)
).filter(
InvoiceModel.invoice_status_code.notin_([InvoiceStatus.CANCELLED.value,
InvoiceStatus.REFUND_REQUESTED.value,
InvoiceStatus.REFUNDED.value])
).group_by(StatementModel.payment_account_id)

@classmethod
Expand Down

0 comments on commit 80e0650

Please sign in to comment.