Corriger valeurs journal operations bancaires

This commit is contained in:
Daniel Allaire 2026-05-31 12:40:37 -04:00
parent ea4bab3c94
commit b8b84841b7

View file

@ -130,6 +130,14 @@ async def enregistrer_operation(
action=f"operation.{op.type}", action=f"operation.{op.type}",
raison=f"Opération bancaire enregistrée : {op.type}.", raison=f"Opération bancaire enregistrée : {op.type}.",
membre_id=membre.id, 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() await db.flush()
return OperationBancaireOut( return OperationBancaireOut(