[Fix] Invalid Syntax in gstr_1.py (#12946)

* [Fix] Added missing parenthesis in gstr_1.py

* Minor change
This commit is contained in:
saurabh-bhosale 2018-02-15 17:13:35 +05:30 committed by Nabin Hait
parent 82ffdd7dc6
commit 307063e64e

View File

@ -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