From b8b84841b7c71ad7da385e0ccf3f4d5d868128e6 Mon Sep 17 00:00:00 2001 From: Daniel Allaire Date: Sun, 31 May 2026 12:40:37 -0400 Subject: [PATCH] Corriger valeurs journal operations bancaires --- backend/app/routers/operations_bancaires.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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(