feature/rbac-implementation
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user