mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 02:31:21 +00:00
fix: Query for b2b
This commit is contained in:
@@ -154,7 +154,7 @@ class Gstr1Report(object):
|
|||||||
|
|
||||||
if self.filters.get("type_of_business") == "B2B" and customers:
|
if self.filters.get("type_of_business") == "B2B" and customers:
|
||||||
conditions += """ and ifnull(invoice_type, '') != 'Export' and is_return != 1
|
conditions += """ and ifnull(invoice_type, '') != 'Export' and is_return != 1
|
||||||
and customer in ('{0}') and (billing_address_gstin IS NOT NULL AND customer_gstin NOT IN ('', 'NA'))""".\
|
and customer in ('{0}') and (customer_gstin IS NOT NULL AND customer_gstin NOT IN ('', 'NA'))""".\
|
||||||
format("', '".join([frappe.db.escape(c.name) for c in customers]))
|
format("', '".join([frappe.db.escape(c.name) for c in customers]))
|
||||||
|
|
||||||
if self.filters.get("type_of_business") in ("B2C Large", "B2C Small"):
|
if self.filters.get("type_of_business") in ("B2C Large", "B2C Small"):
|
||||||
|
|||||||
Reference in New Issue
Block a user