Corriger valeurs journal operations bancaires
This commit is contained in:
parent
ea4bab3c94
commit
b8b84841b7
1 changed files with 8 additions and 0 deletions
|
|
@ -130,6 +130,14 @@ async def enregistrer_operation(
|
|||
action=f"operation.{op.type}",
|
||||
raison=f"Opération bancaire enregistrée : {op.type}.",
|
||||
membre_id=membre.id,
|
||||
avant={},
|
||||
apres={
|
||||
"type": op.type,
|
||||
"montant": float(op.montant),
|
||||
"date_operation": op.date_operation.isoformat(),
|
||||
"provenance": provenance_depot if op.type == "depot" else None,
|
||||
"note": op.note,
|
||||
},
|
||||
)
|
||||
await db.flush()
|
||||
return OperationBancaireOut(
|
||||
|
|
|
|||
Loading…
Reference in a new issue