fix: correct expense amount in party ledger summary.

This commit is contained in:
ljain112
2025-05-14 12:38:38 +05:30
parent 2960d0dce1
commit 09a46fcf0e

View File

@@ -405,7 +405,9 @@ class PartyLedgerSummaryReport:
gl = qb.DocType("GL Entry")
query = (
qb.from_(gl)
.select(gl.voucher_type, gl.voucher_no)
.select(
gl.posting_date, gl.account, gl.party, gl.voucher_type, gl.voucher_no, gl.debit, gl.credit
)
.where(
(gl.docstatus < 2)
& (gl.is_cancelled == 0)