[rename] group_or_ledger to is_group

This commit is contained in:
Rushabh Mehta
2015-04-23 13:14:17 +05:30
parent 4669fe3e85
commit 38c6b52770
56 changed files with 295 additions and 305 deletions

View File

@@ -89,7 +89,7 @@ def get_balance_on(account=None, date=None, party_type=None, party=None):
% year_start_date)
# different filter for group and ledger - improved performance
if acc.group_or_ledger=="Group":
if acc.is_group:
cond.append("""exists (
select * from `tabAccount` ac where ac.name = gle.account
and ac.lft >= %s and ac.rgt <= %s