Skip to content

Commit

Permalink
Merge pull request #27978 from frappe/mergify/bp/version-13-hotfix/pr…
Browse files Browse the repository at this point in the history
…-27970

fix (India): Interstate internal transfer invoices not visible in GSTR-1 (backport #27970)
  • Loading branch information
deepeshgarg007 committed Oct 18, 2021
2 parents 07a9f16 + 2896507 commit a883f16
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 a883f16

Please sign in to comment.