error fixed in financial analytics and financial statement

This commit is contained in:
Nabin Hait
2012-10-05 18:33:22 +05:30
parent de4aee7ffa
commit cca0b4aab7
3 changed files with 11 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ def execute():
import webnotes
from webnotes.utils.nestedset import rebuild_tree
rebuild_tree('Account', 'parent_account')
roots = webnotes.conn.sql("""
select lft, rgt, debit_or_credit, is_pl_account, company from `tabAccount`
where ifnull(parent_account, '') = ''