From c704630d5fd465c832a5f99914ff465bed9a5987 Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Tue, 6 Nov 2018 17:24:45 +0530 Subject: [PATCH] fix: Return default if company not found (#15915) --- .../report/item_wise_sales_register/item_wise_sales_register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py index 017a2c971b..1c12cdfe86 100644 --- a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py +++ b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py @@ -16,7 +16,7 @@ def _execute(filters=None, additional_table_columns=None, additional_query_colum if not filters: filters = {} columns = get_columns(additional_table_columns) - company_currency = erpnext.get_company_currency(filters.company) + company_currency = erpnext.get_company_currency(filters.get('company')) item_list = get_items(filters, additional_query_columns) if item_list: