From 307063e64ee7f86073c44783c4a902cf02fecf5e Mon Sep 17 00:00:00 2001 From: saurabh-bhosale Date: Thu, 15 Feb 2018 17:13:35 +0530 Subject: [PATCH] [Fix] Invalid Syntax in gstr_1.py (#12946) * [Fix] Added missing parenthesis in gstr_1.py * Minor change --- erpnext/regional/report/gstr_1/gstr_1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/regional/report/gstr_1/gstr_1.py b/erpnext/regional/report/gstr_1/gstr_1.py index 912092344b..c9ad8ec88f 100644 --- a/erpnext/regional/report/gstr_1/gstr_1.py +++ b/erpnext/regional/report/gstr_1/gstr_1.py @@ -119,8 +119,8 @@ class Gstr1Report(object): if self.filters.get("type_of_business") == "B2C Large": conditions += """ and SUBSTR(place_of_supply, 1, 2) != SUBSTR(company_gstin, 1, 2) and grand_total > {0} and is_return != 1 and customer in ('{1}')""".\ - format((flt(b2c_limit), "', '".join([frappe.db.escape(c.name) for c in customers]) ) - + format(flt(b2c_limit), "', '".join([frappe.db.escape(c.name) for c in customers])) + elif self.filters.get("type_of_business") == "B2C Small": conditions += """ and ( SUBSTR(place_of_supply, 1, 2) = SUBSTR(company_gstin, 1, 2) @@ -483,4 +483,4 @@ class Gstr1Report(object): "width": 120 } ] - self.columns = self.invoice_columns + self.tax_columns + self.other_columns + self.columns = self.invoice_columns + self.tax_columns + self.other_columns \ No newline at end of file