2 Commits

4 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ async def consume_ws_get_cove(**kwargs):
organizacion=kwargs.get('pedimento').get('organizacion'),
pedimento=kwargs.get('pedimento').get('id'),
file_name=f"vu_COVE_{pedimento_app}_{cove}_ERROR.xml",
document_type=10,
document_type=20,
)
raise Exception("Error en la respuesta del servicio SOAP")
@@ -256,7 +256,7 @@ async def consume_ws_get_acuse_cove(**kwargs):
organizacion=kwargs.get('pedimento').get('organizacion'),
pedimento=kwargs.get('pedimento').get('id'),
file_name=error_file_name,
document_type=10,
document_type=24,
)
except Exception as e:
logger.error(f"Error al guardar respuesta SOAP errónea: {e}")

View File

@@ -102,7 +102,7 @@ async def consume_ws_get_partida(**kwargs):
organizacion=kwargs.get('pedimento').get('organizacion'),
pedimento=kwargs.get('pedimento').get('id'),
file_name=error_file_name,
document_type=10,
document_type=18,
)
except Exception as e:
logger.error(f"Error al guardar la respuesta de error: {e}")

View File

@@ -95,7 +95,7 @@ async def consume_ws_get_pedimento_completo(**kwargs) -> Dict[str, Any]:
organizacion=pedimento_data.get('organizacion'),
pedimento=pedimento_data.get('id'),
file_name=f"vu_PC_{pedimento_data.get('pedimento_app', 'unknown')}_ERROR.xml",
document_type=10,
document_type=14,
)
raise HTTPException(status_code=500, detail="Error en la respuesta del servicio SOAP")

View File

@@ -94,7 +94,7 @@ async def obtener_remesa(**kwargs) -> Dict[str, Any]:
organizacion=pedimento_data.get('organizacion'),
pedimento=pedimento_data.get('id'),
file_name=file_name,
document_type=10,
document_type=16,
)
raise HTTPException(status_code=500, detail="Error en la respuesta del servicio SOAP")
# Enviar documento