fix: nuevos ajustes en enpoints para guardar las petciones a vu
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user