******** ERROR cuentacorrienteusdtabla.onopen(-1) SQL Error: select /** CUOTAS **/ d.id as iddoc, t.id as idtctacte, t.vencimiento as fecha, concat( t.descripcion, ' ', ifnull( ( select group_concat(descripcion) from emtransobra where aplica = t.id and tipo = 'V' ), '' ) ) as descripcion, - t.importe as importe, t.moneda, t.id as orden from emtransobra as t cross join emdocobra as d on t.documento = d.id where t.moneda = 'USD' and t.estado != 'ANULADA' and t.tipo = 'M' /** vencimientos de OV **/ and ( t.vencimiento <= date_add(current_date(), INTERVAL DAY) or abs(t.aplicaciones) > 100 ) /** anterior a los proximos dias ó ya pagado **/ and ( '' = 'FR' or ( t.descripcion not like 'FR %' and t.descripcion not like '%FR' ) ) /** and ( '' = '' or t.contabilidad not in ("") ) **/ and t.descripcion not like 'honorarios%' and t.documento in ( select id from emdocobra where ocom = '' and tipo = 'OV' ) /** vencimientos de OV **/ /** and d.empresa = (select empresa from Emprendimientos where id = (select emprendimiento from ocom where id = '')) and (if(t.tipo='M', t.vencimiento, d.fechaemision) <= date_add(current_date(), INTERVAL 15 DAY) or t.tipo='C' or t.saldo != t.importe) and d.contacto not in (select id from cmcont where razonsocial like '%CLIENTES%') and t.estado != 'ANULADA' **/ union all select /** CONCEPTOS DE RECIBOS **/ d.id as iddoc, t.id as idtctacte, d.fechaemision as fecha, /** concat(d.descripcion, '
', group_concat(left(t.descripcion, 30))) as descripcion, **/ d.descripcion as descripcion, sum( if( t.moneda = 'USD', t.importe, t.importe / ( select tipocambio from emtransobra where id = t.aplica ) ) ) as importe, /** t.moneda, **/ 'USD' as moneda, 999999999999 as orden from emtransobra as t cross join emdocobra as d on t.documento = d.id where t.tipo = 'C' /** conceptos de RC **/ and ( '' = 'FR' or ( t.descripcion not like 'FR %' and t.descripcion not like '%FR' ) ) and t.descripcion not like 'honorarios%' and ( d.sucursal not in ('99', '98') or d.sucursal is null ) and ( t.aplica in ( /** quien aplique a vencimientos de OV de la moneda y operacion **/ select id from emtransobra as t3 where t3.moneda = 'USD' and t3.documento in ( select id from emdocobra where ocom = '' and tipo = 'OV' ) ) or t.aplica in ( /** quien aplique a vencimientos de facturas que apliquen a vencimientos de OV de la moneda y operacion **/ select id from emtransobra as t4 where t4.tipo = 'V' and t4.aplica in ( select id from emtransobra as t3 where t3.moneda = 'USD' and t3.documento in ( select id from emdoc where ocom = '' and tipo = 'OV' ) ) ) ) group by d.id order by fecha, orden You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') or abs(t.aplicaciones) > 100 ) /** anterior a los proximos dia' at line 34 SQLSTATE 42000 ******** ERROR cuentacorrientetabla.onopen(-1) SQL Error: select /** CUOTAS **/ d.id as iddoc, t.id as idtctacte, t.vencimiento as fecha, concat( t.descripcion, ' ', ifnull( ( select group_concat(descripcion) from emtransobra where aplica = t.id and tipo = 'V' ), '' ) ) as descripcion, - t.importe as importe, t.moneda, t.id as orden from emtransobra as t cross join emdocobra as d on t.documento = d.id where t.moneda = '' and t.estado != 'ANULADA' and t.tipo = 'M' /** vencimientos de OV **/ and ( t.vencimiento <= date_add(current_date(), INTERVAL DAY) or abs(t.aplicaciones) > 100 ) /** anterior a los proximos dias ó ya pagado **/ and ( '' = 'FR' or ( t.descripcion not like 'FR %' and t.descripcion not like '%FR' ) ) /** and ( '' = '' or t.contabilidad not in ("") ) **/ and t.descripcion not like 'honorarios%' and t.documento in ( select id from emdocobra where ocom = '' and tipo = 'OV' ) /** vencimientos de OV **/ /** and d.empresa = (select empresa from Emprendimientos where id = (select emprendimiento from ocom where id = '')) and (if(t.tipo='M', t.vencimiento, d.fechaemision) <= date_add(current_date(), INTERVAL 15 DAY) or t.tipo='C' or t.saldo != t.importe) and d.contacto not in (select id from cmcont where razonsocial like '%CLIENTES%') and t.estado != 'ANULADA' **/ union all select /** CONCEPTOS DE RECIBOS **/ d.id as iddoc, t.id as idtctacte, d.fechaemision as fecha, /** concat(d.descripcion, '
', group_concat(left(t.descripcion, 30))) as descripcion, **/ d.descripcion as descripcion, sum( if( t.moneda = '', t.importe, t.importe / ( select tipocambio from emtransobra where id = t.aplica ) ) ) as importe, /** t.moneda, **/ '' as moneda, 999999999999 as orden from emtransobra as t cross join emdocobra as d on t.documento = d.id where t.tipo = 'C' /** conceptos de RC **/ and ( '' = 'FR' or ( t.descripcion not like 'FR %' and t.descripcion not like '%FR' ) ) and t.descripcion not like 'honorarios%' and ( d.sucursal not in ('99', '98') or d.sucursal is null ) and ( t.aplica in ( /** quien aplique a vencimientos de OV de la moneda y operacion **/ select id from emtransobra as t3 where t3.moneda = '' and t3.documento in ( select id from emdocobra where ocom = '' and tipo = 'OV' ) ) or t.aplica in ( /** quien aplique a vencimientos de facturas que apliquen a vencimientos de OV de la moneda y operacion **/ select id from emtransobra as t4 where t4.tipo = 'V' and t4.aplica in ( select id from emtransobra as t3 where t3.moneda = '' and t3.documento in ( select id from emdoc where ocom = '' and tipo = 'OV' ) ) ) ) group by d.id order by fecha, orden You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') or abs(t.aplicaciones) > 100 ) /** anterior a los proximos dia' at line 34 SQLSTATE 42000 CONTEXT: _module=unidades4 String alquiler=null idalquiler=null saldo=null cantidad=null component request_ _c=unidades4/verunidad String _v=6140 String _x=onopen String _mv=956 String _h=rVCIOaU2JMre2OKyplHH String _sessionid=rVCIOaU2JMre2OKyplHH String _servername=miquartier.com.ar String _url=https://miquartier.com.ar/miquartier/index.html String u_ u_expensa=null String u_posesiones=0 Long u_proyecto=[qbajo@emprendimientos4.emprendimiento] u_abierta=null String u_totalproyectos=1 Long s_ s_usuario=[168891@consorcios4.persona] s_loggedin=yes String s_abiertodesde=null s_perfil=null s_idcontacto=168891 Integer s_abiertohasta=null s_phpurl=https://.miquartier.com.ar/consorcios3/ String s_cerradohasta=2024-11-30 Date s_mesabierto=null s_expensasabiertas=null s_unidadrel= String proyecto=qbajo String s_idunidad=null s_cerradodesde=2024-11-01 Date s_mescerrado=2024-11 String s_mudanza=157177 Integer s_unidad=null s_idusuario= String s_unidadestado= String g_ g_expensa=null g_base=.. String g_proyecto=null _e=uv1066_quartier String