Deleted PDF logics
This commit is contained in:
parent
0f9b3dfa0d
commit
7b451223ef
2 changed files with 15 additions and 1884 deletions
12
main.py
12
main.py
|
|
@ -11,6 +11,7 @@ import time
|
||||||
from config import settings, validate_settings
|
from config import settings, validate_settings
|
||||||
from sage_connector import SageConnector
|
from sage_connector import SageConnector
|
||||||
import pyodbc
|
import pyodbc
|
||||||
|
import os
|
||||||
|
|
||||||
# =====================================================
|
# =====================================================
|
||||||
# LOGGING
|
# LOGGING
|
||||||
|
|
@ -1705,10 +1706,15 @@ def generer_pdf_document(
|
||||||
raise HTTPException(500, str(e))
|
raise HTTPException(500, str(e))
|
||||||
|
|
||||||
|
|
||||||
@app.get("/sage/test-API-transformation")
|
@app.get("/sage/object-exploration")
|
||||||
def generer_pdf_transformation_native(numero: str, type_doc: int):
|
async def explorer_objets_impression_sage(modele:str="Devis client avec détail projet.bgc"):
|
||||||
try:
|
try:
|
||||||
expliration = sage.generer_pdf_transformation_native(numero, type_doc)
|
dossier = r"C:\Users\Public\Documents\Sage\Entreprise 100c\fr-FR\Documents standards\Gestion commerciale\Ventes"
|
||||||
|
chemin = os.path.join(dossier, modele)
|
||||||
|
|
||||||
|
if not os.path.exists(chemin):
|
||||||
|
return {"error": f"Fichier non trouve: {modele}"}
|
||||||
|
expliration = sage.analyser_bgc_complet(chemin)
|
||||||
|
|
||||||
if not expliration:
|
if not expliration:
|
||||||
raise HTTPException(404, f"ERROR")
|
raise HTTPException(404, f"ERROR")
|
||||||
|
|
|
||||||
1887
sage_connector.py
1887
sage_connector.py
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue