[FIX] point_of_sale: precision

Regression introduced by 5a10903.
This commit is contained in:
Goffin Simon 2015-06-10 16:35:24 +02:00
parent 7360a30b27
commit e208fe51db
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function openerp_pos_basewidget(instance, module){ //module is instance.point_of
if (typeof amount === 'number') {
amount = round_di(amount,decimals).toFixed(decimals);
amount = openerp.instances[this.session.name].web.format_value(parseFloat(amount), { type : 'float' });
amount = openerp.instances[this.session.name].web.format_value(round_di(amount, decimals), { type: 'float', digits: [69, decimals]});
}
if (currency.position === 'after') {