fix: tds computation summary shows cancelled invoices (#26485)

This commit is contained in:
Saqib 2021-07-14 15:20:14 +05:30 committed by GitHub
parent 9c04079d04
commit ac721ae147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,8 @@ def get_invoice_and_tds_amount(supplier, account, company, from_date, to_date, f
select voucher_no, credit select voucher_no, credit
from `tabGL Entry` from `tabGL Entry`
where party in (%s) and credit > 0 where party in (%s) and credit > 0
and company=%s and posting_date between %s and %s and company=%s and is_cancelled = 0
and posting_date between %s and %s
""", (supplier, company, from_date, to_date), as_dict=1) """, (supplier, company, from_date, to_date), as_dict=1)
supplier_credit_amount = flt(sum(d.credit for d in entries)) supplier_credit_amount = flt(sum(d.credit for d in entries))