diff --git a/india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py b/india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py index fa3a8ed4a..dba3cf0ec 100644 --- a/india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py +++ b/india_compliance/gst_india/report/gst_itemised_sales_register/gst_itemised_sales_register.py @@ -39,10 +39,8 @@ def get_additional_table_columns(): def get_additional_conditions(filters): - additional_conditions = "" + additional_conditions = {} if filters.get("company_gstin"): - additional_conditions += ( - " AND `tabSales Invoice`.company_gstin = %(company_gstin)s" - ) + additional_conditions.update({"company_gstin": filters.get("company_gstin")}) return additional_conditions