Skip to content

Commit

Permalink
fix: Interstate internal transfer invoices not visible in GSTR-1
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Oct 16, 2021
1 parent 6019f60 commit d9d42b1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions erpnext/regional/report/gstr_1/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,6 @@ def get_invoice_data(self):
self.invoices = frappe._dict()
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("""
select
{select_columns}
Expand Down Expand Up @@ -242,7 +235,7 @@ def get_conditions(self):
elif self.filters.get("type_of_business") == "EXPORT":
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

Expand Down

0 comments on commit d9d42b1

Please sign in to comment.