fix(India): GSTIN filter in GSTR-1 report
This commit is contained in:
parent
a1b7a7983a
commit
f0ac394d6e
@ -1155,8 +1155,11 @@ def get_company_gstins(company):
|
|||||||
.inner_join(links)
|
.inner_join(links)
|
||||||
.on(address.name == links.parent)
|
.on(address.name == links.parent)
|
||||||
.select(address.gstin)
|
.select(address.gstin)
|
||||||
|
.distinct()
|
||||||
.where(links.link_doctype == "Company")
|
.where(links.link_doctype == "Company")
|
||||||
.where(links.link_name == company)
|
.where(links.link_name == company)
|
||||||
|
.where(address.gstin.isnotnull())
|
||||||
|
.where(address.gstin != "")
|
||||||
.run(as_dict=1)
|
.run(as_dict=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user