diff in currency must use starting balance in currency

This commit is contained in:
Vincent Vinet
2014-11-03 10:09:21 -05:00
committed by Sandy Carter
parent 35f3b8d1c9
commit 0783ebbb6f

View File

@@ -460,7 +460,7 @@ class bank_acc_rec_statement(orm.Model):
sres['difference_in_currency'] = round(
(statement.ending_balance_in_currency
- sres['cleared_balance_in_currency']
- statement.starting_balance),
- statement.starting_balance_in_currency),
account_precision)
sres['general_ledger_balance'] = self._get_gl_balance(
cr, uid, statement.account_id.id, statement.ending_date)