fix: Error in TDS computation summary

This commit is contained in:
Deepesh Garg
2021-10-20 12:07:22 +05:30
parent ebe68c1a7a
commit f12deae24b

View File

@@ -44,7 +44,7 @@ def get_result(filters, tds_docs, tds_accounts, tax_category_map):
if rate and tds_deducted:
row = {
'pan' if frappe.db.has_column('Supplier', 'pan') else 'tax_id': supplier_map.get(supplier).pan,
'pan' if frappe.db.has_column('Supplier', 'pan') else 'tax_id': supplier_map.get(supplier, {}).get('pan'),
'supplier': supplier_map.get(supplier).name
}