Oublis de renaming

This commit is contained in:
Ludovic Stephan 2021-02-28 02:16:40 +01:00
parent 4205e0ad0e
commit 4326ba9016

View file

@ -1098,17 +1098,17 @@ def kpsul_perform_operations(request):
if operation.type == Operation.EDIT:
required_perms.add("kfet.edit_balance_account")
need_comment = True
if account.is_cof:
if on_acc.is_cof:
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
if stop:
data["errors"].append(
{
"code": "negative",
"message": f"Le compte {account.trigramme} a un solde insuffisant.",
"message": f"Le compte {on_acc.trigramme} a un solde insuffisant.",
}
)