financial statements: show only companies where permission is given

This commit is contained in:
Rushabh Mehta 2013-01-11 11:00:20 +05:30
parent 4f5b89934b
commit 1233c4a800

View File

@ -53,11 +53,8 @@ class DocType:
ret['period'] = ['Annual','Half Yearly','Quarterly','Monthly']
# ---- get companies ---------
res = sql("select name from `tabCompany`")
for r in res:
comp.append(r[0])
#comp.append(r[0] for r in res)
ret['company'] = comp
from accounts.page.accounts_browser.accounts_browser import get_companies
ret['company'] = get_companies()
#--- to get fiscal year and start_date of that fiscal year -----
res = sql("select name, year_start_date from `tabFiscal Year`")