Retored missing article extraction method

This commit is contained in:
Fanilo-Nantenaina 2025-12-06 17:24:48 +03:00
parent de1771749d
commit 9d569a8e03

View file

@ -1193,6 +1193,15 @@ class SageConnector:
logger.error(f"❌ ERREUR GLOBALE _extraire_client: {e}", exc_info=True) logger.error(f"❌ ERREUR GLOBALE _extraire_client: {e}", exc_info=True)
return None return None
def _extraire_article(self, article_obj):
return {
"reference": getattr(article_obj, "AR_Ref", ""),
"designation": getattr(article_obj, "AR_Design", ""),
"prix_vente": getattr(article_obj, "AR_PrixVen", 0.0),
"prix_achat": getattr(article_obj, "AR_PrixAch", 0.0),
"stock_reel": getattr(article_obj, "AR_Stock", 0.0),
"stock_mini": getattr(article_obj, "AR_StockMini", 0.0),
}
# ========================================================================= # =========================================================================
# CRÉATION DEVIS (US-A1) - VERSION TRANSACTIONNELLE # CRÉATION DEVIS (US-A1) - VERSION TRANSACTIONNELLE
# ========================================================================= # =========================================================================