fix perform opes after account reset

This commit is contained in:
Aurélien Delobelle 2017-04-06 00:11:41 +02:00
parent c849306a32
commit e2d7192b23

View file

@ -839,7 +839,7 @@ $(document).ready(function() {
var reduc_divisor = 1;
if (account_data['is_cof'])
reduc_divisor = 1 + settings['subvention_cof'] / 100;
return amount_euro / reduc_divisor;
return (amount_euro / reduc_divisor).toFixed(2);
}
function addPurchase(id, nb) {
@ -853,7 +853,7 @@ $(document).ready(function() {
}
});
if (!existing) {
var amount_euro = amountEuroPurchase(id, nb).toFixed(2);
var amount_euro = amountEuroPurchase(id, nb);
var index = addPurchaseToFormset(article_data[1], nb, amount_euro);
article_basket_html = $(item_basket_default_html);
article_basket_html