Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
69075c7db0 fix(accounts): add account to GROUP BY for PostgreSQL compatibility, fix ruff formatting 2026-06-10 05:34:47 +00:00
copilot-swe-agent[bot]
ffd0dbdfd9 Initial plan 2026-06-10 05:29:00 +00:00

View File

@@ -2384,7 +2384,7 @@ class QueryPaymentLedger:
.where(Criterion.all(self.common_filter))
.where(Criterion.all(self.dimensions_filter))
.where(Criterion.all(self.voucher_posting_date))
.groupby(ple.voucher_type, ple.voucher_no, ple.party_type, ple.party)
.groupby(ple.account, ple.voucher_type, ple.voucher_no, ple.party_type, ple.party)
)
# build query for voucher outstanding
@@ -2405,7 +2405,7 @@ class QueryPaymentLedger:
.where(ple.delinked == 0)
.where(Criterion.all(filter_on_against_voucher_no))
.where(Criterion.all(self.common_filter))
.groupby(ple.against_voucher_type, ple.against_voucher_no, ple.party_type, ple.party)
.groupby(ple.account, ple.against_voucher_type, ple.against_voucher_no, ple.party_type, ple.party)
)
# build CTE for combining voucher amount and outstanding