diff --git a/backend/app/routers/operations_bancaires.py b/backend/app/routers/operations_bancaires.py index ab76756..606714a 100644 --- a/backend/app/routers/operations_bancaires.py +++ b/backend/app/routers/operations_bancaires.py @@ -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(