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:
2026-01-29 08:04:59 -07:00
parent 47c8bf51c7
commit d49747f288
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}")