Revert "refactor: modify quote status endpoint path to include ID and remove a related comment."
This reverts commit 2a6f462a0b.
This commit is contained in:
parent
2a6f462a0b
commit
b11e161e7f
2 changed files with 2 additions and 1 deletions
1
api.py
1
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}")
|
||||
|
|
|
|||
|
|
@ -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", {})
|
||||
|
||||
# =====================================================
|
||||
|
|
|
|||
Loading…
Reference in a new issue