Skip to content

Commit

Permalink
fix(India): GSTIN filter in GSTR-1 report
Browse files Browse the repository at this point in the history
(cherry picked from commit f0ac394)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Jun 6, 2022
1 parent b31709c commit abe9fe7
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 abe9fe7

Please sign in to comment.