[FIX] account: bank reconciliation widget: a currency amount was not rounded

Fixes #4450
This commit is contained in:
Arthur Maniet 2015-01-05 15:13:20 +01:00
parent be5717434e
commit 2107896d22
1 changed files with 2 additions and 0 deletions

View File

@ -1447,6 +1447,8 @@ openerp.account = function (instance) {
line_created_being_edited[index].amount = Math.round(val.amount*rounding)/rounding;
line_created_being_edited[index].amount_str = self.formatCurrency(Math.abs(val.amount), val.currency_id);
}
if (val.amount_with_tax)
line_created_being_edited[index].amount_with_tax = Math.round(val.amount_with_tax*rounding)/rounding;
});
self.set("line_created_being_edited", line_created_being_edited);
self.createdLinesChanged(); // TODO For some reason, previous line doesn't trigger change handler