refactor(api): replace hardcoded document type with enum value
This commit is contained in:
parent
de6739e3f5
commit
4c53477efe
1 changed files with 1 additions and 1 deletions
2
api.py
2
api.py
|
|
@ -3514,7 +3514,7 @@ async def commande_vers_livraison(
|
|||
try:
|
||||
# Étape 1: Vérifier que la commande existe
|
||||
commande_existante = sage_client.lire_document(
|
||||
id, settings.SAGE_TYPE_BON_COMMANDE
|
||||
id, TypeDocumentSQL.BON_COMMANDE
|
||||
)
|
||||
|
||||
if not commande_existante:
|
||||
|
|
|
|||
Loading…
Reference in a new issue