Subaccount Analytic Account not found(1), literal: ' + w_literal))
if w_type == 1:
# SI LA LINEA DEL PEDIDO DE VENTA NO VIENE DE UNA LINEA DE SIMULACION DE COSTES,
# NO TENGO MANERA DE ASIGNARLA A NINGUNA PESTAÑA, PERO LO QUE SI SE ES QUE NO
# ES UNA TAREA INTERNA
w_literal2 = w_literal + ' (FROM SALE ORDER unknown tab)'
else:
# SI LA LINEA DEL PEDIDO DE VENTA VIENE DE UNA LÍNEA DE SIMULACION DE COSTES
# TENGO QUE BUSCAR LA SUBCUENTA ANALÍTICA QUE LE CORRESPONDA DEPENDIENDO DE LA
# PESTAÑA DE LA QUE PROVENGA, ES DECIR... EN LA PANTALLA DE SIMULACIÓN DE COSTES
# TENEMOS LAS PESTAÑAS: Purchase lines, Investment lines, Subcontractig lines,
# Task lines, Others lines, PUES TENGO QUE BUSCAR LA SUBCUENTA ANALÍTICA CORRESPONDIENTE
# A LA SOLAPA DE LA QUE PROVENGA LA LINEA
#
# Genero el literal a buscar en Subcuentas Analíticas, en esta búsqueda
# añado la subcuenta del subproyecto en la búsqueda, porque la subcuenta
# analítica que tengo que buscar, debe ser una hija del subproyecto
w_literal2 = w_literal + ' (' + w_text +