[MERGE] Update type of selection in parsers.

6.0
Vauxoo 2012-02-24 14:17:29 -05:30 committed by Gabriela
commit 8f6fa55ccc
3 changed files with 6 additions and 6 deletions

View File

@ -283,11 +283,11 @@ class account_balance(report_sxw.rml_parse):
# Check whether we must include this line in the report or not # Check whether we must include this line in the report or not
# #
if form['display_account'] == 'bal_mouvement' and account['parent_id']: if form['display_account'] == 'con_movimiento' and account['parent_id']:
# Include accounts with movements # Include accounts with movements
if abs(res['balance']) >= 0.5 * 10**-int(2): if abs(res['balance']) >= 0.5 * 10**-int(2):
result_acc.append(res) result_acc.append(res)
elif form['display_account'] == 'bal_solde' and account['parent_id']: elif form['display_account'] == 'con_balance' and account['parent_id']:
# Include accounts with balance # Include accounts with balance
if abs(res['balance']) >= 0.5 * 10**-int(2): if abs(res['balance']) >= 0.5 * 10**-int(2):
result_acc.append(res) result_acc.append(res)

View File

@ -300,11 +300,11 @@ class account_balance(report_sxw.rml_parse):
# Check whether we must include this line in the report or not # Check whether we must include this line in the report or not
# #
if form['display_account'] == 'bal_mouvement' and account['parent_id']: if form['display_account'] == 'con_movimiento' and account['parent_id']:
# Include accounts with movements # Include accounts with movements
if abs(res['balance']) >= 0.5 * 10**-int(2): if abs(res['balance']) >= 0.5 * 10**-int(2):
result_acc.append(res) result_acc.append(res)
elif form['display_account'] == 'bal_solde' and account['parent_id']: elif form['display_account'] == 'con_balance' and account['parent_id']:
# Include accounts with balance # Include accounts with balance
if abs(res['balance']) >= 0.5 * 10**-4: if abs(res['balance']) >= 0.5 * 10**-4:
result_acc.append(res) result_acc.append(res)

View File

@ -300,11 +300,11 @@ class account_balance(report_sxw.rml_parse):
# Check whether we must include this line in the report or not # Check whether we must include this line in the report or not
# #
if form['display_account'] == 'bal_mouvement' and account['parent_id']: if form['display_account'] == 'con_movimiento' and account['parent_id']:
# Include accounts with movements # Include accounts with movements
if abs(res['balance']) >= 0.5 * 10**-int(2): if abs(res['balance']) >= 0.5 * 10**-int(2):
result_acc.append(res) result_acc.append(res)
elif form['display_account'] == 'bal_solde' and account['parent_id']: elif form['display_account'] == 'con_balance' and account['parent_id']:
# Include accounts with balance # Include accounts with balance
if abs(res['balance']) >= 0.5 * 10**-4: if abs(res['balance']) >= 0.5 * 10**-4:
result_acc.append(res) result_acc.append(res)