fix: tds computation summary shows cancelled invoices (#26485)
This commit is contained in:
parent
9c04079d04
commit
ac721ae147
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user