mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
fix: tds computation summary shows cancelled invoices (#26456)
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user