Skip to content

Commit

Permalink
Merge branch 'version-13-hotfix' into mergify/bp/version-13-hotfix/pr…
Browse files Browse the repository at this point in the history
…-31223
  • Loading branch information
deepeshgarg007 authored Jun 6, 2022
2 parents 3ea2c95 + fa0984f commit d070143
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/regional/report/gstr_1/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,11 @@ def get_company_gstins(company):
.inner_join(links)
.on(address.name == links.parent)
.select(address.gstin)
.distinct()
.where(links.link_doctype == "Company")
.where(links.link_name == company)
.where(address.gstin.isnotnull())
.where(address.gstin != "")
.run(as_dict=1)
)

Expand Down

0 comments on commit d070143

Please sign in to comment.