From b11e161e7ffcf2b0a2f2f365f4eb6bdcb17ac148 Mon Sep 17 00:00:00 2001 From: Fanilo-Nantenaina Date: Fri, 28 Nov 2025 05:19:59 +0300 Subject: [PATCH] Revert "refactor: modify quote status endpoint path to include ID and remove a related comment." This reverts commit 2a6f462a0b207912e39e046c65abb4ba41281871. --- api.py | 1 + sage_client.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index ff07614..b6926e4 100644 --- a/api.py +++ b/api.py @@ -487,6 +487,7 @@ async def changer_statut_devis(id: str, nouveau_statut: int = Query(..., ge=0, l 📄 Changement de statut d'un devis via gateway Windows """ try: + # ✅ APPEL VIA SAGE_CLIENT (HTTP vers Windows) resultat = sage_client.changer_statut_devis(id, nouveau_statut) logger.info(f"✅ Statut devis {id} changé: {nouveau_statut}") diff --git a/sage_client.py b/sage_client.py index d50e1c3..741794f 100644 --- a/sage_client.py +++ b/sage_client.py @@ -119,7 +119,7 @@ class SageGatewayClient: def changer_statut_devis(self, numero: str, nouveau_statut: int) -> Dict: """✅ NOUVEAU: Change le statut d'un devis""" return self._post( - "/sage/devis/{id}/statut", {"numero": numero, "nouveau_statut": nouveau_statut} + "/sage/devis/statut", {"numero": numero, "nouveau_statut": nouveau_statut} ).get("data", {}) # =====================================================