From d49747f288fa137b5cb2f2623c7716438e6a646b Mon Sep 17 00:00:00 2001 From: Luis Date: Thu, 29 Jan 2026 08:04:59 -0700 Subject: [PATCH] fix: se modifican las claves del tipo de error de pedimento completo, partidas, coves. Para identidcar el tipo de error correspondiente. --- api/api_v2/modules/coves/services.py | 4 ++-- api/api_v2/modules/partidas/services.py | 2 +- api/api_v2/modules/pedimentos/services.py | 2 +- api/api_v2/modules/remesas/services.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/api_v2/modules/coves/services.py b/api/api_v2/modules/coves/services.py index 6f6faa1..5e20746 100644 --- a/api/api_v2/modules/coves/services.py +++ b/api/api_v2/modules/coves/services.py @@ -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}") diff --git a/api/api_v2/modules/partidas/services.py b/api/api_v2/modules/partidas/services.py index 7ad29f6..6225313 100644 --- a/api/api_v2/modules/partidas/services.py +++ b/api/api_v2/modules/partidas/services.py @@ -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}") diff --git a/api/api_v2/modules/pedimentos/services.py b/api/api_v2/modules/pedimentos/services.py index d55e39b..70ed764 100644 --- a/api/api_v2/modules/pedimentos/services.py +++ b/api/api_v2/modules/pedimentos/services.py @@ -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") diff --git a/api/api_v2/modules/remesas/services.py b/api/api_v2/modules/remesas/services.py index 9374bb6..3f47b0b 100644 --- a/api/api_v2/modules/remesas/services.py +++ b/api/api_v2/modules/remesas/services.py @@ -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