fix(India): GSTIN filter in GSTR-1 report

(cherry picked from commit f0ac394d6e)
This commit is contained in:
Deepesh Garg
2022-06-02 12:59:55 +05:30
committed by Mergify
parent b31709c793
commit abe9fe70ce

View File

@@ -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)
)