fix: Check for supplier name

(cherry picked from commit 944e3d467c5ab0a2a4a76a8b532e53bca77f8e61)
This commit is contained in:
Deepesh Garg 2021-10-20 12:17:13 +05:30 committed by mergify-bot
parent 881e091b85
commit 7f2dde7d94

View File

@ -49,7 +49,7 @@ def get_result(filters, tds_docs, tds_accounts, tax_category_map):
}
if filters.naming_series == 'Naming Series':
row.update({'supplier_name': supplier_map.get(supplier).supplier_name})
row.update({'supplier_name': supplier_map.get(supplier, {}).get('supplier_name')})
row.update({
'section_code': tax_withholding_category,