Merge pull request #22131 from deepeshgarg007/tds_monthly_cancelled

fix: Cancelled entries in tds payable monthly report
This commit is contained in:
Deepesh Garg 2020-06-07 00:08:17 +05:30 committed by GitHub
commit c01b4aa2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ def get_gle_map(filters):
# {"purchase_invoice": list of dict of all gle created for this invoice}
gle_map = {}
gle = frappe.db.get_all('GL Entry',\
{"voucher_no": ["in", [d.get("name") for d in filters["invoices"]]]},
{"voucher_no": ["in", [d.get("name") for d in filters["invoices"]]], 'is_cancelled': 0},
["fiscal_year", "credit", "debit", "account", "voucher_no", "posting_date"])
for d in gle: