******** 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
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 = '23077'
/** 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 = '15136' **/
/** group by 2, t.vencimiento **/
order by 2,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 ')
/** and u.tipou = 'D' **/
/** and u.id = '15136' **/
/** group by' at line 45
SQLSTATE 42000
CONTEXT:
codigounidad= 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=15136 Integer
alquilerespendientesnoconfirmados=0 Long
countcocheras3=0 Long
urlintranet=http://quartiermascolonia.com String
tempdenominacion=1 915 String
textmasc=Cuando la unidad esté habitada podrá registrar mascotas String
title2=Torre: 1 9 915() String
idocom=23077 Integer
_module=unidades4 String
tempdepartamento=915 String
textveh=Cuando la unidad esté habitada podrá registrar sus vehiculos String
cantmascotas=0 Long
completadoinquilino=N String
cantidad=1 Long
completado=S String
permisosparaseguridadverinfocliente=N String
idunidad=15136 Integer
textores=Habilitar Reservas String
claveinquilino=null
cantalqprox=0 Long
denominacionunidad=1 915 String
total_registros_vehiculos=0 Long
ultimoingresoinquilino=null
estadounidad=En Obra 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=9 String
inhabilitareserva=null
today=Sat Dec 21 11:27:43 UTC 2024 Date
temptorre2=Torre: 1 String
ultimoingreso=null
textinq=Cuando la unidad esté habitada podrá registrar inquilinos String
clave=null
temptorre=1 String
total_registros_emergencia=0 Long
unamoneda=ARS String
saldo=1674.900000 BigDecimal
disablecambiarestado= String
textcont=Cuando la unidad esté habitada podrá registrar contactos principales String
tempcodigo= String
denominacion=1 915 String
disable=disable String
alquiler=null
textserv=Cuando la unidad esté habitada podrá registrar personal de servicio String
idalquiler=null
tempdenominacion2=Denominacion: 1 915 String
days=30 Long
component
request_
_c=unidades4/verunidad String
_v=6148 String
_x=onopen String
_mv=970 String
_h=U2lmRpNx3sQx0go3cLXK String
_sessionid=U2lmRpNx3sQx0go3cLXK 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=[2@emprendimientos4.emprendimiento]
u_abierta=null String
u_totalproyectos=1 Long
s_
s_usuario=[168347@consorcios4.persona]
s_loggedin=yes String
s_abiertodesde=null
s_perfil=Propietario String
s_idcontacto=168347 Integer
s_abiertohasta=null
s_phpurl=https://.miquartier.com.ar/consorcios3/ String
s_mesabierto=null
s_expensasabiertas=null
s_unidadrel=Titular String
proyecto=2 String
s_idunidad=15136 Integer
s_unidad=[15136@unidades4.unidad]
s_idusuario= String
s_unidadestado=En Obra String
g_
g_expensa=null
g_base=.. String
g_proyecto=null
_e=uv1066_quartier String