fix: Interstate internal transfer invoices not visible in GSTR-1
This commit is contained in:
parent
6019f60d0a
commit
d9d42b13ab
@ -172,13 +172,6 @@ class Gstr1Report(object):
|
|||||||
self.invoices = frappe._dict()
|
self.invoices = frappe._dict()
|
||||||
conditions = self.get_conditions()
|
conditions = self.get_conditions()
|
||||||
|
|
||||||
company_gstins = get_company_gstin_number(self.filters.get('company'), all_gstins=True)
|
|
||||||
|
|
||||||
if company_gstins:
|
|
||||||
self.filters.update({
|
|
||||||
'company_gstins': company_gstins
|
|
||||||
})
|
|
||||||
|
|
||||||
invoice_data = frappe.db.sql("""
|
invoice_data = frappe.db.sql("""
|
||||||
select
|
select
|
||||||
{select_columns}
|
{select_columns}
|
||||||
@ -242,7 +235,7 @@ class Gstr1Report(object):
|
|||||||
elif self.filters.get("type_of_business") == "EXPORT":
|
elif self.filters.get("type_of_business") == "EXPORT":
|
||||||
conditions += """ AND is_return !=1 and gst_category = 'Overseas' """
|
conditions += """ AND is_return !=1 and gst_category = 'Overseas' """
|
||||||
|
|
||||||
conditions += " AND IFNULL(billing_address_gstin, '') NOT IN %(company_gstins)s"
|
conditions += " AND IFNULL(billing_address_gstin, '') != company_gstin"
|
||||||
|
|
||||||
return conditions
|
return conditions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user