[Fix] Invalid Syntax in gstr_1.py (#12946)
* [Fix] Added missing parenthesis in gstr_1.py * Minor change
This commit is contained in:
parent
82ffdd7dc6
commit
307063e64e
@ -119,8 +119,8 @@ class Gstr1Report(object):
|
|||||||
if self.filters.get("type_of_business") == "B2C Large":
|
if self.filters.get("type_of_business") == "B2C Large":
|
||||||
conditions += """ and SUBSTR(place_of_supply, 1, 2) != SUBSTR(company_gstin, 1, 2)
|
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}')""".\
|
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":
|
elif self.filters.get("type_of_business") == "B2C Small":
|
||||||
conditions += """ and (
|
conditions += """ and (
|
||||||
SUBSTR(place_of_supply, 1, 2) = SUBSTR(company_gstin, 1, 2)
|
SUBSTR(place_of_supply, 1, 2) = SUBSTR(company_gstin, 1, 2)
|
||||||
@ -483,4 +483,4 @@ class Gstr1Report(object):
|
|||||||
"width": 120
|
"width": 120
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
self.columns = self.invoice_columns + self.tax_columns + self.other_columns
|
self.columns = self.invoice_columns + self.tax_columns + self.other_columns
|
Loading…
x
Reference in New Issue
Block a user