fix: nuevos ajustes en enpoints para guardar las petciones a vu

This commit is contained in:
2026-01-02 08:45:46 -07:00
parent b879e5c24d
commit 28d3352543
5 changed files with 100 additions and 0 deletions

View File

@@ -60,6 +60,21 @@ async def obtener_remesa(**kwargs) -> Dict[str, Any]:
numero_operacion=pedimento_data.get('numero_operacion', '')
)
# Enviar documento EFC
try:
file_name_request = f"vu_RM_{pedimento_data.get('pedimento_app', 'unknown')}_REQUEST.xml"
document_response = await remesa_rest_controller.post_document(
soap_response=soap_xml,
organizacion=pedimento_data.get('organizacion'),
pedimento=pedimento_data.get('id'),
file_name=file_name_request,
document_type=15,
)
except Exception as e:
logger.error(f"Error al enviar documento de solicitud: {e}")
soap_headers = {
'Content-Type': 'text/xml; charset=utf-8'
}