Retored missing article extraction method
This commit is contained in:
parent
de1771749d
commit
9d569a8e03
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue