fix: se modifican las claves del tipo de error de pedimento completo, partidas, coves. Para identidcar el tipo de error correspondiente.
This commit is contained in:
@@ -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}")
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user