forked from DGNum/gestioCOF
fix perform opes after account reset
This commit is contained in:
parent
c849306a32
commit
e2d7192b23
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue