feature/rbac-implementation

This commit is contained in:
2026-05-21 07:56:20 -06:00
parent 3c10653d6a
commit e174df0af3
6 changed files with 29 additions and 20 deletions

View File

@@ -134,12 +134,13 @@ async def consume_ws_get_cove(**kwargs):
# Enviar documento
_file_name = f"vu_COVE_{pedimento_app}_{cove}.xml"
try:
document_response = await coves_rest_controller.post_document(
document_response = await coves_rest_controller.post_or_update_document(
soap_response=soap_response,
organizacion=kwargs.get('pedimento').get('organizacion'),
pedimento=kwargs.get('pedimento').get('id'),
file_name=_file_name,
document_type=8,
identifier=cove,
)
except Exception as e:
logger.error(f"Error detectado en la respuesta SOAP: {str(e)}")
@@ -318,12 +319,14 @@ async def consume_ws_get_acuse_cove(**kwargs):
organizacion = pedimento.get("organizacion", None)
pedimento_id = pedimento.get("id", None)
rest_response = await coves_rest_controller.post_document(
cove_identifier = kwargs['cove'].get('cove', '')
rest_response = await coves_rest_controller.post_or_update_document(
binary_content=pdf_bytes,
organizacion=organizacion,
pedimento=pedimento_id,
file_name=_file_name,
document_type=7
document_type=7,
identifier=cove_identifier,
)
acuse_status = await change_acuse_status(