|
|
@ -134,7 +134,7 @@ def CreateFolderContent(): |
|
|
|
# Procesar archivo |
|
|
|
# Procesar archivo |
|
|
|
if WriteToLog(referencia): |
|
|
|
if WriteToLog(referencia): |
|
|
|
processed_references.append(referencia) |
|
|
|
processed_references.append(referencia) |
|
|
|
URL = 'http://localhost:5000/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |
|
|
|
URL = 'https://www.gemcousa.mx/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |
|
|
|
archivoM+'&aduana='+aduana+'&patente='+patente + \ |
|
|
|
archivoM+'&aduana='+aduana+'&patente='+patente + \ |
|
|
|
'&pedimento='+pedimento+'&fPago=' + \ |
|
|
|
'&pedimento='+pedimento+'&fPago=' + \ |
|
|
|
str(fPago)+'&TipoCambio='+str(tipoCambio)+'&clave='+clave |
|
|
|
str(fPago)+'&TipoCambio='+str(tipoCambio)+'&clave='+clave |
|
|
@ -150,7 +150,7 @@ def CreateFolderContent(): |
|
|
|
'clave': clave |
|
|
|
'clave': clave |
|
|
|
} |
|
|
|
} |
|
|
|
print( f"la referencia {referencia} ya ha sido posteada." ) |
|
|
|
print( f"la referencia {referencia} ya ha sido posteada." ) |
|
|
|
r = requests.post(url=URL,files=multiple_files, verify=False, timeout=1000000) |
|
|
|
r = requests.post(url=URL,files=multiple_files, verify=False, timeout=1000) |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
print("Error: %s" % e) |
|
|
|
print("Error: %s" % e) |
|
|
|
# WriteToLog(r.text) |
|
|
|
# WriteToLog(r.text) |
|
|
@ -161,6 +161,6 @@ CreateFolderContent() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#URL = 'https://www.gemcousa.mx/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |
|
|
|
#URL = 'https://www.gemcousa.mx/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |
|
|
|
# URL = 'http://localhost:5000/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |
|
|
|
# URL = 'http://localhost:5000/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |
|
|
|
|
|
|
|
# URL 'https://www.gemcousa.solutions/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\ |