forked from DGNum/gestioCOF
Oublis de renaming
This commit is contained in:
parent
4205e0ad0e
commit
4326ba9016
1 changed files with 3 additions and 3 deletions
|
@ -1098,17 +1098,17 @@ def kpsul_perform_operations(request):
|
||||||
if operation.type == Operation.EDIT:
|
if operation.type == Operation.EDIT:
|
||||||
required_perms.add("kfet.edit_balance_account")
|
required_perms.add("kfet.edit_balance_account")
|
||||||
need_comment = True
|
need_comment = True
|
||||||
if account.is_cof:
|
if on_acc.is_cof:
|
||||||
to_addcost_for_balance = to_addcost_for_balance / cof_grant_divisor
|
to_addcost_for_balance = to_addcost_for_balance / cof_grant_divisor
|
||||||
|
|
||||||
(perms, stop) = account.perms_to_perform_operation(amount=operationgroup.amount)
|
(perms, stop) = on_acc.perms_to_perform_operation(amount=operationgroup.amount)
|
||||||
required_perms |= perms
|
required_perms |= perms
|
||||||
|
|
||||||
if stop:
|
if stop:
|
||||||
data["errors"].append(
|
data["errors"].append(
|
||||||
{
|
{
|
||||||
"code": "negative",
|
"code": "negative",
|
||||||
"message": f"Le compte {account.trigramme} a un solde insuffisant.",
|
"message": f"Le compte {on_acc.trigramme} a un solde insuffisant.",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue