forked from DGNum/gestioCOF
small fixes
This commit is contained in:
parent
de724a2c0d
commit
72615bf400
2 changed files with 2 additions and 3 deletions
|
@ -833,7 +833,7 @@ $(document).ready(function() {
|
||||||
if (settings['addcost_for']
|
if (settings['addcost_for']
|
||||||
&& settings['addcost_amount']
|
&& settings['addcost_amount']
|
||||||
&& account_data['trigramme'] != settings['addcost_for']
|
&& account_data['trigramme'] != settings['addcost_for']
|
||||||
&& article_data['5'])
|
&& article_data[5])
|
||||||
amount_euro -= settings['addcost_amount'] * nb;
|
amount_euro -= settings['addcost_amount'] * nb;
|
||||||
var reduc_divisor = 1;
|
var reduc_divisor = 1;
|
||||||
if (account_data['is_cof'])
|
if (account_data['is_cof'])
|
||||||
|
|
|
@ -1019,8 +1019,7 @@ def kpsul_perform_operations(request):
|
||||||
operation.is_checkout = False
|
operation.is_checkout = False
|
||||||
if operationgroup.on_acc.is_cof:
|
if operationgroup.on_acc.is_cof:
|
||||||
if is_addcost & operation.article.category.has_addcost:
|
if is_addcost & operation.article.category.has_addcost:
|
||||||
operation.addcost_amount = operation.addcost_amount \
|
operation.addcost_amount /= cof_grant_divisor
|
||||||
/ cof_grant_divisor
|
|
||||||
operation.amount = operation.amount / cof_grant_divisor
|
operation.amount = operation.amount / cof_grant_divisor
|
||||||
to_articles_stocks[operation.article] -= operation.article_nb
|
to_articles_stocks[operation.article] -= operation.article_nb
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue