Skip to content

Commit

Permalink
fix: take only successful payments into account (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
erehulka authored Oct 28, 2024
1 parent 0dcb768 commit 4a9fd18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nest-tax-backend/src/tasks/tasks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class TasksService {
WITH total_payments AS (
SELECT "taxId", SUM("amount") AS totalPayments
FROM "TaxPayment"
WHERE "status" = 'SUCCESS'
GROUP BY "taxId"
)
SELECT t."variableSymbol", t."id"
Expand Down

0 comments on commit 4a9fd18

Please sign in to comment.