******** ERROR detallestabla.onopen(-1) SQL Error: select /** distinct u.denominacion as unidad, u.notas as notasunidad, **/ if(t.descripcion like '%cesion%', '', t.descripcion) as concepto, t.importe * -1 as importe, t.saldo * -1 as saldo, t.moneda as moneda, t.vencimiento from emdoc d join emtrans t on d.id = t.documento /** join ocom as o on d.ocom = o.id join rcom as r on d.ocom = r.operacioncomercial join Unidades as u on r.unidadId = u.id **/ where d.ocom = '' /** o.estado not in ('Anulada', 'Inactiva') **/ and t.descripcion not like 'FR %' and t.descripcion not like '%FR' and t.descripcion != 'SALDO' /**and (t.descripcion in ('Gastos funcionamiento', 'Gastos de equipamiento', 'Ingresos Brutos') or t.descripcion like '%Posesi%')**/ and if(t.contabilidad is null,t.contabilidad is null,t.contabilidad != 'G') and d.tipo = 'ov' and t.tipo = 'M' /**and t.moneda = 'ARS'**/ /** mostrar todos los saldos and if(''= 1, t.vencimiento < date_add('', interval '' day), t.vencimiento < date_add(current_date(), interval '' day) ) and ( (abs(t.saldo) > 10 and t.moneda = 'ARS') or (abs(t.saldo) > 1 and t.moneda = 'UVA') or (abs(t.saldo) > 1 and t.moneda = 'USD') ) **/ and d.estado = '+Emitida' /** and d.empresa = (select empresa from Emprendimientos where id = 'qbajo') **/ and t.estado != "ANULADA" and t.estado != "Anulada" /** and d.ocom in (select id from ocom where estado !="ANULADA" and estado not like 'Reserva%' and estado not like 'Oferta%' **/ /** and clase = 'Fiduciante A' **/ /** ) **/ /** and u.tipou = 'D' **/ /** and u.id = '10991' **/ and ( t.vencimiento <= date_add(current_date(), INTERVAL DAY) or abs(t.aplicaciones) > 100 ) /** group by 2, t.vencimiento **/ order by t.vencimiento,t.id 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 ) /** group by 2, t.vencimiento **/' at line 51 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 ******** 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 CONTEXT: codigounidad=Mueble Cocina 100 String ingresointranet=null texttitular=Cuando la unidad esté habitada podrá solicitar cambio de titular String textemg=Cuando la unidad esté habitada podrá registrar contactos de emergencia String inhreserva=btn-flat-success String visual=none String id=10991 String alquilerespendientesnoconfirmados=0 Long countcocheras3=0 Long urlintranet=http://distritoquartier.com String tempdenominacion=Mueble Cocina 100 String textmasc=Cuando la unidad esté habitada podrá registrar mascotas String title2=Torre: 100 Mueble Cocina(Mueble Cocina 100) String _module=unidades4 String tempdepartamento=Mueble Cocina String textveh=Cuando la unidad esté habitada podrá registrar sus vehiculos String cantmascotas=0 Long completadoinquilino=N String cantidad=0 Long completado=S String permisosparaseguridadverinfocliente=N String textores=Habilitar Reservas String claveinquilino=null cantalqprox=0 Long total_registros_vehiculos=0 Long ultimoingresoinquilino=null estadounidad= panel textalquileres=Cuando la unidad esté habitada podrá agregar alquileres a su unidad String textotros=Cuando la unidad esté habitada podrá registrar autorizados String textresi=Cuando la unidad esté habitada podrá registrar residentes String temppiso= String inhabilitareserva=null today=Sat Mar 29 08:40:37 ART 2025 Date temptorre2=Torre: 100 String ultimoingreso=null textinq=Cuando la unidad esté habitada podrá registrar inquilinos String clave=null temptorre=100 String total_registros_emergencia=0 Long saldo=null disablecambiarestado=disable String textcont=Cuando la unidad esté habitada podrá registrar contactos principales String tempcodigo=Mueble Cocina 100 String denominacion=Mueble Cocina 100 String disable=disable String alquiler=null textserv=Cuando la unidad esté habitada podrá registrar personal de servicio String idalquiler=null tempdenominacion2=Denominacion: Mueble Cocina 100 String component request_ idunidad=10991 String _c=unidades4/verunidad String _v=6203 String _x=onopen String _mv=1034 String _h=bSGBJ4tbrCMF2k6El0T5 String _sessionid=bSGBJ4tbrCMF2k6El0T5 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=[dqpr@emprendimientos4.emprendimiento] u_abierta=null String u_totalproyectos=1 Long s_ s_usuario=[169335@consorcios4.persona] s_loggedin=yes String s_abiertodesde=null s_perfil=Seguridad String s_verreservaamenitie=N String s_idcontacto= String s_abiertohasta=null s_phpurl=https://.miquartier.com.ar/consorcios3/ String s_cerradohasta=2025-02-28 Date s_mesabierto=null s_expensasabiertas=null s_unidadrel= String proyecto=dqpr String s_idunidad=null s_cerradodesde=2025-02-01 Date s_mescerrado=2025-02 String s_mudanza=157153 Integer s_unidad=null s_idusuario=169335 Integer s_unidadestado= String g_ g_expensa=null g_base=.. String g_proyecto=null _e=uv1066_quartier String