Browse Source

Merge pull request #207 from mdietrichc2c/8.0-fix-balance-comp

Fix comparison between balances
pull/130/merge
Pedro M. Baeza 9 years ago
committed by GitHub
parent
commit
771f7399cb
  1. 3
      account_financial_report_webkit/report/common_balance_reports.py
  2. 2
      account_financial_report_webkit/report/common_partner_balance_reports.py

3
account_financial_report_webkit/report/common_balance_reports.py

@ -314,7 +314,8 @@ class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit):
for comp_account_by_id in comp_accounts_by_ids:
values = comp_account_by_id.get(account.id)
values.update(
self._get_diff(account.balance, values['balance']))
self._get_diff(balance_accounts[account.id],
values['balance']))
display_account = any((values.get('credit', 0.0),
values.get('debit', 0.0),
values.get('balance', 0.0),

2
account_financial_report_webkit/report/common_partner_balance_reports.py

@ -319,7 +319,7 @@ class CommonPartnerBalanceReportHeaderWebkit(CommonBalanceReportHeaderWebkit,
values = comp_account_by_id.get(account.id)
values['account'].update(
self._get_diff(account.balance,
self._get_diff(balance_accounts[account.id],
values['account'].get('balance', 0.0)))
comp_accounts.append(values)

Loading…
Cancel
Save