From 4db24386b98da1a90561253177e054186988bfb7 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 7 Jun 2024 19:14:16 +0530 Subject: [PATCH] chore: Update conditions --- .../gst_itemised_sales_register.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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