fix: ignore cancelled gle in voucher-wise balance report (#36417)
fix: ignore cancelled gle
This commit is contained in:
parent
c6d8f15b10
commit
1ddfaa7605
@ -46,6 +46,7 @@ def get_data(filters):
|
||||
.select(
|
||||
gle.voucher_type, gle.voucher_no, Sum(gle.debit).as_("debit"), Sum(gle.credit).as_("credit")
|
||||
)
|
||||
.where(gle.is_cancelled == 0)
|
||||
.groupby(gle.voucher_no)
|
||||
)
|
||||
query = apply_filters(query, filters, gle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user