-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 22-11-2025 a las 18:19:18
-- Versión del servidor: 5.7.44
-- Versión de PHP: 8.1.33

START TRANSACTION;



--
-- Base de datos: `wwcont_residenciaselrey`
--

DELIMITER $$
--
-- Procedimientos
--
CREATE DEFINER=`root`@`localhost` PROCEDURE `cambiarcostoencascada` (IN `idarticuloin` BIGINT(20), IN `ccin` BIGINT(20))  SQL SECURITY INVOKER BEGIN
declare idtablaactual int(11);
declare idarticuloactual int(11);
delete from auxiliarcambiodeprecios where cc=ccin;
insert into auxiliarcambiodeprecios(idarticulo,idinsumo,cantidad,cc)
select idarticulo,idinsumo,cantidad,ccin from componentesarticulos where idinsumo=idarticuloin;
while (select count(id) from auxiliarcambiodeprecios  where cc=ccin)>0 do 
set idtablaactual=(select id from auxiliarcambiodeprecios where cc=ccin limit 1);
set idarticuloactual=(select idarticulo from auxiliarcambiodeprecios where id=idtablaactual);
update articulos set subido=0,costomedio=calcularcostoseguningredientes(idarticuloactual) where id=idarticuloactual;
insert into auxiliarcambiodeprecios(idarticulo,idinsumo,cantidad,cc)
select idarticulo,idinsumo,cantidad,ccin from componentesarticulos where idinsumo=idarticuloactual;
delete from auxiliarcambiodeprecios  where id=idtablaactual;
end while;

END$$

CREATE DEFINER=`root`@`localhost` PROCEDURE `cotizarreceta` (IN `idusuarioin` INT(11), IN `tipodecotizacion` INT(1))  SQL SECURITY INVOKER BEGIN
declare idtablaactual int(11);
declare idcotizacionactual int(11);
declare cantidadactual double;
declare cantidadcotizacionactual double;
declare idarticuloactual int(11);
declare idarticuloparacotizar int(11);
if(select count(id) from auxiliarcotizarreceta)=0 THEN
truncate table auxiliarcotizarreceta;
else
delete from auxiliarcotizarreceta where idusuario=idusuarioin;
end if;
if(select count(id) from respuestacotizacionreceta)=0 THEN
truncate table respuestacotizacionreceta;
else
delete from respuestacotizacionreceta where idusuario=idusuarioin;
end if;




insert into respuestacotizacionreceta(idarticulo,idinsumo,cantidad,idusuario)
select 0,idarticulo,cantidad,idusuarioin from cotizaciondereceta where mirarsitienecomposicion(idarticulo)=0;









while(select count(id) from cotizaciondereceta where idusuario=idusuarioin and revisado=0)>0 DO
set idcotizacionactual=(select id from cotizaciondereceta  where idusuario=idusuarioin and revisado=0 limit 1);
set cantidadcotizacionactual=(select cantidad from cotizaciondereceta  where id=idcotizacionactual);
set idarticuloparacotizar=(select idarticulo from cotizaciondereceta  where id=idcotizacionactual);
insert into auxiliarcotizarreceta(idarticulo,idinsumo,cantidad,idusuario)
select idarticulo,idinsumo,cantidad*cantidadcotizacionactual,idusuarioin from componentesarticulos where idarticulo=idarticuloparacotizar;
while (select count(id) from auxiliarcotizarreceta  where idusuario=idusuarioin)>0 do 
set idtablaactual=(select id from auxiliarcotizarreceta  where idusuario=idusuarioin limit 1);
set idarticuloactual=(select idinsumo from auxiliarcotizarreceta where id=idtablaactual);
set cantidadactual=(select cantidad from auxiliarcotizarreceta where id=idtablaactual);
if(mirarsitienecomposicion(idarticuloactual)=0) THEN
insert into respuestacotizacionreceta(idarticulo,idinsumo,cantidad,idusuario)
values(0,idarticuloactual,cantidadactual,idusuarioin);
ELSE
insert into auxiliarcotizarreceta(idarticulo,idinsumo,cantidad,idusuario)
select idarticuloactual,idinsumo,cantidad*cantidadactual,idusuarioin from componentesarticulos where idarticulo=idarticuloactual;
end IF;
delete from auxiliarcotizarreceta  where id=idtablaactual;
end while;
update cotizaciondereceta set revisado=1 where id=idcotizacionactual;
end while;
if(tipodecotizacion=0) then 
select sum(respuestacotizacionreceta.cantidad) as cantidad,articulos.descripcion,articulos.costomedio as costo,unidaddemedida from respuestacotizacionreceta,articulos,unidadesdemedida where idinsumo=articulos.id and idunidaddemedida=unidadesdemedida.id GROUP by descripcion;
else 
select sum(respuestacotizacionreceta.cantidad) as cantidad,articulos.descripcion,articulos.ultimocoste as costo,unidaddemedida from respuestacotizacionreceta,articulos,unidadesdemedida where idinsumo=articulos.id and idunidaddemedida=unidadesdemedida.id GROUP by descripcion;
end if;
END$$

CREATE DEFINER=`root`@`localhost` PROCEDURE `detallarsurecetaagrupada` (IN `idarticuloin` INT(11), IN `idusuarioin` INT(11))  SQL SECURITY INVOKER BEGIN
declare idtablaactual int(11);
declare cantidadactual double;
declare idarticuloactual int(11);
if(select count(id) from auxiliarcostoagrupado)=0 THEN
truncate table auxiliarcostoagrupado;
else
delete from auxiliarcostoagrupado where idusuario=idusuarioin;
end if;

if(select count(id) from respuestacostoagrupado)=0 THEN
truncate table respuestacostoagrupado;
else
delete from respuestacostoagrupado where idusuario=idusuarioin;
end if;



insert into auxiliarcostoagrupado(idarticulo,idinsumo,cantidad,idusuario)
select idarticulo,idinsumo,cantidad,idusuarioin from componentesarticulos where idarticulo=idarticuloin;
while (select count(id) from auxiliarcostoagrupado  where idusuario=idusuarioin)>0 do 
set idtablaactual=(select id from auxiliarcostoagrupado  where idusuario=idusuarioin limit 1);
set idarticuloactual=(select idinsumo from auxiliarcostoagrupado where id=idtablaactual);
set cantidadactual=(select cantidad from auxiliarcostoagrupado where id=idtablaactual);
if(mirarsitienecomposicion(idarticuloactual)=0) THEN
insert into respuestacostoagrupado(idarticulo,idinsumo,cantidad,idusuario)
values(0,idarticuloactual,cantidadactual,idusuarioin);
ELSE
insert into auxiliarcostoagrupado(idarticulo,idinsumo,cantidad,idusuario)
select idarticuloactual,idinsumo,cantidad*cantidadactual,idusuarioin from componentesarticulos where idarticulo=idarticuloactual;
end IF;
delete from auxiliarcostoagrupado  where id=idtablaactual;
end while;
select sum(respuestacostoagrupado.cantidad) as cantidad,articulos.descripcion,articulos.costomedio,unidaddemedida from respuestacostoagrupado,articulos,unidadesdemedida where idinsumo=articulos.id and idunidaddemedida=unidadesdemedida.id GROUP by descripcion;
END$$

CREATE DEFINER=`root`@`localhost` PROCEDURE `truncarventasauxiliar` ()  SQL SECURITY INVOKER BEGIN
declare n int(11);
set n =(select count(id) from ventasauxiliar);
if n=0 then 
truncate table ventasauxiliar;
end if;
END$$

--
-- Funciones
--
CREATE DEFINER=`root`@`localhost` FUNCTION `biscaridfactura` (`consecutivoin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select id from facturas where consecutivo=consecutivoin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `biscarnombrecc` (`ccin` INT(11)) RETURNS VARCHAR(110) CHARSET utf8 SQL SECURITY INVOKER BEGIN
DECLARE P VARCHAR(110);
SET P=(select centrodecostos from centrosdecostos where id=ccin);
RETURN ifnull(P,'DESCONOCIDO');
END$$

CREATE DEFINER=`wwcont_pruebas`@`%.%.%.%` FUNCTION `bucarnombredeltercero` (`idin` INT(11)) RETURNS VARCHAR(110) CHARSET latin1 SQL SECURITY INVOKER BEGIN DECLARE P varchar(110); SET P=(select concat(ifnull(primernombre,''),' ',ifnull(segundonombre,''),' ',ifnull(primerapellido,''),' ',ifnull(segundoapellido,''),' ',ifnull(razonsocial,''),' ',ifnull(nombrecomercial,'')) from clientes where id=idin); RETURN ifnull(P,'DESCONOCIDO'); END$$

CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscadescripcionporrefcruzada` (`refin` INT(11)) RETURNS VARCHAR(50) CHARSET utf8 SQL SECURITY INVOKER BEGIN declare a varchar(50); set a=(select descripcion from articulos where referenciacruzada=refin); return ifnull(a,'ERROR EN REFERENCIA CRUZADA'); end$$

CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscarabonos` (`idfacturain` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P INT(11); SET P=(select sum(valor) from abonos where idfactura=idfacturain and nc=0); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarabonosencompras` (`idfacturain` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P double; SET P=(select sum(valor) from abonoscompras where idmayorcompras=idfacturain); RETURN ifnull(P,0); END$$

CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `buscarabonosenseparados` (`idfacturain` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P double; SET P=(select sum(valor) from abonosseparados where idmayorseparados=idfacturain and nc=0 and idgasto=0); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarajustesproducto` (`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from ajustesdeinventario where idarticulo=idin and cast(fechacreacion as date) BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarbajasproducto` (`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from bajas where idarticulo=idin and cast(fecha as date)  BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarbarriotercero` (`idin` INT(11)) RETURNS VARCHAR(110) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE P varchar(110);
SET P=(select barrio from clientes where id=idin);
RETURN ifnull(P,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcajaenfactura` (`consecutivoin` INT(11), `ccin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P INT(11); SET P=(select idcaja from facturas where consecutivo=consecutivoin and cc=ccin limit 1); RETURN ifnull(P,1); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcantidaddeldia` (`idarticuloin` INT(11), `fechain` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P DOUBLE;
SET P=(select AVG(cantidad) from inventarioinicial where idarticulo=idarticuloin and cast(fechacracion as date)=fechain);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcantidadennotasdebito` (`idarticuloin` INT(11), `idmayorin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P int(11);
set P=(select sum(cantidad) from lineasnotasdebito where idmayor=idmayorin and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarccdelarticulo` (`idin` INT(4)) RETURNS INT(4) SQL SECURITY INVOKER BEGIN
DECLARE P INT(4);
SET P=(select cc from articulos where id=idin);
RETURN ifnull(P,-1);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarceduladeltercero` (`idin` INT(11)) RETURNS VARCHAR(110) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE P varchar(20);
SET P=(select ifnull(cedula,'') from clientes where id=idin);
RETURN ifnull(P,'DESCONOCIDO');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarclientedelamesa` (`idmesain` INT(11)) RETURNS VARCHAR(50) CHARSET latin1  BEGIN declare rs varchar(50); set rs=(select idcliente from ventasauxiliar where idmesa=idmesain limit 1); set rs=ifnull(rs,1); if rs>1 THEN set rs=bucarnombredeltercero(rs); ELSE set rs=''; end if; if rs='CLIENTES VARIOS' then set rs='';end if; return rs; end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcodigoformapago` (`forma` VARCHAR(100)) RETURNS INT(11)  begin 
declare rs int(11);
set rs=(select orden from mediosdepago where mediodepago=forma);
return ifnull(rs,-1);
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcodsituacion` (`idarticuloin` INT(11)) RETURNS VARCHAR(100) CHARSET latin1 SQL SECURITY INVOKER BEGIN
declare rs varchar(150);
set rs=(select situacioncocina from articulos where id=idarticuloin);
return ifnull(rs,'Situacion indefinida');
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcomprasporproductomesyano` (`idin` INT(11), `mesin` INT(2), `anoin` INT(4)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from compras where idarticulo=idin and
       month(fecha)=mesin and year(fecha)=anoin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcomprasproducto` (`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad*factor) from compras where idarticulo=idin and cast(fecha as date)  BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarconsumosproducto` (`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(SELECT sum(movimientosdeinventario.cantidad)  from movimientosdeinventario where 
        idarticulo=idin and  cast(fechacreacion as date) between '' and '' 
         and (ventana='VENTAS' or ventana='CORTESIAS' OR ventana='DEVOLUCIONES'));
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarconteoproducto` (`idin` INT(11), `fecha1` DATE) RETURNS VARCHAR(11) CHARSET utf8 SQL SECURITY INVOKER BEGIN
DECLARE P VARCHAR(11);
SET P=(select cantidad from inventarioinicial,mayoresinventarioinicial where idarticulo=idin and fecha=fecha1 and idmayor=mayoresinventarioinicial.id);
RETURN ifnull(P,'NA');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcostomedio` (`idarticulo` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P double; SET P=(select costomedio from articulos where id=idarticulo); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcreditosdeldia` (`ccin` INT(4), `fechain` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(
    select sum(facturas.total) from facturas 
       where cc=ccin and cast(fecha as date)=fechain and documento='C');
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcuentacompras` (`idin` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 NO SQL SQL SECURITY INVOKER BEGIN
declare a varchar(25);
set a=(select articulos.cuentacompras from articulos where id=idin);
return ifnull(a,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcuentacosto` (`idin` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 NO SQL SQL SECURITY INVOKER BEGIN
declare a varchar(25);
set a=(select articulos.cuentacosto from articulos where id=idin);
return ifnull(a,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcuentaventa` (`idin` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 NO SQL SQL SECURITY INVOKER BEGIN
declare a varchar(25);
set a=(select articulos.cuentaventa from articulos where id=idin);
return ifnull(a,'');
END$$

CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscardescripcion` (`idin` INT(11)) RETURNS VARCHAR(150) CHARSET utf8 SQL SECURITY INVOKER BEGIN
DECLARE P varchar(150);
SET P=(select ifnull(descripcion,'') from articulos where id=idin );
RETURN ifnull(P,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscardescuendoespecial` (`lineain` VARCHAR(50), `idgrupoin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN declare r double; set r=(select porcentaje from descuentosporgrupo where linea=lineain and idgrupo=idgrupoin); return ifnull(r,0); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscardescuentoporfecha` (`idarticuloin` INT(11), `horain` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
declare rs int(11);
set rs=(select porcentaje from porcentajesdescuentoarticulos,fechasdescuentos where fechasdescuentos.id=porcentajesdescuentoarticulos.idfecha and idarticulo=idarticuloin and fechasdescuentos.fecha=horain limit 1);
return ifnull(rs,0);
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscardiadelasemana` (`fechain` DATETIME) RETURNS VARCHAR(25) CHARSET utf8 SQL SECURITY INVOKER BEGIN
declare a varchar(25);declare b int(1);
set a='';

set b=(select DAYOFWEEK(fechain));
if b=2 then set a='Lunes'; 
elseif b=3 then set a='Martes' ;
elseif b=4 then set a='Miércoles'; 
elseif b=5 then set a='Jueves' ;
elseif b=6 then set a='Viernes';
elseif b=7 then set a='Sábado';
elseif b=1 then set a='Domingo'; 
end if;
return a;
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscardirecciontercero` (`idin` INT(11)) RETURNS VARCHAR(110) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE P varchar(110);
SET P=(select direccion from clientes where id=idin);
RETURN ifnull(P,'');
END$$

CREATE DEFINER=`wwcont_pruebas`@`%.%.%.%` FUNCTION `buscarfactor` (`idin` INT(11)) RETURNS INT(5) SQL SECURITY INVOKER BEGIN declare rs int(5); set rs=(select factor from unidadesdemedida where id=idin); return ifnull(rs,1); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarfechadefactura` (`consecutivoin` INT(11)) RETURNS DATE SQL SECURITY INVOKER BEGIN
DECLARE P DATE;
SET P=(select cast(fecha as date) from ventas where consecutivo=consecutivoin LIMIT 1);
RETURN ifnull(P,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarfisicoproducto` (`idin` INT(11), `fecha1` DATE) RETURNS VARCHAR(11) CHARSET utf8 SQL SECURITY INVOKER BEGIN
DECLARE P VARCHAR(11);
SET P=(select fisico from inventarioinicial,mayoresinventarioinicial where idarticulo=idin and fecha=fecha1 and idmayor=mayoresinventarioinicial.id);
RETURN ifnull(P,'NA');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridclientedelamesa` (`idmesain` INT(11), `id99` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE rs int(1); set rs=(select idcliente from ventasauxiliar where idmesa=idmesain limit 1);
return ifnull(rs,id99); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridmeseroactual` (`idmesain` INT(11), `id99` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE rs int(11); set rs=(select idvendedor  from ventasauxiliar where idmesa=idmesain limit 1); return ifnull(rs,id99); end$$

CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscaridporrefcruzada` (`refin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN declare a int(11); set a=(select id from articulos where referenciacruzada=refin); return ifnull(a,0); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridseccion` (`seccionin` VARCHAR(50)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P int(11); SET P=(select ifnull(id,0) from secciones where seccion=seccionin); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridunicodecliente` (`nombrein` VARCHAR(100)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select id from clientes where primernombre=nombrein);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridunidad` (`unidadin` VARCHAR(50), `ccin` INT(1)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P int(11); SET P=(select ifnull(id,1) from unidadesdemedida where unidaddemedida=unidadin and cc=ccin); RETURN ifnull(P,1); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarimpresora` (`situacionin` VARCHAR(100)) RETURNS VARCHAR(105) CHARSET latin1 SQL SECURITY INVOKER BEGIN
declare rs varchar(150);
set rs=(select nombreimpresora from situacionesdecocina where situacioncocina=situacionin);
return ifnull(rs,'Situacion indefinida');
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarinventariodeinsumos` (`idarticuloin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE q int(11);
SET q=(select tienecomposicion from articulos where id=idarticuloin);
if(q=0) THEN  
set q=(select cantidad from articulos where id=idarticuloin);
ELSE 
SET q=(select min(cantidad) from articulos where id in(select idinsumo from componentesarticulos where idarticulo=idarticuloin));
END IF;
RETURN ifnull(q,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarlineadelarticulo` (`idarticuloin` INT(11)) RETURNS VARCHAR(100) CHARSET latin1 SQL SECURITY INVOKER BEGIN DECLARE rs varchar(100); 
set rs=(select linea  from articulos where id=idarticuloin ); return ifnull(rs,''); end$$

CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscarmediodepago` (`idin` INT) RETURNS VARCHAR(15) CHARSET latin1 NO SQL BEGIN
declare a varchar(15);
declare b int(1);
set b=(select count(id) from registrosmediosdepago where idfactura=idin);
       if b>1 then 
       set a='VARIOS';
       ELSE
       set a=(select mediodepago from registrosmediosdepago where idfactura=idin);
       end if;
       return a;
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombrecc` (`ccin` INT(11)) RETURNS VARCHAR(110) CHARSET utf8 SQL SECURITY INVOKER BEGIN
DECLARE P VARCHAR(110);
SET P=(select centrodecostos from centrosdecostos where id=ccin);
RETURN ifnull(P,'DESCONOCIDO');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombreclientedelamesa` (`idmesain` INT(11)) RETURNS VARCHAR(100) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE rs varchar(100);
set rs=(select bucarnombredeltercero(idcliente) from ventasauxiliar where idmesa=idmesain limit 1);
return ifnull(rs,'');
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombredelamesa` (`idin` INT(5)) RETURNS VARCHAR(50) CHARSET latin1 NO SQL BEGIN
declare a varchar(50);
set a=(select nombre from mesas where id=idin);
return ifnull(a,' '); 
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombredelamesadividida` (`idmesain` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 SQL SECURITY INVOKER BEGIN
declare a varchar(25);
set a=(select mesas.nombre from mesas, ventasauxiliar where ventasauxiliar.idmesarelacionada=mesas.id and ventasauxiliar.idmesa=idmesain limit 1);
RETURN ifnull(a,'');
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombredelarticulo` (`idin` INT(11)) RETURNS VARCHAR(400) CHARSET utf8 SQL SECURITY INVOKER BEGIN DECLARE P varchar(400); SET P=(select descripcion from articulos where id=idin); RETURN ifnull(P,''); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnotassencompras` (`idmayorin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P int(11); SET P=(select sum(valortotal) from notasdebito where idmayorescompras=idmayorin); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnumlinea` (`identif` VARCHAR(50), `esmodifin` INT(1)) RETURNS INT(2) SQL SECURITY INVOKER BEGIN
DECLARE P int(2);
if  esmodifin=0 then 
SET P=(select 1+max(numlinea) from ventasauxiliar where idmesa=identif and esmodif=0);
else 
SET P=(select max(numlinea) from ventasauxiliar where idmesa=identif and esmodif=0);
end if;
RETURN ifnull(P,1);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnumlineaporcliente` (`idclientein` VARCHAR(50), `esmodifin` INT(1)) RETURNS INT(2) SQL SECURITY INVOKER BEGIN
DECLARE P int(2);
if  esmodifin=0 then 
SET P=(select 1+max(numlinea) from ventasauxiliar where idcliente=idclientein);
else 
SET P=(select max(numlinea) from ventasauxiliar where idcliente=idclientein and esmodif=0);
end if;
RETURN ifnull(P,1);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnumlineatomapedidos` (`identif` VARCHAR(50), `esmodifin` INT(1)) RETURNS INT(2) SQL SECURITY INVOKER BEGIN
DECLARE P int(2);
if  esmodifin=0 then 
SET P=(select 1+max(numlinea) from ventasauxiliar where identificador=identif and esmodif=0);
else 
SET P=(select max(numlinea) from ventasauxiliar where identificador=identif and esmodif=0);
end if;
RETURN ifnull(P,1);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarordendia` (`a` VARCHAR(10)) RETURNS INT(1) SQL SECURITY INVOKER BEGIN
declare b int(1);
set b=0;


if a='Lunes' then set b=1; 
elseif  a='Martes'  then set b=2;
elseif  a='Miércoles' then set b=3;
elseif   a='Jueves'  then set b=4;
elseif  a='Viernes' then set b=5;
elseif  a='Sábado' then set b=6;
elseif   a='Domingo' then set b=7;
end if;
return b;
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarporcentaje` (`ccin` INT(11), `idarticuloin` INT(11), `idclientein` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
if ccin=9 then return 15; end if;
SET P=(select preciosespeciales.porcentaje from preciosespeciales,articulos where idcliente=idclientein and articulos.id=idarticuloin and articulos.linea=preciosespeciales.linea);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarporcentajeporgrupo` (`ccin` INT(4), `idclientein` INT(11), `idarticuloin` INT(11)) RETURNS INT(3) SQL SECURITY INVOKER BEGIN DECLARE P INT(11); SET P=(select descuentosporgrupo.porcentaje from descuentosporgrupo,articulos,clientes,gruposdepersonas where clientes.id=idclientein and articulos.id=idarticuloin and articulos.linea=descuentosporgrupo.linea and clientes.idgrupo=gruposdepersonas.id and descuentosporgrupo.idgrupo=gruposdepersonas.id); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciodeventa` (`idin` INT) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select preciodeventa from paraventas where id=idin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarprecioiva` (`numlineain` INT(11), `idfacturain` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
declare rs double;
set rs=(select sum(valortotal) from ventas where idfactura=idfacturain and numlinea=numlineain );
return ifnull(rs,0);
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciomaximo` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P DOUBLE;
SET P=(select MAX(valorgramo) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciominimo` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P DOUBLE;
    SET P=(select MIN(valorgramo) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciopromedio` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select AVG(valorgramo) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarrecibe` (`idin` INT(11)) RETURNS VARCHAR(200) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE P VARCHAR(200);
SET P=(select recibe from paraventas where id=idin);
RETURN ifnull(P,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarreferencia` (`idarticuloin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P INT(11); SET P=(select referencia from articulos where id=idarticuloin ); RETURN ifnull(P,0); END$$

CREATE DEFINER=`wwcont_residenciaselrey`@`vps-435806.controlweb.co` FUNCTION `buscarsaldodelafactura` (`idfacturain` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P INT(11); DECLARE aabonado INT(11); declare doc varchar(1); set doc=(select documento from facturas where id=idfacturain); if(doc='V') then RETURN 0; ELSE set aabonado=(select abonado from facturas where id=idfacturain); if aabonado>0 then set P= 0; else SET P=(select total  -retencion+servicio -buscarabonos(idfacturain) -valornc from facturas where id=idfacturain); end if; RETURN ifnull(P,0); END IF; END$$

CREATE DEFINER=`wwcont_residenciaselrey`@`162.240.7.104` FUNCTION `buscarsaldodelamayor` (`idmayorin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P double; declare notas int(11); DECLARE aabonado double; declare doc varchar(7); set notas=buscarnotassencompras(idmayorin); set doc=(select documento from mayorescompras where id=idmayorin); if(doc='CONTADO') then RETURN 0; ELSE SET P=(select base+iva-descuento - otrosdescuentos -buscarabonosencompras(idmayorin) - descuentocomercial from mayorescompras where id=idmayorin); SET P=P-notas; RETURN ifnull(P,0); END IF; END$$

CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscarsaldodelamayorseparados` (`idmayorin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P double; DECLARE aabonado double; SET P=(select total -buscarabonosenseparados(idmayorin) from mayoresseparados where id=idmayorin); RETURN ifnull(P,0); END$$

CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscarsaldodelcliente` (`idclientein` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE P FLOAT(11); DECLARE Q FLOAT(11); DECLARE S FLOAT(11); SET P=(select sum(saldo) from facturas where idcliente=idclientein and documento='C' and abonado=0); set P=ifnull(P,0); set Q=(select sum(saldo) from mayoresseparados where idcliente=idclientein and abonado=0); set Q=ifnull(Q,0); set S=(select sum(saldo) from prestamos where idcliente=idclientein); set S=ifnull(S,0); RETURN ROUND(p+q+S,2); END$$

CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarsaldodelprestamo` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
    declare a double;
    set a=(select sum(valor) from abonosprestamos  where idprestamo=idin);
    set a=ifnull(a,0);
    return (select plazo*valorcuota+valorcuotainicial-a from prestamos where id=idin);
    end$$

CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarsaldodelprestamoin` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
     declare a double;
     set a=(select sum(valor) from abonosprestamosin  where idprestamo=idin);
     set a=ifnull(a,0);
     return (select valor-a from prestamosalaempresa where id=idin);
     end$$

CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarsaldodelproveedor` (`idclientein` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER begin DECLARE P INT(11); DECLARE Q INT(11);  DECLARE prestamos INT(11); 
SET prestamos=(select sum(saldo) from prestamosalaempresa where idcliente=idclientein);
SET P=(select sum(valor-descuento) from mayorescompras where idproveedor=idclientein and documento='CREDITO');
SET Q=(select sum(abonoscompras.valor) from abonoscompras,mayorescompras where mayorescompras.idproveedor=idclientein and abonoscompras.idmayorcompras=mayorescompras.id);
set prestamos=ifnull(prestamos,0); set P=ifnull(P,0); 
set Q=ifnull(Q,0); 
RETURN P+prestamos-Q; END$$

CREATE DEFINER=`wwcont_pruebas`@`%.%.%.%` FUNCTION `buscarseccion` (`idin` INT(11)) RETURNS VARCHAR(25) CHARSET utf8 SQL SECURITY INVOKER BEGIN
DECLARE a varchar(25);
set a=(select  seccion from  secciones where id=idin);
return ifnull(a,'');
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscartelefonotercero` (`idin` INT(11)) RETURNS VARCHAR(110) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE P varchar(110);
SET P=(select concat(ifnull(telefono,''),' ',ifnull(celular,'')) from clientes where id=idin);
RETURN ifnull(P,'');
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscartrasladosabodega` (`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from traslados where idarticulo=idin and cast(fechacreacion as date) BETWEEN fecha1 and fecha2) and origen<>'MESAS';
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscartrasladosproducto` (`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from traslados where idarticulo=idin and cast(fechacreacion as date) BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarultimaventa` (`idin` INT(11)) RETURNS DATE SQL SECURITY INVOKER BEGIN
        DECLARE P DATE;
        SET P=(select cast(fechacreacion as date) from ventas where idarticulo=idin order by id desc limit 1); 
        return ifnull(P,'');
        END$$

CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscarultimoabonodecompras` (`idclientein` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 SQL SECURITY INVOKER BEGIN
declare rs varchar(25);
set rs=(select max(abonoscompras.fechacreacion) from abonoscompras,mayorescompras where idmayorcompras=mayorescompras.id and mayorescompras.idproveedor=idclientein  );
return ifnull(rs,'SIN ABONOS');
end$$

CREATE DEFINER=`restaura_chickenden`@`localhost` FUNCTION `buscarunidaddemedida` (`idin` INT(11)) RETURNS VARCHAR(50) CHARSET latin1 SQL SECURITY INVOKER BEGIN declare rs varchar(50); set rs=(select unidaddemedida from unidadesdemedida where id=idin); return ifnull(rs,'DESCONOCIDO'); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarvalordelamesa` (`idmesain` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN DECLARE rs double; set rs=(select sum(valortotal) from ventasauxiliar where idmesa=idmesain); return ifnull(rs,0); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarvalordelanotadebito` (`idndin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN DECLARE P int(11); SET P=(select valortotal from notasdebito where id=idndin); RETURN ifnull(P,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarventasdelusuario` (`idin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P int(11);
SET P=(select ifnull(sum(total),0) from facturas where idvendedor =idin and cast(fechacreacion as date)=cast(now()as date) and abonado=0 );
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`restaura_chickenden`@`localhost` FUNCTION `buscarventasporproductoyvendedor` (`idvendedorin` INT(11), `idarticuloin` INT(11), `mesin` INT(2)) RETURNS INT(11) SQL SECURITY INVOKER begin
declare a int(11);
set a=(select sum(cantidad) from ventas where nc=0 and abonado=0 and idvendedor=idvendedorin and idarticulo=idarticuloin and year(fechacreacion)=year(now()) and month(fechacreacion)=mesin);
return ifnull(a,0);
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarventasproducto` (`idin` INT, `fecha1` DATE, `fecha2` DATE) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from ventas where idarticulo=idin and fechacreacion BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `buscarventasproductoanoymes` (`idin` INT(11), `mesin` INT(2), `anoin` INT(4)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from ventas where idarticulo=idin and month(fechacreacion)=mesin and year(fechacreacion)=anoin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `buscarzona` (`idin` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE a varchar(25);
set a=(select ifnull(zona,'DESCONOCIDO') from zonas,mesas where zonas.id=mesas.idzona and mesas.id=idin);
return ifnull(a,'DESCONOCIDO');
end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `calcularcostodelafactura` (`idfacturain` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P DOUBLE;
SET P=(select sum(cantidad*costomedio)  from ventas where idfactura=idfacturain);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `calcularcostopomedio` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER begin
declare a double;
declare b double;
declare c double;
declare d double;
declare e double;
declare f double;
set d=(select valorgramo from compras where idarticulo=idin order by id desc limit 1);
set e=(select costomedio from articulos where id=idin);
set f=(select ultimocoste from articulos where id=idin);
set d=ifnull(d,0);
set a=(SELECT sum(cantidad*factor) from compras where  
idarticulo=idin and month(fecha)=month(now()) and year(fecha)=year(now()));
       set b=(SELECT sum(valortotal) from compras where  
idarticulo=idin and month(fecha)=month(now()) and year(fecha)=year(now()));
       set a=ifnull(a,1);
       set b=ifnull(b,0);
set c=  (b*1.0/a*1.0);
if c= 0 then set c=d; end if;
if c= 0 and e>0 then set c=e; end if;
if c= 0 and f>0 then set c=f; end if;
return c;
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `calcularcostoseguningredientes` (`idarticuloin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P double;
SET P=(select sum(articulos.costomedio*componentesarticulos.cantidad) 
from articulos,componentesarticulos where articulos.id=idinsumo and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `calcular_disponibilidad` (`idarticuloin` INT) RETURNS DOUBLE  BEGIN
    DECLARE vtienecomposicion INT;
    DECLARE compromiso INT;
    DECLARE cantidadactual DOUBLE;

    -- Obtener si el artículo tiene composición
    SELECT tienecomposicion INTO vtienecomposicion
    FROM articulos
    WHERE id = idarticuloin;

    -- Calcular el compromiso
    SELECT IFNULL(SUM(factor * cantidad), 0) INTO compromiso
    FROM ventasauxiliar
    WHERE idarticulo = idarticuloin;

    -- Calcular la cantidad actual
    IF vtienecomposicion < 1 THEN
        SELECT cantidad INTO cantidadactual
        FROM articulos
        WHERE id = idarticuloin;
    ELSE
        SELECT  MIN(a2.cantidad / c.cantidad) INTO cantidadactual FROM articulos a1 LEFT JOIN componentesarticulos c ON a1.id = c.idarticulo LEFT JOIN articulos a2 ON c.idinsumo = a2.id WHERE c.cantidad>0 and a1.id = idarticuloin;
    END IF;

    -- Calcular el compromiso actual
   
        RETURN  cantidadactual- compromiso;
    
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `cantidaddecompras` (`idin` INT(11)) RETURNS INT(4) SQL SECURITY INVOKER BEGIN
DECLARE P int(4);
SET P=(select count(id) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `comisionporclientes` (`idarticulo` INT(11), `idclientein` INT(11)) RETURNS INT(6) SQL SECURITY INVOKER BEGIN
DECLARE P int(6);
DECLARE q varchar(50);
SET q=(select grupo from clientes  where id=idclientein);
if(q='ENTRENADORES') THEN  
SET P=(select comision from articulos where id=idarticulo);
ELSE 
SET P=(select (-valordistribuidor+valordeventa)/2 from articulos where id=idarticulo);
END IF;
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `comisionpreciopublico` (`idarticulo` INT(11)) RETURNS INT(6) SQL SECURITY INVOKER BEGIN
DECLARE P int(6);
SET P=(select (-valordistribuidor+valordeventa)/2 from articulos where id=idarticulo);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `contararticulosenlamesa` (`idarticuloin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(4);
SET P=(select sum(cantidad) from ventasauxiliar where idarticulo=idarticuloin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `contarlineasdelamesa` (`idin` INT(11)) RETURNS INT(3) SQL SECURITY INVOKER BEGIN DECLARE P int(11); declare notas int(11); set notas=(select count(id) from ventasauxiliar where idmesa=idin);RETURN ifnull(notas,0); END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `contarlineasdemayorescompras` (`idmayorin` INT(11)) RETURNS INT(3) SQL SECURITY INVOKER BEGIN DECLARE P double; SET P=(select count(id) from compras where idmayor=idmayorin); RETURN ifnull(P,0); END$$

CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `contarlineasenventa` (`idin` INT(11)) RETURNS INT(3) NO SQL SQL SECURITY INVOKER begin declare a int(3); set a=(select count(id) from ventas where idfactura=idin and abonado=0 and nc=0 and esmodif=0); return ifnull(a,0); end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `contarventasanuladas` (`idarticuloin` INT(11), `idzin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P int(11);
set P=(select sum(cantidad) from ventas where idz=idzin and idarticulo=idarticuloin and abonado=1);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `contarventasbrutas` (`idarticuloin` INT(11), `idzin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P int(11);
set P=(select sum(cantidad) from ventas where idz=idzin and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `desvestcompras` (`idin` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P double;
DECLARE q double;
SET q=(select buscarpreciopromedio(idin));
SET P=(select sum((valorgramo-q)*(valorgramo-q)) from compras where idarticulo=idin);
RETURN ifnull(SQRT(P),0);
END$$

CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `esfestivo` (`fechain` DATE) RETURNS INT(1) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select id from festivos where fecha=fechain);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `espadre` (`idarticuloin` INT(11), `idinsumoin` INT(11), `idusuarioin` INT(11)) RETURNS INT(1) SQL SECURITY INVOKER BEGIN
declare idarticuloactual int(11);
delete from auxiliarbuscarpadre where idusuario=idusuarioin;
if idarticuloin=idinsumoin then 
return 1;
end if;
insert into auxiliarbuscarpadre(idusuario,a)
select idusuarioin,idarticulo  from componentesarticulos where idinsumo=idarticuloin;
while (select count(a) from auxiliarbuscarpadre where idusuario=idusuarioin)>0 do 
set idarticuloactual=(select a from auxiliarbuscarpadre where idusuario=idusuarioin limit 1);

if(idarticuloactual=idinsumoin)then return 1;end if;
insert into auxiliarbuscarpadre(idusuario,a)
select idusuarioin,idarticulo from componentesarticulos where idinsumo=idarticuloactual;
delete from auxiliarbuscarpadre  where a=idarticuloactual;
end while;
RETURN 0;
END$$

CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `facturatienemodificadores` (`idin` INT(11)) RETURNS INT(1) SQL SECURITY INVOKER begin declare a int(3);declare b int(1); 
set b=0;
set a=(select count(id) from ventas where idfactura=idin and esmodif=1); 
if(a>0) then set b=1;end if;
return b; end$$

CREATE DEFINER=`root`@`localhost` FUNCTION `mirarsienventatienecomposicion` (`idarticuloin` INT(11)) RETURNS INT(1) SQL SECURITY INVOKER BEGIN
declare a int(2);
set a=(select count(componentesarticulos.id) from componentesarticulos,articulos where idarticulo=articulos.id and articulos.referencia=idarticuloin);
RETURN ifnull(a,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `mirarsitienecomposicion` (`idarticuloin` INT(11)) RETURNS INT(1) SQL SECURITY INVOKER BEGIN
DECLARE P int(1);
SET P=(select count(id) from componentesarticulos where idarticulo=idarticuloin);
IF p<1 THEN return '0';
else return 1;
END IF;
END$$

CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `sepuedeborrarfamiliademodificadores` (`idin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(2);
DECLARE Q INT(2);
SET P=(select count(id) from asignacionarticulosfamiliasmodificadores where idfamilia=idin);
SET Q=(select count(id) from modificadores where idfamilia=idin);
RETURN if(P+Q>0,0,1);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `sumarventasanuladas` (`idarticuloin` INT(11), `idzin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P int(11);
set P=(select sum(valortotal-cantidad*descuento) from ventas where idz=idzin and idarticulo=idarticuloin and abonado=1);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `sumarventasbrutas` (`idarticuloin` INT(11), `idzin` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P int(11);
set P=(select sum(valortotal-cantidad*descuento) from ventas where idz=idzin and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `totalcompradeestecliente` (`idclientein` INT(11)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select SUM(total) from facturas where idcliente=idclientein);
RETURN ifnull(P,0);
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `totalizarventaauxiliar` (`idmesain` INT(11)) RETURNS DOUBLE SQL SECURITY INVOKER BEGIN
DECLARE P DOUBLE;
SET P=(SELECT ifnull(SUM(valortotal),0)/10 FROM ventasauxiliar where idmesa=idmesain);
RETURN P;
END$$

CREATE DEFINER=`root`@`localhost` FUNCTION `ventasentrehoras` (`ccin` INT(3), `fecha1` DATE, `hora1` VARCHAR(9), `hora2` VARCHAR(9)) RETURNS INT(11) SQL SECURITY INVOKER BEGIN
DECLARE P INT(11);
SET P=(select sum(valortotal) from ventas where cc=ccin and fecha between concat(fecha1,hora1) and concat(fecha1,hora2) ) ;
RETURN ifnull(P,0);
END$$

DELIMITER ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonos`
--

CREATE TABLE `abonos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idfactura` bigint(20) UNSIGNED NOT NULL,
  `nc` int(11) DEFAULT '0',
  `consecutivo` int(11) DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `saldoinicialfactura` double NOT NULL DEFAULT '0',
  `cc` int(11) DEFAULT '2',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `saldoinicial` double NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '1',
  `observacionesabono` varchar(300) DEFAULT NULL,
  `observacionesabonos` varchar(100) DEFAULT NULL,
  `consecutivosistema` int(11) DEFAULT NULL,
  `idoorden` int(11) DEFAULT '0',
  `idorden` int(11) DEFAULT '0',
  `idtercero` int(11) DEFAULT '0',
  `destino` varchar(25) DEFAULT NULL,
  `idreserva` int(6) DEFAULT '0',
  `idasesor` int(11) DEFAULT '0',
  `abonogeneral` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonoscompras`
--

CREATE TABLE `abonoscompras` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idmayorcompras` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` int(11) DEFAULT '0',
  `valorinicial` int(11) NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `mediodepago` varchar(25) DEFAULT NULL,
  `afectacaja` int(1) DEFAULT '1',
  `observacionesabonocompra` varchar(200) DEFAULT NULL,
  `abonogeneral` varchar(25) DEFAULT NULL,
  `idtercero` int(11) DEFAULT '0',
  `consecutivoac` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonosordenservicio`
--

CREATE TABLE `abonosordenservicio` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idorden` bigint(20) UNSIGNED NOT NULL,
  `consecutivo` int(11) DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `facturado` int(1) DEFAULT '0',
  `abonado` int(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonosprestamos`
--

CREATE TABLE `abonosprestamos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `valor` int(11) DEFAULT NULL,
  `saldoinicial` int(11) DEFAULT NULL,
  `saldofinal` int(11) DEFAULT NULL,
  `idz` int(11) DEFAULT '1',
  `idusuario` int(11) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idprestamo` int(11) DEFAULT NULL,
  `consecutivo` int(11) DEFAULT NULL,
  `idcliente` int(11) DEFAULT '0',
  `cc` int(11) DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonosprestamosin`
--

CREATE TABLE `abonosprestamosin` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `valor` int(11) DEFAULT NULL,
  `saldoinicial` int(11) DEFAULT NULL,
  `saldofinal` int(11) DEFAULT NULL,
  `idz` int(11) DEFAULT '1',
  `idusuario` int(11) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idprestamo` int(11) DEFAULT NULL,
  `consecutivo` int(11) DEFAULT NULL,
  `idcliente` int(11) DEFAULT '0',
  `cc` int(11) DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '0',
  `observaciones` varchar(100) DEFAULT NULL,
  `abonado` int(1) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonosreservas`
--

CREATE TABLE `abonosreservas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idfactura` bigint(20) UNSIGNED NOT NULL,
  `nc` int(11) DEFAULT '0',
  `consecutivo` int(11) DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `saldoinicialfactura` double NOT NULL DEFAULT '0',
  `cc` int(11) DEFAULT '2',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `saldoinicial` double NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '1',
  `observacionesabono` varchar(100) DEFAULT NULL,
  `observacionesabonos` varchar(100) DEFAULT NULL,
  `consecutivosistema` int(11) DEFAULT NULL,
  `abonado` int(11) DEFAULT '0',
  `idorden` int(11) DEFAULT '0',
  `idtercero` int(11) DEFAULT '0',
  `destino` varchar(25) DEFAULT NULL,
  `idreserva` int(6) DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT 'EFECTIVO'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `abonosreservas`
--

INSERT INTO `abonosreservas` (`id`, `idfactura`, `nc`, `consecutivo`, `fechacreacion`, `valor`, `fecha`, `cobra`, `saldoinicialfactura`, `cc`, `idusuario`, `idz`, `idcaja`, `saldoinicial`, `pv`, `afectacaja`, `observacionesabono`, `observacionesabonos`, `consecutivosistema`, `abonado`, `idorden`, `idtercero`, `destino`, `idreserva`, `mediodepago`) VALUES
(1, 0, 0, 1, '2024-04-10 16:20:26', 20000, '2024-04-10 16:20:26', ' ', 0, 2, 1, 2, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 0, 0, 0, NULL, 1, 'EFECTIVO'),
(2, 0, 0, 2, '2024-04-10 16:21:25', 1, '2024-04-10 16:21:25', ' ', 0, 2, 1, 2, 1, 0, 'CHICKENDEN', 0, NULL, NULL, NULL, 0, 0, 0, NULL, 2, 'EFECTIVO'),
(3, 0, 0, 3, '2024-04-10 16:33:07', 20000, '2024-04-10 16:33:07', ' ', 0, 2, 1, 2, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 1, 0, 0, NULL, 5, 'EFECTIVO'),
(4, 0, 0, 4, '2024-04-10 17:35:06', 600000, '2024-04-10 17:35:06', ' ', 0, 2, 4, 2, 1, 0, 'CHICKENDEN', 0, NULL, NULL, NULL, 0, 0, 0, NULL, 6, 'EFECTIVO'),
(5, 0, 0, 5, '2024-04-10 17:35:24', 600000, '2024-04-10 17:35:24', ' ', 0, 2, 4, 2, 1, 0, 'CHICKENDEN', 0, NULL, NULL, NULL, 1, 0, 0, NULL, 6, 'EFECTIVO'),
(6, 0, 0, 6, '2024-04-10 18:30:02', 600000, '2024-04-10 18:30:02', ' ', 0, 2, 4, 2, 1, 0, 'CHICKENDEN', 0, NULL, NULL, NULL, 1, 0, 0, NULL, 7, 'EFECTIVO'),
(7, 0, 0, 7, '2024-07-30 22:01:59', 360000, '2024-07-30 22:01:59', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 0, NULL, NULL, NULL, 1, 0, 0, NULL, 10, 'TRANSFERENCIA'),
(8, 0, 0, 8, '2024-07-30 22:02:36', 360000, '2024-07-30 22:02:36', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 0, NULL, NULL, NULL, 1, 0, 0, NULL, 10, 'TRANSFERENCIA'),
(9, 0, 0, 9, '2024-07-30 22:06:22', 5, '2024-07-30 22:06:22', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 0, 0, 0, NULL, 11, 'EFECTIVO'),
(10, 0, 0, 10, '2024-07-30 22:08:50', 360000, '2024-07-30 22:08:50', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 1, 0, 0, NULL, 10, 'EFECTIVO'),
(11, 0, 0, 11, '2024-07-30 22:09:00', 360000, '2024-07-30 22:09:00', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 0, 0, 0, NULL, 10, 'EFECTIVO'),
(12, 0, 0, 12, '2024-07-30 22:23:20', 160000, '2024-07-30 22:23:20', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 0, 0, 0, NULL, 12, 'EFECTIVO'),
(13, 0, 0, 13, '2024-07-30 23:25:34', 80000, '2024-07-30 23:25:34', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 1, 0, 0, NULL, 15, 'TRANSFERENCIA'),
(14, 0, 0, 14, '2024-07-30 23:28:07', 80000, '2024-07-30 23:28:07', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 1, 0, 0, NULL, 15, 'EFECTIVO'),
(15, 0, 0, 15, '2024-07-30 23:29:29', 80000, '2024-07-30 23:29:29', ' ', 0, 2, 7, 1, 1, 0, 'CHICKENDEN', 1, NULL, NULL, NULL, 1, 0, 0, NULL, 15, 'TRANSFERENCIA');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `abonosseparados`
--

CREATE TABLE `abonosseparados` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idmayorseparados` bigint(20) UNSIGNED NOT NULL,
  `nc` int(11) DEFAULT '0',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `fecha` datetime DEFAULT CURRENT_TIMESTAMP,
  `cobra` varchar(100) NOT NULL DEFAULT ' ',
  `saldoinicialfactura` double NOT NULL DEFAULT '0',
  `consecutivo` int(11) NOT NULL DEFAULT '0',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `saldoinicial` double NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `idgasto` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `abonosseparados`
--

INSERT INTO `abonosseparados` (`id`, `idmayorseparados`, `nc`, `fechacreacion`, `valor`, `fecha`, `cobra`, `saldoinicialfactura`, `consecutivo`, `cc`, `idusuario`, `idz`, `idcaja`, `saldoinicial`, `pv`, `idgasto`) VALUES
(1, 1, 0, '2024-04-10 18:40:30', 600000, '2024-04-10 18:40:30', ' ', 840000, 0, 0, 4, 2, 1, 0, 'CHICKENDEN', 0),
(2, 2, 0, '2024-04-10 18:43:26', 840000, '2024-04-10 18:43:26', ' ', 840000, 0, 0, 4, 2, 1, 0, 'CHICKENDEN', 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `adicionales`
--

CREATE TABLE `adicionales` (
  `id` int(11) NOT NULL,
  `idarticulo` bigint(11) UNSIGNED DEFAULT NULL,
  `idadicional` bigint(20) UNSIGNED DEFAULT NULL,
  `incremento` decimal(5,2) DEFAULT '0.00',
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ajustesdebodega`
--

CREATE TABLE `ajustesdebodega` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `descripcion` varchar(100) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` int(11) DEFAULT NULL,
  `detalle` varchar(100) NOT NULL DEFAULT '',
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ajustesdeinventario`
--

CREATE TABLE `ajustesdeinventario` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `descripcion` varchar(100) DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` double DEFAULT '0',
  `detalle` varchar(100) NOT NULL DEFAULT '',
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `ajustesdeinventario`
--

INSERT INTO `ajustesdeinventario` (`id`, `idarticulo`, `descripcion`, `fechacreacion`, `cantidad`, `detalle`, `idusuario`, `cc`, `pv`) VALUES
(1, 66, 'MEDIA BOTELLA DE AGUARDIENT', '2023-06-28 20:11:24', -12, 'Seleccione', 4, 2, 'CHICKENDEN'),
(2, 8, 'AGUA BOTELLA PERSONAL', '2023-07-03 15:35:48', -23, 'Seleccione', 4, 2, 'CHICKENDEN'),
(3, 75, 'AGUA PERSONAL', '2023-07-03 15:36:00', 23, 'Seleccione', 4, 2, 'CHICKENDEN'),
(4, 21, 'ALKASELTZER UNIDAD', '2023-07-03 15:38:00', -10, 'Seleccione', 4, 2, 'CHICKENDEN'),
(5, 8, 'AGUA BOTELLA PERSONAL', '2023-08-26 11:27:34', 2, 'Hay mas unidades en el inventario físico', 7, 2, 'CHICKENDEN'),
(6, 8, 'AGUA BOTELLA PERSONAL', '2023-08-26 11:27:51', -1, 'Seleccione', 7, 2, 'CHICKENDEN');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `anticipos`
--

CREATE TABLE `anticipos` (
  `id` int(11) NOT NULL,
  `fechacreacion` date DEFAULT NULL,
  `valor` int(11) DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT 'EFECTIVO',
  `afectacaja` tinyint(3) UNSIGNED DEFAULT '1',
  `observaciones` varchar(100) DEFAULT NULL,
  `idorden` int(11) DEFAULT '0',
  `idusuario` int(11) DEFAULT '0',
  `consecutivo` int(11) DEFAULT '0',
  `idz` int(11) DEFAULT '1',
  `idfactura` int(11) DEFAULT '0',
  `idcliente` int(11) DEFAULT '0',
  `anticpoencm` int(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `anticiposeliminados`
--

CREATE TABLE `anticiposeliminados` (
  `id` int(11) NOT NULL,
  `fechacreacion` date DEFAULT NULL,
  `valor` int(11) DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT NULL,
  `afectacaja` tinyint(3) UNSIGNED DEFAULT '1',
  `observaciones` varchar(100) DEFAULT NULL,
  `idorden` int(11) DEFAULT '0',
  `idusuario` int(11) DEFAULT '0',
  `consecutivo` int(11) DEFAULT '0',
  `idcliente` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `articulos`
--

CREATE TABLE `articulos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idtienda` int(2) DEFAULT '1',
  `esmp` bit(1) DEFAULT b'1',
  `seproduce` int(1) DEFAULT '0',
  `sedesccomponeenventa` int(1) NOT NULL DEFAULT '1',
  `idseccion` int(11) DEFAULT '0',
  `SUBseccion` varchar(50) DEFAULT 'GENERAL',
  `ordendelarticulo` int(3) DEFAULT '0',
  `referencia` varchar(20) NOT NULL DEFAULT '',
  `alias` varchar(20) NOT NULL DEFAULT '',
  `codabajo` varchar(5) NOT NULL DEFAULT '',
  `CODARTICULOABAJO` varchar(5) NOT NULL DEFAULT '',
  `situacioncocina` varchar(25) DEFAULT 'CAJA',
  `descripcion` varchar(100) NOT NULL DEFAULT ' ',
  `descripcionlarga` varchar(300) NOT NULL DEFAULT ' ',
  `seccion` varchar(50) NOT NULL DEFAULT 'SELECCIONE',
  `valordeventa` double NOT NULL DEFAULT '0',
  `cantidad` double NOT NULL DEFAULT '0',
  `cantidadenbodega` int(5) DEFAULT '0',
  `fechadecreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `extension` varchar(5) NOT NULL DEFAULT ' ',
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
  `ultimocoste` double NOT NULL DEFAULT '0',
  `tienecomposicion` int(11) NOT NULL DEFAULT '0',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `saleenlamesa` int(1) DEFAULT '1',
  `esmodificador` int(1) DEFAULT '1',
  `costomedio` double NOT NULL DEFAULT '0',
  `costoactual` double NOT NULL DEFAULT '0',
  `cantidadminima` int(11) DEFAULT '0',
  `numerodelineas` int(2) NOT NULL DEFAULT '1',
  `porcentajeiva` decimal(5,2) DEFAULT '0.00',
  `linea` varchar(50) NOT NULL DEFAULT 'SELECCIONE',
  `familiademodificadores` varchar(50) NOT NULL DEFAULT 'SELECCIONE',
  `descuentomaximo` int(11) DEFAULT '0',
  `valordistribuidor` int(6) NOT NULL DEFAULT '0',
  `descatalogado` int(1) NOT NULL DEFAULT '0',
  `subido` int(1) NOT NULL DEFAULT '0',
  `tienemodificadores` int(1) NOT NULL DEFAULT '0',
  `valordeventatiendas` double NOT NULL DEFAULT '0',
  `valordeventafundaciones` double NOT NULL DEFAULT '0',
  `valortiendavirtual` decimal(11,2) DEFAULT NULL,
  `comision` int(6) NOT NULL DEFAULT '0',
  `orden` int(3) NOT NULL DEFAULT '0',
  `semonitorea` int(11) NOT NULL DEFAULT '0',
  `idunidaddemedida` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idrapi` varchar(25) DEFAULT NULL,
  `sesubeaifood` int(1) DEFAULT '0',
  `sesubearappi` int(1) DEFAULT '0',
  `secompra` int(1) DEFAULT '0',
  `marca` varchar(25) DEFAULT NULL,
  `talla` varchar(5) DEFAULT NULL,
  `referenciacruzada` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `COD_SATELITE_ARTICULO` varchar(25) DEFAULT NULL,
  `fabricante` varchar(100) DEFAULT NULL,
  `modelo` varchar(100) DEFAULT NULL,
  `serial` varchar(100) DEFAULT NULL,
  `usuarioedita` varchar(100) DEFAULT NULL,
  `ultimaedicion` datetime DEFAULT CURRENT_TIMESTAMP,
  `cantidad2` int(11) DEFAULT '0',
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `idifood` varchar(50) DEFAULT NULL,
  `valordeventaregular` int(11) DEFAULT '0',
  `sesubeashopify` int(1) DEFAULT '0',
  `codigoarea` int(4) DEFAULT NULL,
  `materiales` varchar(300) DEFAULT NULL,
  `idlinea` int(3) DEFAULT NULL,
  `porcentajecomision` decimal(5,2) DEFAULT NULL,
  `cuenta_impuesto` int(8) DEFAULT NULL,
  `urlfotoarticulo` varchar(500) DEFAULT 'https://susoftware.es/imagenes/susoftware.png',
  `imei` varchar(50) DEFAULT NULL,
  `sefactura` bit(1) DEFAULT b'1',
  `cupon_vence` date DEFAULT NULL,
  `porcentajeutilidad1` bit(1) DEFAULT b'0',
  `porcentajeutilidad2` bit(1) DEFAULT b'0',
  `tipoanimal` bit(1) DEFAULT b'0',
  `tiendavirtual` bit(1) DEFAULT b'1',
  `sevendeacero` bit(1) DEFAULT b'0',
  `descuentodeldia` int(2) DEFAULT '0',
  `conteodiario` int(1) DEFAULT '0',
  `cantidadbodega` bit(1) DEFAULT b'0',
  `verenventas` bit(1) DEFAULT b'0',
  `mostraartodosentv` int(11) DEFAULT '1',
  `impultraprocesados` int(2) DEFAULT '0',
  `urlfoto` bit(1) DEFAULT b'0',
  `meta` bit(1) DEFAULT b'0',
  `promocionar_t` int(1) DEFAULT '0',
  `p_descuento1` decimal(3,2) DEFAULT '0.00',
  `compraminima` int(3) DEFAULT '1',
  `vrventapublico` int(11) DEFAULT '0',
  `dia` int(11) DEFAULT '0',
  `lunes` int(11) DEFAULT '0',
  `martes` int(11) DEFAULT '0',
  `miercoles` int(11) DEFAULT '0',
  `jueves` int(11) DEFAULT '0',
  `viernes` int(11) DEFAULT '0',
  `sabado` int(11) DEFAULT '0',
  `domingo` int(11) DEFAULT '0',
  `inilunes` time DEFAULT '00:00:00',
  `inimartes` time DEFAULT '00:00:00',
  `inimiercoles` time DEFAULT '00:00:00',
  `inijueves` time DEFAULT '00:00:00',
  `iniviernes` time DEFAULT '00:00:00',
  `inisabado` time DEFAULT '00:00:00',
  `inidomingo` time DEFAULT '00:00:00',
  `finlunes` time DEFAULT '00:00:00',
  `finmartes` time DEFAULT '00:00:00',
  `finmiercoles` time DEFAULT '00:00:00',
  `finjueves` time DEFAULT '00:00:00',
  `finviernes` time DEFAULT '00:00:00',
  `finsabado` time DEFAULT '00:00:00',
  `findomingo` time DEFAULT '00:00:00',
  `descuentodeldiaentv` int(11) DEFAULT '0',
  `porcentaje_ganancia_en_venta` decimal(5,2) DEFAULT '0.00',
  `factorpresentacion` int(11) DEFAULT '1',
  `idpresentacion` int(11) DEFAULT '0',
  `presentacion` varchar(25) DEFAULT NULL,
  `valorporfactor` decimal(8,2) DEFAULT '0.00',
  `referencia2` varchar(25) DEFAULT NULL,
  `compromisoactual` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `articulos`
--

INSERT INTO `articulos` (`id`, `idtienda`, `esmp`, `seproduce`, `sedesccomponeenventa`, `idseccion`, `SUBseccion`, `ordendelarticulo`, `referencia`, `alias`, `codabajo`, `CODARTICULOABAJO`, `situacioncocina`, `descripcion`, `descripcionlarga`, `seccion`, `valordeventa`, `cantidad`, `cantidadenbodega`, `fechadecreacion`, `extension`, `cc`, `ultimocoste`, `tienecomposicion`, `idusuario`, `saleenlamesa`, `esmodificador`, `costomedio`, `costoactual`, `cantidadminima`, `numerodelineas`, `porcentajeiva`, `linea`, `familiademodificadores`, `descuentomaximo`, `valordistribuidor`, `descatalogado`, `subido`, `tienemodificadores`, `valordeventatiendas`, `valordeventafundaciones`, `valortiendavirtual`, `comision`, `orden`, `semonitorea`, `idunidaddemedida`, `idrapi`, `sesubeaifood`, `sesubearappi`, `secompra`, `marca`, `talla`, `referenciacruzada`, `pv`, `COD_SATELITE_ARTICULO`, `fabricante`, `modelo`, `serial`, `usuarioedita`, `ultimaedicion`, `cantidad2`, `situacioncocina2`, `idifood`, `valordeventaregular`, `sesubeashopify`, `codigoarea`, `materiales`, `idlinea`, `porcentajecomision`, `cuenta_impuesto`, `urlfotoarticulo`, `imei`, `sefactura`, `cupon_vence`, `porcentajeutilidad1`, `porcentajeutilidad2`, `tipoanimal`, `tiendavirtual`, `sevendeacero`, `descuentodeldia`, `conteodiario`, `cantidadbodega`, `verenventas`, `mostraartodosentv`, `impultraprocesados`, `urlfoto`, `meta`, `promocionar_t`, `p_descuento1`, `compraminima`, `vrventapublico`, `dia`, `lunes`, `martes`, `miercoles`, `jueves`, `viernes`, `sabado`, `domingo`, `inilunes`, `inimartes`, `inimiercoles`, `inijueves`, `iniviernes`, `inisabado`, `inidomingo`, `finlunes`, `finmartes`, `finmiercoles`, `finjueves`, `finviernes`, `finsabado`, `findomingo`, `descuentodeldiaentv`, `porcentaje_ganancia_en_venta`, `factorpresentacion`, `idpresentacion`, `presentacion`, `valorporfactor`, `referencia2`, `compromisoactual`) VALUES
(2, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'ANTIOQUEÑO BOTELLA', '', '', '', 'SELECCIONE', 'BOTELLA DE AGUARDIENTE', 'BOTELLA DE AGUARDIENTE', 'SELECCIONE', 43000, 21, 0, '2023-03-30 03:11:18', ' ', 2, 43000, 0, 4, 1, 1, 43000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '2', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-03-30 15:11:18', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(3, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'RON', '', '', '', 'SELECCIONE', 'MEDIA BOTELLA DE RON', 'MEDIA BOTELLA DE RON', 'SELECCIONE', 24000, 30, 0, '2023-03-30 03:16:25', ' ', 2, 25000, 0, 4, 1, 1, 25000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '0', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-03-30 15:16:25', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(4, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'RON CALDAS', '', '', '', 'SELECCIONE', 'BOTELLA DE RON', 'BOTELLA DE RON', 'SELECCIONE', 47000, 24, 0, '2023-03-30 03:17:47', ' ', 2, 47000, 0, 4, 1, 1, 47000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '4', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-03-30 15:17:47', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(5, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'BRANDY DOMECQ MEDIA', '', '', '', 'SELECCIONE', 'MEDIA BOTELLA DE BRANDY', 'MEDIA BOTELLA DE BRANDY', 'SELECCIONE', 28000, 24, 0, '2023-04-04 08:34:04', ' ', 2, 28000, 0, 4, 1, 1, 28000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '5', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:34:04', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(6, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'BRANDY DOMECQ BOTELL', '', '', '', 'SELECCIONE', 'BOTELLA DE BRANDY', 'BOTELLA DE BRANDY', 'SELECCIONE', 53000, 23, 0, '2023-04-04 08:37:43', ' ', 2, 53000, 0, 4, 1, 1, 53000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '6', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:37:43', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(7, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'GASEOSA', '', '', '', 'SELECCIONE', 'GASEOSA PERSONAL', 'GASEOSA PERSONAL', 'SELECCIONE', 2000, 46, 0, '2023-04-04 08:43:57', ' ', 2, 1000, 0, 4, 1, 1, 1000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '7', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:43:57', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(8, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'AGUA BOTELLA', '', '', '', 'SELECCIONE', 'AGUA BOTELLA PERSONAL', 'AGUA BOTELLA PERSONAL', 'SELECCIONE', 2000, 16, 0, '2023-04-04 08:47:18', ' ', 2, 2000, 0, 4, 1, 1, 2000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '0', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:47:18', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 1, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(9, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'GATORADE PERSONAL', '', '', '', 'SELECCIONE', 'GATORADE BOTELLA PERSONAL', 'GATORADE BOTELLA PERSONAL', 'SELECCIONE', 4000, 24, 0, '2023-04-04 08:51:14', ' ', 2, 4000, 0, 4, 1, 1, 4000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '9', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:51:14', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(10, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CERVEZA', '', '', '', 'SELECCIONE', 'CERVEZA PERSONAL ', 'CERVEZA PERSONAL', 'SELECCIONE', 4000, 120, 0, '2023-04-04 08:53:02', ' ', 2, 4000, 0, 4, 1, 1, 4000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '10', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:53:02', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(11, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'PAPAS GRANDES', '', '', '', 'SELECCIONE', 'PAQUETE DE PAPAS GRANDES', 'PAQUETE DE PAPAS GRANDES', 'SELECCIONE', 7000, 20, 0, '2023-04-04 08:54:47', ' ', 2, 7000, 0, 4, 1, 1, 7000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '11', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:54:47', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(12, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'PAPAS PEQUEÑAS', '', '', '', 'SELECCIONE', 'PAQUETE DE PAPAS PEQUEÑA', 'PAQUETE DE PAPA PEQUEÑA', 'SELECCIONE', 3000, 24, 0, '2023-04-04 08:55:59', ' ', 2, 3000, 0, 4, 1, 1, 3000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '12', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:55:59', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(13, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CHOCORRAMO', '', '', '', 'SELECCIONE', 'PASTEL DE CHOCOLATE', 'PASTEL DE CHOCOLATE', 'SELECCIONE', 2500, 16, 0, '2023-04-04 08:56:54', ' ', 2, 2500, 0, 4, 1, 1, 2500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '13', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 20:56:54', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(14, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'FESTIVAL', '', '', '', 'SELECCIONE', 'GALLETA FESTIVAL PEQUEÑA', 'GALLETA FESTIVAL PEQUEÑA', 'SELECCIONE', 1000, 24, 0, '2023-04-04 09:00:24', ' ', 2, 1000, 0, 4, 1, 1, 1000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '14', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:00:24', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(15, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'Adicional', '', '', '', 'SELECCIONE', 'estadia por horas', '-', 'SELECCIONE', 30000, 47, 0, '2023-04-04 09:01:13', ' ', 2, 2000, 0, 4, 1, 1, 2000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '15', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:01:13', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(16, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'SALCHICHAS', '', '', '', 'SELECCIONE', 'TARRO DE SALCHICHAS EN LATA', 'TARRO DE SALCHICHAS EN LATA', 'SELECCIONE', 5000, 24, 0, '2023-04-04 09:02:54', ' ', 2, 5000, 0, 4, 1, 1, 5000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '16', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:02:54', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(17, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CHOCOLATINA', '', '', '', 'SELECCIONE', 'CHOCOLATINA JET PEQUEÑA', 'CHOCOLATINA JET PEQUEÑA', 'SELECCIONE', 1000, 100, 0, '2023-04-04 09:04:21', ' ', 2, 1000, 0, 4, 1, 1, 1000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '17', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:04:21', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(18, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CHICLETS', '', '', '', 'SELECCIONE', 'CAJA DE CHICLETS PEQUEÑA', 'CAJA DE CHICLETS PEQUEÑA', 'SELECCIONE', 300, 100, 0, '2023-04-04 09:05:43', ' ', 2, 300, 0, 4, 1, 1, 300, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '18', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:05:43', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(19, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CIGARRILLOS', '', '', '', 'SELECCIONE', 'CAJA PEQUEÑA DE CIGARRILLOS', 'CAJA PEQUEÑA DE CIGARRILLOS', 'SELECCIONE', 4000, 40, 0, '2023-04-04 09:06:59', ' ', 2, 4000, 0, 4, 1, 1, 4000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '19', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:06:59', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(20, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'BOMBON', '', '', '', 'SELECCIONE', 'BOMBON UNIDAD', 'BOMBON UNIDAD', 'SELECCIONE', 500, 23, 0, '2023-04-04 09:21:56', ' ', 2, 500, 0, 4, 1, 1, 500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '20', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:21:56', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(21, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'ALKASELTZER', '', '', '', 'SELECCIONE', 'ALKASELTZER UNIDAD', 'ALKASELTZER UNIDAD', 'SELECCIONE', 1500, 3, 0, '2023-04-04 09:35:16', ' ', 2, 1500, 0, 4, 1, 1, 1500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '21', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:35:16', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(22, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CEPILLO DENTAL', '', '', '', 'SELECCIONE', 'CEPILLLO DENTAL', 'CEPILLO DENTAL', 'SELECCIONE', 3500, 23, 0, '2023-04-04 09:36:12', ' ', 2, 3500, 0, 4, 1, 1, 3500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '22', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:36:12', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(23, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'CREMA DENTAL', '', '', '', 'SELECCIONE', 'CREMA DENTAL PERSONAL', 'CREMA DENTAL PERSONAL', 'SELECCIONE', 2500, 23, 0, '2023-04-04 09:37:35', ' ', 2, 2500, 0, 4, 1, 1, 2500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '23', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:37:35', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(24, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'SHAMPO', '', '', '', 'SELECCIONE', 'SHAMPO PERSONAL', 'SHAMPO PERSONAL', 'SELECCIONE', 1000, 20, 0, '2023-04-04 09:38:36', ' ', 2, 1000, 0, 4, 1, 1, 1000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '24', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:38:36', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(25, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'DESODORANTE', '', '', '', 'SELECCIONE', 'DESODORANTE PERSONAL', 'DESODORANTE PERSONAL', 'SELECCIONE', 1500, 24, 0, '2023-04-04 09:39:51', ' ', 2, 1500, 0, 4, 1, 1, 1500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '25', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:39:51', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(26, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'MAQUINA DE AFEITAR', '', '', '', 'SELECCIONE', 'MAQUINA DE AFEITAR', 'MAQUINA DE AFEITAR', 'SELECCIONE', 2500, 16, 0, '2023-04-04 09:40:50', ' ', 2, 2500, 0, 4, 1, 1, 2500, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '26', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:40:50', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(27, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'GEL', '', '', '', 'SELECCIONE', 'GEL PERSONAL ', 'GEL PERSONAL', 'SELECCIONE', 2000, 20, 0, '2023-04-04 09:41:59', ' ', 2, 2000, 0, 4, 1, 1, 2000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '27', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:41:59', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(28, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'PRESERVATIVOS', '', '', '', 'SELECCIONE', 'PRESERVATIVOS', 'PRESERVATIVOS', 'SELECCIONE', 300, 48, 0, '2023-04-04 09:43:37', ' ', 2, 300, 0, 4, 1, 1, 300, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '28', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:43:37', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(29, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 02', '', '', '', 'SELECCIONE', 'HAB. 02', 'HABITACION ', 'SELECCIONE', 50000, -45, 0, '2023-04-04 09:44:53', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:44:53', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(30, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 11', '', '', '', 'SELECCIONE', 'HAB. 11', 'HABITACION', 'SELECCIONE', 50000, -74, 0, '2023-04-04 09:48:45', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:48:45', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(31, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 12', '', '', '', 'SELECCIONE', 'HAB. 12', 'HABITACION', 'SELECCIONE', 60000, -71, 0, '2023-04-04 09:51:19', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:51:19', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(32, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 13', '', '', '', 'SELECCIONE', 'HAB. 13', 'HABITACION', 'SELECCIONE', 60000, -54, 0, '2023-04-04 09:52:14', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:52:14', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(33, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 14', '', '', '', 'SELECCIONE', 'HAB. 14', 'HABITACION', 'SELECCIONE', 70000, -63, 0, '2023-04-04 09:53:11', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:53:11', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(34, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 15', '', '', '', 'SELECCIONE', 'HAB. 15', 'HABITACION', 'SELECCIONE', 65000, -26, 0, '2023-04-04 09:54:14', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-04 21:54:14', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(38, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 01', '', '', '', 'SELECCIONE', 'HAB. 01', ' HABITACION', 'SELECCIONE', 40000, -143, 0, '2023-04-05 14:46:25', ' ', 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-05 14:46:25', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(39, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 03', '', '', '', 'SELECCIONE', 'HAB 03', 'HAB', 'SELECCIONE', 50000, -70, 0, '2023-04-25 06:23:41', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:23:41', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(40, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 04', '', '', '', 'SELECCIONE', 'HAB. 04', '', 'SELECCIONE', 60000, -13, 0, '2023-04-25 06:30:08', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:30:08', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(41, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 05', '', '', '', 'SELECCIONE', 'HAB 05', 'HABITACION', 'SELECCIONE', 60000, -53, 0, '2023-04-25 06:31:13', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:31:13', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(42, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 06', '', '', '', 'SELECCIONE', 'HAB. 06', 'HABITACION', 'SELECCIONE', 70000, -69, 0, '2023-04-25 06:32:43', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '1000', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:32:43', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(43, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 07', '', '', '', 'SELECCIONE', 'HAB. 07', 'HABITACION', 'SELECCIONE', 65000, -53, 0, '2023-04-25 06:33:59', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:33:59', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(44, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 08', '', '', '', 'SELECCIONE', 'HAB.08', 'HABITACION ', 'SELECCIONE', 50000, -112, 0, '2023-04-25 06:34:52', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:34:52', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(45, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 09', '', '', '', 'SELECCIONE', 'HAB. 09', 'HABITACION', 'SELECCIONE', 50000, -69, 0, '2023-04-25 06:36:37', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:36:37', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(46, 1, b'1', 0, 0, 2, 'GENERAL', 0, 'HAB 10', '', '', '', 'SELECCIONE', 'HAB....10', 'HABITACION', 'SELECCIONE', 50000, -127, 0, '2023-04-25 06:37:51', ' ', 2, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 18:37:51', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(66, 1, b'1', 0, 1, 1, 'GENERAL', 0, 'ANTIOQUEÑO 1/2', '', '', '', 'SELECCIONE', 'MEDIA BOTELLA DE AGUARDIENT', '', 'SELECCIONE', 22000, 12, 0, '2023-04-25 08:41:21', ' ', 2, 22000, 0, 4, 1, 1, 22000, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, 0.00, 0, 0, 0, 1, NULL, 0, 0, 1, NULL, NULL, '2', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2023-04-25 20:41:21', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(116, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'SELECCIONE', 'EN ESPERA', ' ', 'SELECCIONE', 30000, 0, 0, '2024-06-28 16:14:17', ' ', 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2024-06-28 16:14:17', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 0, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, '0', 0),
(117, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 30000, 0, 0, '2025-08-14 07:07:06', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '09', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-14 07:07:06', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(118, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 20000, 0, 0, '2025-08-14 07:07:21', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '01', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-14 07:07:21', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(119, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 30000, 0, 0, '2025-08-14 07:07:46', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-14 07:07:46', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(120, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-14 07:08:57', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, 'HIT 500 ml', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-14 07:08:57', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(121, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-20 14:57:57', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-20 14:57:57', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(122, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-20 14:59:11', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-20 14:59:11', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(123, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-20 15:02:20', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-20 15:02:20', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(124, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 45000, 0, 0, '2025-08-25 09:40:46', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '0010', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-08-25 09:40:46', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(125, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-30 16:45:48', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '30000', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 16:45:48', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(126, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 30000, 0, 0, '2025-09-30 17:05:47', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '0000001', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 17:05:47', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(127, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 30000, 0, 0, '2025-09-30 17:07:29', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '001', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 17:07:29', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(128, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 10000, 0, 0, '2025-09-30 17:11:03', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '1', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 17:11:03', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(129, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-30 21:30:17', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 21:30:17', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(130, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-30 21:30:20', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 21:30:20', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(131, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 30000, 0, 0, '2025-09-30 21:30:21', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, '', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 21:30:21', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(132, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-30 21:56:49', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-09-30 21:56:49', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(133, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-10-01 06:13:00', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, NULL, 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-10-01 06:13:00', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0),
(134, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 30000, 0, 0, '2025-10-01 06:13:13', ' ', 0, 0, 0, 4, 1, 1, 0, 0, 0, 1, 0.00, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, NULL, NULL, 'Excedente', 'CHICKENDEN', NULL, NULL, NULL, NULL, NULL, '2025-10-01 06:13:13', 0, 'SELECCIONE', NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, b'0', b'0', b'0', b'1', b'0', 0, 0, b'0', b'0', 1, 0, b'0', b'0', 0, 0.00, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', '00:00:00', 0, 0.00, 1, 0, NULL, 0.00, NULL, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignacionarticulosfamiliasmodificadores`
--

CREATE TABLE `asignacionarticulosfamiliasmodificadores` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `familiademodificadores` varchar(50) NOT NULL DEFAULT '',
  `activo` int(1) DEFAULT '0',
  `idfamilia` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sesubeaifood` int(1) DEFAULT '0',
  `idrapi` varchar(25) DEFAULT NULL,
  `papa` int(4) DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `orden` int(2) DEFAULT '0',
  `sesubearappi` int(1) DEFAULT '1',
  `minimo` int(1) DEFAULT '0',
  `maximo` int(1) DEFAULT '0',
  `ordenasignaionfm` int(2) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignacionarticulosturnos`
--

CREATE TABLE `asignacionarticulosturnos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` int(6) NOT NULL,
  `idturno` int(6) NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cc` int(2) NOT NULL DEFAULT '0',
  `idarticulooriginal` int(6) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignacionclientesturnos`
--

CREATE TABLE `asignacionclientesturnos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idcliente` bigint(20) UNSIGNED DEFAULT NULL,
  `idturno` bigint(20) UNSIGNED DEFAULT NULL,
  `fechacreacion` date DEFAULT NULL,
  `idusuario` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignacioncupones`
--

CREATE TABLE `asignacioncupones` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `idcupon` bigint(20) DEFAULT NULL,
  `fechainicio` date DEFAULT NULL,
  `fechafin` date DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `porcentajedescuento` int(2) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignaciondescuentos`
--

CREATE TABLE `asignaciondescuentos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `idcliente` int(11) DEFAULT NULL,
  `fechainicio` date DEFAULT NULL,
  `fechafin` date DEFAULT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `porcentajedescuento` int(2) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignacionseccionesterceros`
--

CREATE TABLE `asignacionseccionesterceros` (
  `idcliente` bigint(20) UNSIGNED NOT NULL,
  `idseccion` bigint(20) UNSIGNED NOT NULL,
  `activo` int(1) DEFAULT '1',
  `id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `asignacionseccionesterceros`
--

INSERT INTO `asignacionseccionesterceros` (`idcliente`, `idseccion`, `activo`, `id`) VALUES
(5, 1, 1, 1),
(1, 1, 1, 3),
(4, 1, 1, 4),
(6, 1, 1, 5),
(1, 2, 1, 7),
(4, 2, 1, 8),
(5, 2, 1, 9),
(6, 2, 1, 10),
(3, 1, 1, 23),
(3, 2, 1, 24),
(7, 1, 0, 26),
(7, 2, 1, 27),
(14, 1, 1, 40),
(14, 2, 1, 41),
(13, 1, 0, 47),
(13, 2, 1, 48),
(21, 1, 1, 51),
(21, 2, 1, 52),
(2, 1, 1, 53),
(2, 2, 1, 54),
(8, 1, 1, 55),
(8, 2, 1, 56),
(9, 1, 1, 57),
(9, 2, 1, 58),
(10, 1, 1, 59),
(10, 2, 1, 60),
(11, 1, 1, 61),
(11, 2, 1, 62),
(12, 1, 1, 63),
(12, 2, 1, 64),
(15, 1, 1, 65),
(15, 2, 1, 66),
(16, 1, 1, 67),
(16, 2, 1, 68),
(17, 1, 1, 69),
(17, 2, 1, 70),
(18, 1, 1, 71),
(18, 2, 1, 72),
(19, 1, 1, 73),
(19, 2, 1, 74),
(20, 1, 1, 75),
(20, 2, 1, 76),
(22, 1, 1, 77),
(22, 2, 1, 78),
(23, 1, 1, 79),
(23, 2, 1, 80),
(24, 1, 1, 81),
(24, 2, 1, 82),
(25, 1, 1, 83),
(25, 2, 1, 84),
(26, 1, 1, 85),
(26, 2, 1, 86),
(27, 1, 1, 87),
(27, 2, 1, 88),
(28, 1, 1, 89),
(28, 2, 1, 90),
(29, 1, 1, 91),
(29, 2, 1, 92),
(30, 1, 1, 93),
(30, 2, 1, 94),
(31, 1, 1, 95),
(31, 2, 1, 96),
(32, 1, 1, 97),
(32, 2, 1, 98),
(33, 1, 1, 99),
(33, 2, 1, 100),
(34, 1, 1, 101),
(34, 2, 1, 102),
(35, 1, 1, 103),
(35, 2, 1, 104),
(36, 1, 1, 105),
(36, 2, 1, 106),
(37, 1, 1, 107),
(37, 2, 1, 108),
(38, 1, 1, 109),
(38, 2, 1, 110),
(39, 1, 1, 111),
(39, 2, 1, 112),
(40, 1, 1, 113),
(40, 2, 1, 114),
(41, 1, 1, 115),
(41, 2, 1, 116),
(42, 1, 1, 117),
(42, 2, 1, 118),
(43, 1, 1, 119),
(43, 2, 1, 120),
(44, 1, 1, 121),
(44, 2, 1, 122),
(45, 1, 1, 123),
(45, 2, 1, 124),
(46, 1, 1, 125),
(46, 2, 1, 126),
(47, 1, 1, 127),
(47, 2, 1, 128),
(48, 1, 1, 129),
(48, 2, 1, 130),
(49, 1, 1, 131),
(49, 2, 1, 132),
(86, 1, 1, 133),
(86, 2, 1, 134);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `asignacionzonasterceros`
--

CREATE TABLE `asignacionzonasterceros` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL,
  `idzona` bigint(20) UNSIGNED NOT NULL,
  `activo` int(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `asignacionzonasterceros`
--

INSERT INTO `asignacionzonasterceros` (`id`, `idcliente`, `idzona`, `activo`) VALUES
(1, 1, 1, 1),
(2, 4, 1, 1),
(4, 5, 1, 1),
(5, 6, 1, 1),
(11, 3, 1, 1),
(23, 1, 2, 1),
(24, 3, 2, 1),
(25, 4, 2, 1),
(26, 5, 2, 1),
(27, 6, 2, 1),
(30, 1, 3, 1),
(31, 3, 3, 1),
(32, 4, 3, 1),
(33, 5, 3, 1),
(34, 6, 3, 1),
(37, 1, 4, 1),
(38, 3, 4, 1),
(39, 4, 4, 1),
(40, 5, 4, 1),
(41, 6, 4, 1),
(44, 1, 5, 1),
(45, 3, 5, 1),
(46, 4, 5, 1),
(47, 5, 5, 1),
(48, 6, 5, 1),
(51, 1, 6, 1),
(52, 3, 6, 1),
(53, 4, 6, 1),
(54, 5, 6, 1),
(55, 6, 6, 1),
(57, 7, 1, 1),
(58, 7, 2, 1),
(59, 7, 3, 1),
(60, 7, 4, 1),
(61, 7, 5, 1),
(62, 7, 6, 1),
(68, 1, 7, 1),
(69, 3, 7, 1),
(70, 4, 7, 1),
(71, 5, 7, 1),
(72, 6, 7, 1),
(73, 7, 7, 1),
(96, 14, 1, 1),
(97, 14, 2, 1),
(98, 14, 3, 1),
(99, 14, 4, 1),
(100, 14, 5, 1),
(101, 14, 6, 1),
(104, 1, 10, 1),
(105, 3, 10, 1),
(106, 4, 10, 1),
(107, 5, 10, 1),
(108, 6, 10, 1),
(109, 7, 10, 1),
(110, 14, 10, 1),
(114, 13, 1, 1),
(115, 13, 2, 1),
(116, 13, 3, 0),
(117, 13, 4, 0),
(118, 13, 5, 0),
(119, 13, 6, 0),
(122, 21, 1, 1),
(123, 21, 2, 1),
(124, 21, 3, 1),
(125, 21, 4, 1),
(126, 21, 5, 1),
(127, 21, 6, 1),
(129, 22, 1, 1),
(130, 22, 2, 1),
(131, 22, 3, 1),
(132, 22, 4, 1),
(133, 22, 5, 1),
(134, 22, 6, 1),
(136, 9, 1, 1),
(137, 9, 2, 1),
(138, 9, 3, 1),
(139, 9, 4, 1),
(140, 9, 5, 1),
(141, 9, 6, 1),
(143, 24, 1, 1),
(144, 24, 2, 1),
(145, 24, 3, 1),
(146, 24, 4, 1),
(147, 24, 5, 1),
(148, 24, 6, 1),
(150, 20, 1, 1),
(151, 20, 2, 1),
(152, 20, 3, 1),
(153, 20, 4, 1),
(154, 20, 5, 1),
(155, 20, 6, 1),
(157, 45, 1, 1),
(158, 45, 2, 1),
(159, 45, 3, 1),
(160, 45, 4, 1),
(161, 45, 5, 1),
(162, 45, 6, 1),
(164, 47, 1, 1),
(165, 47, 2, 1),
(166, 47, 3, 1),
(167, 47, 4, 1),
(168, 47, 5, 1),
(169, 47, 6, 1),
(171, 28, 1, 1),
(172, 28, 2, 1),
(173, 28, 3, 1),
(174, 28, 4, 1),
(175, 28, 5, 1),
(176, 28, 6, 1),
(179, 43, 1, 1),
(180, 43, 2, 1),
(181, 43, 3, 1),
(182, 43, 4, 1),
(183, 43, 5, 1),
(184, 43, 6, 1),
(187, 2, 1, 1),
(188, 2, 2, 1),
(189, 2, 3, 1),
(190, 2, 4, 1),
(191, 2, 5, 1),
(192, 2, 6, 1),
(194, 23, 1, 1),
(195, 23, 2, 1),
(196, 23, 3, 1),
(197, 23, 4, 1),
(198, 23, 5, 1),
(199, 23, 6, 1),
(211, 42, 1, 1),
(212, 42, 2, 1),
(213, 42, 3, 1),
(214, 42, 4, 1),
(215, 42, 5, 1),
(216, 42, 6, 1),
(218, 36, 1, 1),
(219, 36, 2, 1),
(220, 36, 3, 1),
(221, 36, 4, 1),
(222, 36, 5, 1),
(223, 36, 6, 1),
(225, 12, 1, 1),
(226, 12, 2, 1),
(227, 12, 3, 1),
(228, 12, 4, 1),
(229, 12, 5, 1),
(230, 12, 6, 1),
(233, 37, 1, 1),
(234, 37, 2, 1),
(235, 37, 3, 1),
(236, 37, 4, 1),
(237, 37, 5, 1),
(238, 37, 6, 1),
(242, 38, 1, 1),
(243, 38, 2, 1),
(244, 38, 3, 1),
(245, 38, 4, 1),
(246, 38, 5, 1),
(247, 38, 6, 1),
(250, 16, 1, 1),
(251, 16, 2, 1),
(252, 16, 3, 1),
(253, 16, 4, 1),
(254, 16, 5, 1),
(255, 16, 6, 1),
(270, 49, 1, 1),
(271, 49, 2, 1),
(272, 49, 3, 1),
(273, 49, 4, 1),
(274, 49, 5, 1),
(275, 49, 6, 1),
(277, 48, 1, 1),
(278, 48, 2, 1),
(279, 48, 3, 1),
(280, 48, 4, 1),
(281, 48, 5, 1),
(282, 48, 6, 1),
(284, 46, 1, 1),
(285, 46, 2, 1),
(286, 46, 3, 1),
(287, 46, 4, 1),
(288, 46, 5, 1),
(289, 46, 6, 1),
(290, 8, 1, 1),
(291, 8, 2, 1),
(292, 8, 3, 1),
(293, 8, 4, 1),
(294, 8, 5, 1),
(295, 8, 6, 1),
(296, 10, 1, 1),
(297, 10, 2, 1),
(298, 10, 3, 1),
(299, 10, 4, 1),
(300, 10, 5, 1),
(301, 10, 6, 1),
(302, 11, 1, 1),
(303, 11, 2, 1),
(304, 11, 3, 1),
(305, 11, 4, 1),
(306, 11, 5, 1),
(307, 11, 6, 1),
(308, 15, 1, 1),
(309, 15, 2, 1),
(310, 15, 3, 1),
(311, 15, 4, 1),
(312, 15, 5, 1),
(313, 15, 6, 1),
(314, 17, 1, 1),
(315, 17, 2, 1),
(316, 17, 3, 1),
(317, 17, 4, 1),
(318, 17, 5, 1),
(319, 17, 6, 1),
(320, 18, 1, 1),
(321, 18, 2, 1),
(322, 18, 3, 1),
(323, 18, 4, 1),
(324, 18, 5, 1),
(325, 18, 6, 1),
(326, 19, 1, 1),
(327, 19, 2, 1),
(328, 19, 3, 1),
(329, 19, 4, 1),
(330, 19, 5, 1),
(331, 19, 6, 1),
(332, 25, 1, 1),
(333, 25, 2, 1),
(334, 25, 3, 1),
(335, 25, 4, 1),
(336, 25, 5, 1),
(337, 25, 6, 1),
(338, 26, 1, 1),
(339, 26, 2, 1),
(340, 26, 3, 1),
(341, 26, 4, 1),
(342, 26, 5, 1),
(343, 26, 6, 1),
(344, 27, 1, 1),
(345, 27, 2, 1),
(346, 27, 3, 1),
(347, 27, 4, 1),
(348, 27, 5, 1),
(349, 27, 6, 1),
(350, 29, 1, 1),
(351, 29, 2, 1),
(352, 29, 3, 1),
(353, 29, 4, 1),
(354, 29, 5, 1),
(355, 29, 6, 1),
(356, 30, 1, 1),
(357, 30, 2, 1),
(358, 30, 3, 1),
(359, 30, 4, 1),
(360, 30, 5, 1),
(361, 30, 6, 1),
(362, 31, 1, 1),
(363, 31, 2, 1),
(364, 31, 3, 1),
(365, 31, 4, 1),
(366, 31, 5, 1),
(367, 31, 6, 1),
(368, 32, 1, 1),
(369, 32, 2, 1),
(370, 32, 3, 1),
(371, 32, 4, 1),
(372, 32, 5, 1),
(373, 32, 6, 1),
(374, 33, 1, 1),
(375, 33, 2, 1),
(376, 33, 3, 1),
(377, 33, 4, 1),
(378, 33, 5, 1),
(379, 33, 6, 1),
(380, 34, 1, 1),
(381, 34, 2, 1),
(382, 34, 3, 1),
(383, 34, 4, 1),
(384, 34, 5, 1),
(385, 34, 6, 1),
(386, 35, 1, 1),
(387, 35, 2, 1),
(388, 35, 3, 1),
(389, 35, 4, 1),
(390, 35, 5, 1),
(391, 35, 6, 1),
(392, 39, 1, 1),
(393, 39, 2, 1),
(394, 39, 3, 1),
(395, 39, 4, 1),
(396, 39, 5, 1),
(397, 39, 6, 1),
(398, 40, 1, 1),
(399, 40, 2, 1),
(400, 40, 3, 1),
(401, 40, 4, 1),
(402, 40, 5, 1),
(403, 40, 6, 1),
(404, 41, 1, 1),
(405, 41, 2, 1),
(406, 41, 3, 1),
(407, 41, 4, 1),
(408, 41, 5, 1),
(409, 41, 6, 1),
(410, 44, 1, 1),
(411, 44, 2, 1),
(412, 44, 3, 1),
(413, 44, 4, 1),
(414, 44, 5, 1),
(415, 44, 6, 1),
(416, 86, 1, 1),
(417, 86, 2, 1),
(418, 86, 3, 1),
(419, 86, 4, 1),
(420, 86, 5, 1),
(421, 86, 6, 1);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `auxiliarbuscarpadre`
--

CREATE TABLE `auxiliarbuscarpadre` (
  `a` int(11) NOT NULL,
  `b` int(11) NOT NULL,
  `idusuario` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `auxiliarcambiodeprecios`
--

CREATE TABLE `auxiliarcambiodeprecios` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idinsumo` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idarticulo` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `cantidad` double NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `auxiliarcostoagrupado`
--

CREATE TABLE `auxiliarcostoagrupado` (
  `idarticulo` int(11) NOT NULL,
  `idinsumo` int(11) NOT NULL,
  `idusuario` int(11) NOT NULL,
  `cantidad` double NOT NULL,
  `id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `auxiliarcotizarreceta`
--

CREATE TABLE `auxiliarcotizarreceta` (
  `idarticulo` int(11) NOT NULL,
  `idinsumo` int(11) NOT NULL,
  `idusuario` int(11) NOT NULL,
  `cantidad` double NOT NULL,
  `id` bigint(20) UNSIGNED NOT NULL,
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bajas`
--

CREATE TABLE `bajas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `codvendedor` int(5) NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idmayor` bigint(20) UNSIGNED NOT NULL,
  `consecutivo` int(11) NOT NULL,
  `INCREMENTO` int(11) NOT NULL,
  `codarticulo` int(11) NOT NULL,
  `codsituacion` int(2) NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `descripcion` bigint(20) UNSIGNED NOT NULL,
  `esmodificador` int(1) DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int(11) NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(8) NOT NULL DEFAULT 'MESAS',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `abonado` int(1) NOT NULL DEFAULT '0',
  `idfacturaqueabona` int(11) NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int(2) NOT NULL DEFAULT '0',
  `idvendedor` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `escortesia` int(1) NOT NULL DEFAULT '0',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idnc` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `nc` int(1) DEFAULT '0',
  `idusuarionc` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int(6) NOT NULL DEFAULT '0',
  `devolucionrevisada` int(1) DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int(1) NOT NULL DEFAULT '0',
  `marcadoparanc` int(1) NOT NULL DEFAULT '0',
  `servicio` int(5) NOT NULL DEFAULT '0',
  `subido` int(1) NOT NULL DEFAULT '0',
  `CODMODIF` varchar(2) NOT NULL DEFAULT '0',
  `esmodif` int(2) NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int(11) NOT NULL DEFAULT '0',
  `NUMMODIF` int(11) NOT NULL DEFAULT '0',
  `numservicio` int(1) NOT NULL DEFAULT '0',
  `aliasespera` int(1) NOT NULL DEFAULT '1',
  `impresiones` int(1) NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int(2) NOT NULL DEFAULT '0',
  `COSTEIVA` int(2) NOT NULL DEFAULT '0',
  `DTO` int(2) NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int(2) NOT NULL DEFAULT '0',
  `CODFORMATO` int(2) NOT NULL DEFAULT '0',
  `NUMLINEA` int(2) NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bajasauxiliar`
--

CREATE TABLE `bajasauxiliar` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `estadoimpresion` int(1) DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(50) DEFAULT NULL,
  `pagarcontraentrega` int(1) DEFAULT '0',
  `idmesa` int(11) DEFAULT '1',
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int(2) NOT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '2',
  `origen` varchar(8) NOT NULL DEFAULT 'MESAS',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int(11) DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `entregado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃƒÂ² el producto',
  `enespera` int(1) NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int(6) NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int(2) NOT NULL DEFAULT '0',
  `numlinea` int(2) NOT NULL DEFAULT '0',
  `esmodif` int(1) NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `banco`
--

CREATE TABLE `banco` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int(4) DEFAULT NULL,
  `valor` double DEFAULT '0',
  `tipo` varchar(25) DEFAULT NULL,
  `descripcion` varchar(25) DEFAULT NULL,
  `concepto` varchar(200) DEFAULT NULL,
  `idz` int(11) DEFAULT '1',
  `fecha` date DEFAULT NULL,
  `valorinicial` double DEFAULT '0',
  `valorfinal` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `barrios`
--

CREATE TABLE `barrios` (
  `barrio` varchar(150) DEFAULT NULL,
  `id` bigint(20) UNSIGNED NOT NULL,
  `incremento` int(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `barrios`
--

INSERT INTO `barrios` (`barrio`, `id`, `incremento`) VALUES
('Belmonte', 1, 0),
('BOGOTA DC', 2, 0),
('Montelibano M 21 C 34 Pi3', 3, 0),
('barrio las ferias Bogota ', 4, 0),
('PUERTO BOYACA', 7, 0),
('pereira', 8, 0),
('ANTIOQUIA', 9, 0),
('MANIZALES', 10, 0),
('SOACHA CUNDINAMARCA', 13, 0),
('HUILA', 14, 0),
('medellin', 15, 0),
('FUNZA', 17, 0),
('neiva', 18, 0),
('p', 19, 0),
('pre', 20, 0),
('pr', 21, 0),
('pe', 23, 0),
('per', 24, 0),
('pere', 25, 0),
('CUBA', 27, 0),
('cali', 28, 0),
('Bogota', 31, 0),
('San jose', 32, 0),
('San jose Armenia', 33, 0),
('COTA', 34, 0),
('Brr Bolivariano', 37, 0),
('vipasa cali', 38, 0),
('florida blanca', 39, 0),
('Santander', 43, 0),
('Palermo', 44, 0),
('Palermo manizales  Caldas', 45, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bases`
--

CREATE TABLE `bases` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `base` int(11) NOT NULL DEFAULT '0',
  `fechacreacion` datetime NOT NULL,
  `idz` int(11) NOT NULL DEFAULT '1',
  `idusuario` int(11) DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `usuario` varchar(100) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bitacora`
--

CREATE TABLE `bitacora` (
  `id` int(11) NOT NULL,
  `texto` text,
  `fecha` date DEFAULT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idcliente` bigint(20) UNSIGNED DEFAULT NULL,
  `idusuario` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `bolsillos`
--

CREATE TABLE `bolsillos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `valor` double NOT NULL DEFAULT '0',
  `idcliente` bigint(20) UNSIGNED NOT NULL,
  `valorinicial` double NOT NULL DEFAULT '0',
  `valorfinal` double NOT NULL DEFAULT '0',
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idfactura` int(11) DEFAULT '0',
  `movimiento` varchar(8) DEFAULT 'INGRESO'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cajamayor`
--

CREATE TABLE `cajamayor` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int(4) DEFAULT NULL,
  `valor` double DEFAULT '0',
  `tipo` varchar(25) DEFAULT NULL,
  `descripcion` varchar(25) DEFAULT NULL,
  `concepto` varchar(25) DEFAULT NULL,
  `idz` int(11) DEFAULT '1',
  `fecha` date DEFAULT NULL,
  `valorinicial` double DEFAULT '0',
  `valorfinal` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cajamayor2`
--

CREATE TABLE `cajamayor2` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idusuario` int(4) DEFAULT NULL,
  `valor` double DEFAULT '0',
  `tipo` varchar(25) DEFAULT NULL,
  `descripcion` varchar(100) DEFAULT '',
  `concepto` varchar(120) DEFAULT NULL,
  `idz` int(11) DEFAULT '1',
  `fecha` date DEFAULT NULL,
  `valorinicial` double DEFAULT '0',
  `valorfinal` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `mediodepago` varchar(25) DEFAULT NULL,
  `entrada` double DEFAULT '0',
  `salida` double DEFAULT '0',
  `idprestamoin` int(6) DEFAULT NULL,
  `idtabla` int(11) DEFAULT '0',
  `tabla` varchar(12) DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `cajamayor2`
--

INSERT INTO `cajamayor2` (`id`, `fechacreacion`, `idusuario`, `valor`, `tipo`, `descripcion`, `concepto`, `idz`, `fecha`, `valorinicial`, `valorfinal`, `pv`, `mediodepago`, `entrada`, `salida`, `idprestamoin`, `idtabla`, `tabla`) VALUES
(1, NULL, NULL, 0, NULL, NULL, NULL, 1, NULL, 0, 0, 'CHICKENDEN', NULL, 0, 0, NULL, 0, ''),
(2, '2023-03-19 17:57:19', 1, 18900, NULL, NULL, NULL, 1, '2023-03-19', 0, 18900, 'CHICKENDEN', NULL, 0, 0, NULL, 0, ''),
(3, '2023-03-19 17:58:39', 1, 8490, NULL, NULL, NULL, 1, '2023-03-19', 18900, 8490, 'CHICKENDEN', NULL, 8490, 0, NULL, 0, ''),
(4, '2023-03-19 17:58:39', 1, 67915, NULL, NULL, NULL, 1, '2023-03-19', 8490, 86815, 'CHICKENDEN', NULL, 67915, 0, NULL, 0, ''),
(5, '2023-03-19 17:58:39', 1, 8495, NULL, NULL, NULL, 1, '2023-03-19', 86815, 16985, 'CHICKENDEN', NULL, 8495, 0, NULL, 0, ''),
(6, '2023-03-19 17:59:42', 1, 7000, NULL, NULL, NULL, 1, '2023-03-19', 16985, 93815, 'CHICKENDEN', 'EFECTIVO', 7000, 0, NULL, 0, ''),
(7, '2023-03-19 17:59:42', 1, 500, NULL, NULL, NULL, 1, '2023-03-19', 93815, 17485, 'CHICKENDEN', 'DAVI PLATA Isabel', 500, 0, NULL, 0, ''),
(8, '2023-03-19 18:08:55', 1, 18900, NULL, NULL, 'VENTAS', 1, '2023-03-19', 17485, 112715, 'CHICKENDEN', 'EFECTIVO', 18900, 0, NULL, 0, ''),
(9, '2023-03-19 18:11:43', 1, 41700, NULL, NULL, 'VENTAS', 1, '2023-03-19', 112715, 59185, 'CHICKENDEN', 'EFECTIVO', 41700, 0, NULL, 0, ''),
(10, '2023-03-19 18:12:23', 1, 20000, NULL, NULL, 'VENTAS', 1, '2023-03-19', 59185, 132715, 'CHICKENDEN', 'EFECTIVO', 20000, 0, NULL, 0, ''),
(11, '2023-03-19 18:12:23', 1, 4900, NULL, NULL, 'VENTAS', 1, '2023-03-19', 132715, 64085, 'CHICKENDEN', 'EFECTIVO', 4900, 0, NULL, 0, ''),
(12, '2023-03-19 18:14:28', 1, 24900, NULL, NULL, 'VENTAS', 1, '2023-03-19', 64085, 88985, 'CHICKENDEN', 'EFECTIVO', 24900, 0, NULL, 0, ''),
(13, '2023-03-19 18:14:52', 1, 4000, NULL, NULL, 'VENTAS', 1, '2023-03-19', 88985, 92985, 'CHICKENDEN', 'EFECTIVO', 4000, 0, NULL, 0, ''),
(14, '2023-03-19 18:14:52', 1, 500, NULL, NULL, 'VENTAS', 1, '2023-03-19', 92985, 93485, 'CHICKENDEN', 'DATAFONO', 500, 0, NULL, 0, ''),
(15, '2023-03-20 12:27:38', 1, 3, NULL, NULL, 'FONDOS', 1, '2023-03-20', 92985, 92988, 'CHICKENDEN', 'EFECTIVO', 0, 3, NULL, 0, ''),
(16, '2023-03-20 12:28:02', 1, 1, NULL, NULL, 'FONDOS', 1, '2023-03-20', 0, 1, 'CHICKENDEN', 'TRANSFERENCIA', 0, 1, NULL, 0, ''),
(17, '2023-03-20 09:44:50', 1, 4567, NULL, 'dsfghjkl', 'GASTOS', 1, '2023-03-20', 1, -4566, 'CHICKENDEN', 'TRANSFERENCIA', 0, 4567, NULL, 0, ''),
(18, '2023-03-20 09:44:50', 1, 4567, NULL, 'dsfghjkl', 'GASTOS', 1, '2023-03-20', -4566, -9133, 'CHICKENDEN', 'TRANSFERENCIA', 0, 4567, NULL, 0, ''),
(19, '2023-03-20 12:30:46', 1, 1000, NULL, NULL, 'VENTAS', 1, '2023-03-20', 92988, 93988, 'CHICKENDEN', 'EFECTIVO', 1000, 0, NULL, 0, ''),
(20, '2023-03-20 12:30:46', 1, 1000, NULL, NULL, 'VENTAS', 1, '2023-03-20', -9133, -8133, 'CHICKENDEN', 'TRANSFERENCIA', 1000, 0, NULL, 0, ''),
(21, '2023-03-20 12:33:00', 1, 1, NULL, NULL, 'FONDOS', 1, '2023-03-20', 0, 1, 'CHICKENDEN', 'qr bancolombia', 0, 1, NULL, 0, ''),
(22, '2023-03-20 13:25:17', 1, 2000, NULL, NULL, 'VENTAS', 1, '2023-03-20', -8133, -6133, 'CHICKENDEN', 'TRANSFERENCIA', 2000, 0, NULL, 0, ''),
(23, '2023-03-20 09:44:50', 1, 4567, NULL, 'dsfghjkl', 'GASTOS', 1, '2023-03-20', -6133, -10700, 'CHICKENDEN', 'TRANSFERENCIA', 0, 4567, NULL, 0, ''),
(24, '2023-03-20 09:44:50', 1, 4567, NULL, 'dsfghjkl', 'GASTOS', 1, '2023-03-20', -10700, -15267, 'CHICKENDEN', 'TRANSFERENCIA', 0, 4567, NULL, 0, ''),
(25, '2023-03-20 13:41:49', 1, 65, NULL, '', 'GASTOS', 1, '2023-03-20', -15267, -15332, 'CHICKENDEN', 'TRANSFERENCIA', 0, 65, NULL, 0, ''),
(26, '2023-03-20 13:44:07', 1, 3, NULL, '', 'GASTOS', 1, '2023-03-20', -15332, -15335, 'CHICKENDEN', 'TRANSFERENCIA', 0, 3, NULL, 0, ''),
(27, '2023-03-23 15:59:04', 5, 44900, NULL, NULL, 'VENTAS', 1, '2023-03-23', 93988, 138888, 'CHICKENDEN', 'EFECTIVO', 44900, 0, NULL, 0, ''),
(28, '2023-03-23 15:59:39', 5, 7500, NULL, NULL, 'VENTAS', 1, '2023-03-23', 138888, 146388, 'CHICKENDEN', 'EFECTIVO', 7500, 0, NULL, 0, ''),
(29, '2023-03-23 16:00:44', 5, 44900, NULL, NULL, 'VENTAS', 1, '2023-03-23', 146388, 191288, 'CHICKENDEN', 'EFECTIVO', 44900, 0, NULL, 0, ''),
(30, '2023-03-23 16:02:31', 5, 3500, NULL, NULL, 'VENTAS', 1, '2023-03-23', 191288, 194788, 'CHICKENDEN', 'EFECTIVO', 3500, 0, NULL, 0, ''),
(31, '2023-03-23 16:04:36', 5, 36555, NULL, NULL, 'VENTAS', 1, '2023-03-23', 194788, 231343, 'CHICKENDEN', 'EFECTIVO', 36555, 0, NULL, 0, ''),
(32, '2023-03-23 16:04:51', 1, 384, NULL, 'ARA  ', 'COMPRAS', 1, '2023-03-23', 93485, 93101, 'CHICKENDEN', 'DATAFONO', 0, 384, NULL, 0, ''),
(33, '2023-03-24 06:26:44', 1, 29019, NULL, 'FACTURA 3823', 'ABONOS', 1, '2023-03-24', 231343, 260362, 'CHICKENDEN', 'EFECTIVO', 0, 29019, NULL, 0, ''),
(34, '2023-03-24 06:28:50', 1, 18900, NULL, 'FACTURA 3471', 'ABONOS', 1, '2023-03-24', 260362, 279262, 'CHICKENDEN', 'EFECTIVO', 0, 18900, NULL, 0, ''),
(35, '2023-03-24 06:29:15', 1, 55000, NULL, 'FACTURA 3478', 'ABONOS', 1, '2023-03-24', 279262, 334262, 'CHICKENDEN', 'EFECTIVO', 0, 55000, NULL, 0, ''),
(36, '2023-03-24 06:34:44', 1, 4500, NULL, 'FACTURA 3527', 'ABONOS', 1, '2023-03-24', 334262, 338762, 'CHICKENDEN', 'EFECTIVO', 0, 4500, NULL, 0, ''),
(37, '2023-03-24 06:34:33', 1, 1, NULL, 'id prestamo 1', 'ABONOS PRESTAMOS', 1, '2023-03-24', 338762, 338763, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(38, '2023-03-24 06:35:41', 1, 68800, NULL, 'FACTURA 3479', 'ABONOS', 1, '2023-03-24', 338763, 407563, 'CHICKENDEN', 'EFECTIVO', 0, 68800, NULL, 0, ''),
(39, '2023-03-24 06:35:29', 1, 2, NULL, 'id prestamo 2', 'ABONOS PRESTAMOS', 1, '2023-03-24', 407563, 407565, 'CHICKENDEN', 'EFECTIVO', 0, 2, NULL, 0, ''),
(40, '2023-03-24 06:40:17', 1, 10, NULL, 'id separado 6', 'ABONOS SEPARADOS', 1, '2023-03-24', 407565, 407575, 'CHICKENDEN', 'EFECTIVO', 0, 10, NULL, 0, ''),
(41, '2023-03-24 06:40:52', 1, 1, NULL, 'id separado 6', 'ABONOS SEPARADOS', 1, '2023-03-24', 407575, 407576, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(42, '2023-03-24 06:44:38', 1, 15, NULL, 'id separado 7', 'ABONOS SEPARADOS', 1, '2023-03-24', 407576, 407591, 'CHICKENDEN', 'EFECTIVO', 0, 15, NULL, 0, ''),
(43, '2023-03-24 06:45:24', 1, 85, NULL, 'id separado 7', 'ABONOS SEPARADOS', 1, '2023-03-24', 407591, 407676, 'CHICKENDEN', 'EFECTIVO', 0, 85, NULL, 0, ''),
(44, '2023-03-24 07:15:06', 5, 4500, NULL, NULL, 'VENTAS', 1, '2023-03-24', 407676, 412176, 'CHICKENDEN', 'EFECTIVO', 4500, 0, NULL, 0, ''),
(45, '2023-03-24 07:13:23', 1, 1900, NULL, 'id separado 7', 'ABONOS SEPARADOS', 1, '2023-03-24', 412176, 414076, 'CHICKENDEN', 'EFECTIVO', 0, 1900, NULL, 0, ''),
(46, '2023-03-24 07:19:26', 5, 68800, NULL, NULL, 'VENTAS', 1, '2023-03-24', 414076, 482876, 'CHICKENDEN', 'EFECTIVO', 68800, 0, NULL, 0, ''),
(47, '2023-03-24 07:22:42', 5, 3500, NULL, NULL, 'VENTAS', 1, '2023-03-24', 482876, 486376, 'CHICKENDEN', 'EFECTIVO', 3500, 0, NULL, 0, ''),
(48, '2023-03-24 07:48:32', 5, 104800, NULL, NULL, 'VENTAS', 1, '2023-03-24', 486376, 591176, 'CHICKENDEN', 'EFECTIVO', 104800, 0, NULL, 0, ''),
(49, '2023-03-24 07:51:56', 1, 2000, NULL, 'Se devuelve dinero por an', 'GASTOS', 1, '2023-03-24', 591176, 589176, 'CHICKENDEN', 'EFECTIVO', 0, 2000, NULL, 0, ''),
(50, '2023-03-24 07:52:57', 5, 24900, NULL, NULL, 'VENTAS', 1, '2023-03-24', 589176, 614076, 'CHICKENDEN', 'EFECTIVO', 24900, 0, NULL, 0, ''),
(51, '2023-03-24 07:54:14', 5, 18900, NULL, NULL, 'VENTAS', 1, '2023-03-24', 614076, 632976, 'CHICKENDEN', 'EFECTIVO', 18900, 0, NULL, 0, ''),
(52, '2023-03-24 08:02:35', 5, 7500, NULL, NULL, 'VENTAS', 1, '2023-03-24', 632976, 640476, 'CHICKENDEN', 'EFECTIVO', 7500, 0, NULL, 0, ''),
(53, '2023-03-25 08:23:32', 5, 28800, NULL, NULL, 'VENTAS', 1, '2023-03-25', 640476, 669276, 'CHICKENDEN', 'EFECTIVO', 28800, 0, NULL, 0, ''),
(54, '2023-03-25 08:24:18', 5, 89510, NULL, NULL, 'VENTAS', 1, '2023-03-25', 669276, 758786, 'CHICKENDEN', 'EFECTIVO', 89510, 0, NULL, 0, ''),
(55, '2023-03-25 08:24:48', 1, 84900, NULL, 'FACTURA 3477', 'ABONOS', 1, '2023-03-25', 758786, 843686, 'CHICKENDEN', 'EFECTIVO', 0, 84900, NULL, 0, ''),
(56, '2023-03-25 08:43:28', 1, 1, NULL, 'Se elimina un abono a sep', 'GASTOS', 1, '2023-03-25', 843686, 843685, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(57, '2023-03-25 08:39:18', 1, 200, NULL, 'id prestamo 4', 'ABONOS PRESTAMOS', 1, '2023-03-25', 843685, 843885, 'CHICKENDEN', 'EFECTIVO', 0, 200, NULL, 0, ''),
(58, '2023-03-25 08:44:57', 1, 10, NULL, 'Se elimina un abono a sep', 'GASTOS', 1, '2023-03-25', 843885, 843875, 'CHICKENDEN', 'EFECTIVO', 0, 10, NULL, 0, ''),
(59, '2023-03-27 10:42:53', 5, 812000, NULL, NULL, 'FONDOS', 1, '2023-03-27', 843875, 31875, 'CHICKENDEN', 'EFECTIVO', 0, 812000, NULL, 0, ''),
(60, '2023-03-27 10:45:20', 5, 1, NULL, NULL, 'FONDOS', 1, '2023-03-27', 31875, 31876, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(61, '2023-03-27 11:00:56', 5, 1, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 0, -1, 'CHICKENDEN', 'JKJL', 0, 1, NULL, 0, ''),
(62, '2023-03-27 11:01:16', 5, 1, NULL, NULL, 'FONDOS', 1, '2023-03-27', 31876, 31877, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(63, '2023-03-27 11:03:52', 5, 2, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 0, 2, 'CHICKENDEN', 'SELECCIONE', 0, 2, NULL, 0, ''),
(64, '2023-03-27 11:04:14', 5, 1, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31877, 31876, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(65, '2023-03-27 11:04:35', 5, 1, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31876, 31875, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(66, '2023-03-27 11:04:45', 5, 1, NULL, NULL, 'FONDOS', 1, '2023-03-27', 31875, 31876, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(67, '2023-03-27 11:04:57', 5, 2, NULL, NULL, 'FONDOS', 1, '2023-03-27', 2, 4, 'CHICKENDEN', 'SELECCIONE', 0, 2, NULL, 0, ''),
(68, '2023-03-27 11:05:06', 5, 1, NULL, NULL, 'FONDOS', 1, '2023-03-27', 31876, 31877, 'CHICKENDEN', 'EFECTIVO', 0, 1, NULL, 0, ''),
(69, '2023-03-27 11:05:21', 5, 1, NULL, NULL, 'FONDOS', 1, '2023-03-27', -1, 0, 'CHICKENDEN', 'JKJL', 0, 1, NULL, 0, ''),
(70, '2023-03-27 11:05:40', 5, 8, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31877, 31869, 'CHICKENDEN', 'EFECTIVO', 0, 8, NULL, 0, ''),
(71, '2023-03-27 11:05:43', 5, 8, NULL, NULL, 'FONDOS', 1, '2023-03-27', 31869, 31877, 'CHICKENDEN', 'EFECTIVO', 0, 8, NULL, 0, ''),
(72, '2023-03-27 13:44:55', 5, 200, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31877, 31677, 'CHICKENDEN', 'EFECTIVO', 0, 200, NULL, 0, ''),
(73, '2023-03-27 13:45:18', 5, 200, NULL, NULL, 'FONDOS', 1, '2023-03-27', 31677, 31877, 'CHICKENDEN', 'EFECTIVO', 0, 200, NULL, 0, ''),
(74, '2023-03-27 13:46:52', 5, 200, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 4, -196, 'CHICKENDEN', 'SELECCIONE', 0, 200, NULL, 0, ''),
(75, '2023-03-27 13:46:54', 5, 200, NULL, NULL, 'FONDOS', 1, '2023-03-27', -196, 4, 'CHICKENDEN', 'SELECCIONE', 0, 200, NULL, 0, ''),
(76, '2023-03-27 13:47:00', 5, 200, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31877, 31677, 'CHICKENDEN', 'EFECTIVO', 0, 200, NULL, 0, ''),
(77, '2023-03-27 13:48:00', 5, 300, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31677, 31377, 'CHICKENDEN', 'EFECTIVO', 0, 300, NULL, 0, ''),
(78, '2023-03-27 13:48:18', 5, 100, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 4, -96, 'CHICKENDEN', 'SELECCIONE', 0, 100, NULL, 0, ''),
(79, '2023-03-27 13:49:56', 5, 105, NULL, NULL, 'ABONO A CUETNAS POR PAGAR', 1, '2023-03-27', 31377, 31272, 'CHICKENDEN', 'EFECTIVO', 0, 105, NULL, 0, ''),
(80, '2023-03-27 13:50:12', 5, 200, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31272, 31472, 'CHICKENDEN', 'EFECTIVO', 0, 200, NULL, 0, ''),
(81, '2023-03-27 13:50:13', 5, 300, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31472, 31772, 'CHICKENDEN', 'EFECTIVO', 0, 300, NULL, 0, ''),
(82, '2023-03-27 13:50:13', 5, 100, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', -96, 4, 'CHICKENDEN', 'SELECCIONE', 0, 100, NULL, 0, ''),
(83, '2023-03-27 13:50:14', 5, 105, NULL, NULL, 'Eliminar abono a cuentas ', 1, '2023-03-27', 31772, 31877, 'CHICKENDEN', 'EFECTIVO', 0, 105, NULL, 0, ''),
(84, '2023-03-27 18:33:55', 5, 73800, NULL, NULL, 'VENTAS', 1, '2023-03-27', 31877, 105677, 'CHICKENDEN', 'EFECTIVO', 73800, 0, NULL, 0, ''),
(85, '2023-03-28 15:42:23', 5, 24900, NULL, NULL, 'VENTAS', 1, '2023-03-28', 105677, 130577, 'CHICKENDEN', 'EFECTIVO', 24900, 0, NULL, 0, ''),
(86, '2023-03-29 08:36:33', 5, 22900, NULL, NULL, 'VENTAS', 1, '2023-03-29', 130577, 153477, 'CHICKENDEN', 'EFECTIVO', 22900, 0, NULL, 0, ''),
(87, '2023-03-29 08:44:27', 5, 200000, NULL, NULL, 'VENTAS', 1, '2023-03-29', 153477, 353477, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(88, '2023-03-29 08:53:39', 5, 4500, NULL, NULL, 'VENTAS', 1, '2023-03-29', 353477, 357977, 'CHICKENDEN', 'EFECTIVO', 4500, 0, NULL, 0, ''),
(89, '2023-03-29 09:07:13', 5, 18900, NULL, NULL, 'VENTAS', 1, '2023-03-29', 357977, 376877, 'CHICKENDEN', 'EFECTIVO', 18900, 0, NULL, 0, ''),
(90, '2023-03-29 10:25:43', 5, 50500, NULL, NULL, 'VENTAS', 1, '2023-03-29', 376877, 427377, 'CHICKENDEN', 'EFECTIVO', 50500, 0, NULL, 0, ''),
(91, '2023-03-30 09:34:25', 5, 200000, NULL, NULL, 'VENTAS', 1, '2023-03-30', 427377, 627377, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(92, '2023-03-30 10:23:17', 5, 200000, NULL, NULL, 'VENTAS', 1, '2023-03-30', 627377, 827377, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(93, '2023-03-30 12:19:41', 5, 30000, NULL, NULL, 'VENTAS', 1, '2023-03-30', 827377, 857377, 'CHICKENDEN', 'EFECTIVO', 30000, 0, NULL, 0, ''),
(94, '2023-03-30 12:19:41', 5, 14900, NULL, NULL, 'VENTAS', 1, '2023-03-30', -15335, -435, 'CHICKENDEN', 'TRANSFERENCIA', 14900, 0, NULL, 0, ''),
(95, '2023-03-30 12:20:42', 5, 44900, NULL, NULL, 'VENTAS', 1, '2023-03-30', 857377, 902277, 'CHICKENDEN', 'EFECTIVO', 44900, 0, NULL, 0, ''),
(96, '2023-10-06 11:49:08', 1, 180000, NULL, 'FACTURA 1', 'DEVOLUCION DE VENTA', 1, '2023-10-06', 902277, 722277, 'CHICKENDEN', 'EFECTIVO', 0, 180000, NULL, 0, ''),
(97, '2023-10-06 11:49:28', 1, 180000, NULL, 'FACTURA 2', 'DEVOLUCION DE VENTA', 1, '2023-10-06', 722277, 542277, 'CHICKENDEN', 'EFECTIVO', 0, 180000, NULL, 0, ''),
(98, '2023-10-06 11:49:41', 1, 180000, NULL, 'FACTURA 3', 'DEVOLUCION DE VENTA', 1, '2023-10-06', 542277, 362277, 'CHICKENDEN', 'EFECTIVO', 0, 180000, NULL, 0, ''),
(99, '2023-10-06 16:29:39', 1, 180000, NULL, 'FACTURA 4', 'DEVOLUCION DE VENTA', 1, '2023-10-06', 362277, 182277, 'CHICKENDEN', 'EFECTIVO', 0, 180000, NULL, 0, ''),
(100, '2023-10-06 16:38:53', 1, 180000, NULL, 'FACTURA 5', 'DEVOLUCION DE VENTA', 1, '2023-10-06', 182277, 2277, 'CHICKENDEN', 'EFECTIVO', 0, 180000, NULL, 0, ''),
(101, '2024-03-09 13:16:19', 4, 110000, NULL, '', 'VENTAS', 1, '2024-03-09', 2277, 112277, 'CHICKENDEN', 'EFECTIVO', 110000, 0, NULL, 0, ''),
(102, '2024-03-11 21:30:46', 4, 260000, NULL, '', 'VENTAS', 1, '2024-03-11', 112277, 372277, 'CHICKENDEN', 'EFECTIVO', 260000, 0, NULL, 0, ''),
(103, '2024-04-09 06:56:17', 4, 40000, NULL, '', 'VENTAS', 1, '2024-04-09', 372277, 412277, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(104, '2024-04-10 16:20:26', 1, 20000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 412277, 432277, 'CHICKENDEN', 'EFECTIVO', 20000, 0, NULL, 0, ''),
(105, '2024-04-10 16:21:25', 1, 1, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 432277, 432278, 'CHICKENDEN', 'EFECTIVO', 1, 0, NULL, 0, ''),
(106, '2024-04-10 16:33:07', 1, 20000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 432278, 452278, 'CHICKENDEN', 'EFECTIVO', 20000, 0, NULL, 0, ''),
(107, '2024-04-10 17:35:06', 4, 600000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 452278, 1052278, 'CHICKENDEN', 'EFECTIVO', 600000, 0, NULL, 0, ''),
(108, '2024-04-10 17:35:24', 4, 600000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 1052278, 1652278, 'CHICKENDEN', 'EFECTIVO', 600000, 0, NULL, 0, ''),
(109, '2024-04-10 18:30:02', 4, 600000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 1652278, 2252278, 'CHICKENDEN', 'EFECTIVO', 600000, 0, NULL, 0, ''),
(110, '2024-04-10 18:50:42', 4, 600000, NULL, '', 'VENTAS', 1, '2024-04-10', 2252278, 2852278, 'CHICKENDEN', 'EFECTIVO', 600000, 0, NULL, 0, ''),
(111, '2024-04-19 16:09:11', 4, 100000, NULL, '', 'VENTAS', 1, '2024-04-19', 2852278, 2952278, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(112, '2024-05-03 21:52:49', 4, 100000, NULL, '', 'VENTAS', 1, '2024-05-03', 2952278, 3052278, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(113, '2024-05-03 22:00:09', 4, 240000, NULL, '', 'VENTAS', 1, '2024-05-03', 3052278, 3292278, 'CHICKENDEN', 'EFECTIVO', 240000, 0, NULL, 0, ''),
(114, '2024-05-03 22:00:09', 4, 0, NULL, '', 'VENTAS', 1, '2024-05-03', 3292278, 3292278, 'CHICKENDEN', 'EFECTIVO', 0, 0, NULL, 0, ''),
(115, '2024-05-03 22:00:09', 4, 0, NULL, '', 'VENTAS', 1, '2024-05-03', 3292278, 3292278, 'CHICKENDEN', 'EFECTIVO', 0, 0, NULL, 0, ''),
(116, '2024-05-04 15:59:44', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-04', 3292278, 3412278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(117, '2024-05-04 16:04:39', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-04', 3412278, 3532278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(118, '2024-05-05 11:21:16', 4, 650000, NULL, '', 'VENTAS', 1, '2024-05-05', 3532278, 4182278, 'CHICKENDEN', 'EFECTIVO', 650000, 0, NULL, 0, ''),
(119, '2024-05-06 23:59:59', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-06', 4182278, 4302278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(120, '2024-05-07 06:39:56', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-07', 4302278, 4422278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(121, '2024-05-18 18:10:09', 4, 260000, NULL, '', 'VENTAS', 1, '2024-05-18', 4422278, 4682278, 'CHICKENDEN', 'EFECTIVO', 260000, 0, NULL, 0, ''),
(122, '2024-05-28 23:27:43', 4, 180000, NULL, '', 'VENTAS', 1, '2024-05-28', 4682278, 4862278, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(123, '2024-05-28 23:38:09', 4, 50000, NULL, '', 'VENTAS', 1, '2024-05-28', 4862278, 4912278, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(124, '2024-05-28 23:41:03', 4, 60000, NULL, '', 'VENTAS', 1, '2024-05-28', 4912278, 4972278, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(125, '2024-05-29 12:30:01', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-29', 4972278, 5092278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(126, '2024-05-29 12:33:46', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-29', 5092278, 5212278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(127, '2024-05-29 12:34:59', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-29', 5212278, 5332278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(128, '2024-05-29 12:36:14', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-29', 5332278, 5452278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(129, '2024-05-29 12:39:06', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-29', 5452278, 5572278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(130, '2024-05-31 11:06:01', 4, 120000, NULL, '', 'VENTAS', 1, '2024-05-31', 5572278, 5692278, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(131, '2024-06-05 15:58:33', 14, 1, NULL, '', 'VENTAS', 1, '2024-06-05', 5692278, 5692279, 'CHICKENDEN', 'EFECTIVO', 1, 0, NULL, 0, ''),
(132, '2024-06-05 19:29:12', 14, 1, NULL, '', 'VENTAS', 1, '2024-06-05', 5692279, 5692280, 'CHICKENDEN', 'EFECTIVO', 1, 0, NULL, 0, ''),
(133, '2024-06-06 23:59:59', 14, 1500, NULL, '', 'VENTAS', 1, '2024-06-06', 5692280, 5693780, 'CHICKENDEN', 'EFECTIVO', 1500, 0, NULL, 0, ''),
(134, '2024-06-06 23:59:59', 1, 1500, NULL, '', 'VENTAS', 1, '2024-06-06', 5693780, 5695280, 'CHICKENDEN', 'EFECTIVO', 1500, 0, NULL, 0, ''),
(135, '2024-06-07 09:47:31', 1, 500, NULL, '', 'VENTAS', 1, '2024-06-07', 5695280, 5695780, 'CHICKENDEN', 'EFECTIVO', 500, 0, NULL, 0, ''),
(136, '2024-06-07 10:33:38', 1, 1500, NULL, '', 'VENTAS', 1, '2024-06-07', 5695780, 5697280, 'CHICKENDEN', 'EFECTIVO', 1500, 0, NULL, 0, ''),
(137, '2024-06-07 17:25:50', 4, 150000, NULL, '', 'VENTAS', 1, '2024-06-07', 5697280, 5847280, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(138, '2023-06-20 20:39:37', 1, 2452000, NULL, '    ESTANQUILLO EL PALACIO DE LOS LICORES ', 'COMPRAS', 1, '2023-06-20', 5847280, 3395280, 'CHICKENDEN', 'EFECTIVO', 0, 2452000, NULL, 0, ''),
(139, '2023-06-20 21:09:38', 1, 194400, NULL, '    ESTANQUILLO EL PALACIO DE LOS LICORES ', 'COMPRAS', 1, '2023-06-20', 3395280, 3200880, 'CHICKENDEN', 'EFECTIVO', 0, 194400, NULL, 0, ''),
(140, '2023-08-26 11:23:21', 1, 13000, NULL, '    ESTANQUILLO EL PALACIO DE LOS LICORES ', 'COMPRAS', 1, '2023-08-26', 3200880, 3187880, 'CHICKENDEN', 'EFECTIVO', 0, 13000, NULL, 0, ''),
(141, '2024-06-13 12:47:36', 4, 120000, NULL, '', 'VENTAS', 1, '2024-06-13', 3187880, 3307880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(142, '2024-06-13 12:50:15', 4, 120000, NULL, '', 'VENTAS', 1, '2024-06-13', 3307880, 3427880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(143, '2024-07-04 12:32:21', 4, 180000, NULL, '', 'VENTAS', 1, '2024-07-04', 3427880, 3607880, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(144, '2024-07-04 12:35:00', 4, 180000, NULL, '', 'VENTAS', 1, '2024-07-04', 3607880, 3787880, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(145, '2024-07-04 14:10:20', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-04', 3787880, 3907880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(146, '2024-07-04 14:12:52', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-04', 3907880, 4027880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(147, '2024-07-09 17:49:20', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-09', 4027880, 4147880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(148, '2024-07-09 17:51:30', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-09', 4147880, 4267880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(149, '2024-07-09 17:53:42', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-09', 4267880, 4387880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(150, '2024-07-09 17:55:08', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-09', 4387880, 4507880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(151, '2024-07-16 19:57:17', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-16', 4507880, 4627880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(152, '2024-07-16 20:00:01', 4, 120000, NULL, '', 'VENTAS', 1, '2024-07-16', 4627880, 4747880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(153, '2024-07-16 20:30:24', 4, 40000, NULL, '', 'VENTAS', 1, '2024-07-16', 4747880, 4787880, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(154, '2024-07-16 20:34:13', 4, 40000, NULL, '', 'VENTAS', 1, '2024-07-16', 4787880, 4827880, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(155, '2024-07-19 07:18:33', 7, 120000, NULL, '', 'VENTAS', 1, '2024-07-19', 4827880, 4947880, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(156, '2024-07-30 21:37:00', 7, 60000, NULL, '', 'VENTAS', 1, '2024-07-30', 4947880, 5007880, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(157, '2024-07-30 21:49:45', 7, 60000, NULL, '', 'VENTAS', 1, '2024-07-30', 5007880, 5067880, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(158, '2024-07-30 22:01:59', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', -435, 359565, 'CHICKENDEN', 'TRANSFERENCIA', 360000, 0, NULL, 0, ''),
(159, '2024-07-30 22:02:36', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 359565, 719565, 'CHICKENDEN', 'TRANSFERENCIA', 360000, 0, NULL, 0, ''),
(160, '2024-07-30 22:02:36', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 719565, 1079565, 'CHICKENDEN', 'TRANSFERENCIA', 360000, 0, NULL, 0, ''),
(161, '2024-07-30 22:06:22', 7, 5, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 5067880, 5067885, 'CHICKENDEN', 'EFECTIVO', 5, 0, NULL, 0, ''),
(162, '2024-07-30 22:01:59', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 1079565, 1439565, 'CHICKENDEN', 'TRANSFERENCIA', 360000, 0, NULL, 0, ''),
(163, '2024-04-10 18:30:02', 7, 600000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 5067885, 5667885, 'CHICKENDEN', 'EFECTIVO', 600000, 0, NULL, 0, ''),
(164, '2024-04-10 17:35:24', 7, 600000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 5667885, 6267885, 'CHICKENDEN', 'EFECTIVO', 600000, 0, NULL, 0, ''),
(165, '2024-04-10 16:33:07', 7, 20000, NULL, '', 'Anticipo reserva', 1, '2024-04-10', 6267885, 6287885, 'CHICKENDEN', 'EFECTIVO', 20000, 0, NULL, 0, ''),
(166, '2024-07-30 22:08:50', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 6287885, 6647885, 'CHICKENDEN', 'EFECTIVO', 360000, 0, NULL, 0, ''),
(167, '2024-07-30 22:09:00', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 6647885, 7007885, 'CHICKENDEN', 'EFECTIVO', 360000, 0, NULL, 0, ''),
(168, '2024-07-30 22:08:50', 7, 360000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 7007885, 7367885, 'CHICKENDEN', 'EFECTIVO', 360000, 0, NULL, 0, ''),
(169, '2024-07-30 22:23:20', 7, 160000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 7367885, 7527885, 'CHICKENDEN', 'EFECTIVO', 160000, 0, NULL, 0, ''),
(170, '2024-07-30 23:25:34', 7, 80000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 1439565, 1519565, 'CHICKENDEN', 'TRANSFERENCIA', 80000, 0, NULL, 0, ''),
(171, '2024-07-30 23:28:07', 7, 80000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 7527885, 7607885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(172, '2024-07-30 23:25:34', 7, 80000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 1519565, 1599565, 'CHICKENDEN', 'TRANSFERENCIA', 80000, 0, NULL, 0, ''),
(173, '2024-07-30 23:29:29', 7, 80000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 1599565, 1679565, 'CHICKENDEN', 'TRANSFERENCIA', 80000, 0, NULL, 0, ''),
(174, '2024-07-30 23:28:07', 7, 80000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 7607885, 7687885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(175, '2024-07-30 23:29:29', 7, 80000, NULL, '', 'Anticipo reserva', 1, '2024-07-30', 1679565, 1759565, 'CHICKENDEN', 'TRANSFERENCIA', 80000, 0, NULL, 0, ''),
(176, '2024-08-01 12:30:16', 7, 864000, NULL, '', 'VENTAS', 1, '2024-08-01', 7687885, 8551885, 'CHICKENDEN', 'EFECTIVO', 864000, 0, NULL, 0, ''),
(177, '2024-08-06 11:22:47', 7, 120000, NULL, '', 'VENTAS', 1, '2024-08-06', 8551885, 8671885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(178, '2024-08-27 16:29:39', 7, 240000, NULL, '', 'VENTAS', 1, '2024-08-27', 8671885, 8911885, 'CHICKENDEN', 'EFECTIVO', 240000, 0, NULL, 0, ''),
(179, '2024-08-27 16:41:11', 7, 120000, NULL, '', 'VENTAS', 1, '2024-08-27', 8911885, 9031885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(180, '2024-08-27 16:43:45', 7, 120000, NULL, '', 'VENTAS', 1, '2024-08-27', 9031885, 9151885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(181, '2024-08-27 17:10:22', 7, 120000, NULL, '', 'VENTAS', 1, '2024-08-27', 9151885, 9271885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(182, '2024-08-27 17:13:39', 7, 120000, NULL, '', 'VENTAS', 1, '2024-08-27', 9271885, 9391885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(183, '2024-09-03 08:04:41', 7, 40000, NULL, '', 'VENTAS', 1, '2024-09-03', 9391885, 9431885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(184, '2024-09-03 08:04:41', 7, 0, NULL, '', 'VENTAS', 1, '2024-09-03', 9431885, 9431885, 'CHICKENDEN', 'EFECTIVO', 0, 0, NULL, 0, ''),
(185, '2024-09-09 22:39:46', 7, 120000, NULL, '', 'VENTAS', 1, '2024-09-09', 9431885, 9551885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(186, '2024-09-09 22:42:06', 7, 120000, NULL, '', 'VENTAS', 1, '2024-09-09', 9551885, 9671885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(187, '2024-09-11 06:53:43', 7, 100000, NULL, '', 'VENTAS', 1, '2024-09-11', 9671885, 9771885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(188, '2024-09-14 12:49:47', 4, 540000, NULL, '', 'VENTAS', 1, '2024-09-14', 9771885, 10311885, 'CHICKENDEN', 'EFECTIVO', 540000, 0, NULL, 0, ''),
(189, '2024-09-17 10:33:33', 4, 280000, NULL, '', 'VENTAS', 1, '2024-09-17', 10311885, 10591885, 'CHICKENDEN', 'EFECTIVO', 280000, 0, NULL, 0, ''),
(190, '2024-09-17 10:38:30', 4, 100000, NULL, '', 'VENTAS', 1, '2024-09-17', 10591885, 10691885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(191, '2024-09-19 06:06:08', 4, 100000, NULL, '', 'VENTAS', 1, '2024-09-19', 10691885, 10791885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(192, '2024-09-23 15:21:40', 4, 50000, NULL, '', 'VENTAS', 1, '2024-09-23', 10791885, 10841885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(193, '2024-09-29 23:15:44', 4, 120000, NULL, '', 'VENTAS', 1, '2024-09-29', 10841885, 10961885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(194, '2024-09-30 08:55:19', 4, 180000, NULL, '', 'VENTAS', 1, '2024-09-30', 10961885, 11141885, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(195, '2024-10-10 21:25:05', 4, 330000, NULL, '', 'VENTAS', 1, '2024-10-10', 11141885, 11471885, 'CHICKENDEN', 'EFECTIVO', 330000, 0, NULL, 0, ''),
(196, '2024-10-12 22:28:54', 4, 40000, NULL, '', 'VENTAS', 1, '2024-10-12', 11471885, 11511885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(197, '2024-10-12 22:31:07', 4, 50000, NULL, '', 'VENTAS', 1, '2024-10-12', 11511885, 11561885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(198, '2024-10-12 22:31:58', 4, 60000, NULL, '', 'VENTAS', 1, '2024-10-12', 11561885, 11621885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(199, '2024-10-13 08:50:59', 4, 50000, NULL, '', 'VENTAS', 1, '2024-10-13', 11621885, 11671885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(200, '2024-10-13 08:52:17', 4, 40000, NULL, '', 'VENTAS', 1, '2024-10-13', 11671885, 11711885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(201, '2024-10-13 08:53:51', 4, 60000, NULL, '', 'VENTAS', 1, '2024-10-13', 11711885, 11771885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(202, '2024-10-16 08:42:33', 4, 60000, NULL, '', 'VENTAS', 1, '2024-10-16', 11771885, 11831885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(203, '2024-11-06 19:34:24', 4, 320000, NULL, '', 'VENTAS', 1, '2024-11-06', 11831885, 12151885, 'CHICKENDEN', 'EFECTIVO', 320000, 0, NULL, 0, ''),
(204, '2024-11-07 23:15:11', 7, 200000, NULL, '', 'VENTAS', 1, '2024-11-07', 12151885, 12351885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(205, '2024-11-07 23:32:35', 7, 120000, NULL, '', 'VENTAS', 1, '2024-11-07', 12351885, 12471885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(206, '2024-11-07 23:35:09', 7, 120000, NULL, '', 'VENTAS', 1, '2024-11-07', 12471885, 12591885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(207, '2024-11-07 23:39:43', 7, 120000, NULL, '', 'VENTAS', 1, '2024-11-07', 12591885, 12711885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(208, '2024-11-07 23:59:59', 7, 50000, NULL, '', 'VENTAS', 1, '2024-11-07', 12711885, 12761885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(209, '2024-11-08 19:57:41', 7, 50000, NULL, '', 'VENTAS', 1, '2024-11-08', 12761885, 12811885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(210, '2024-11-08 21:08:34', 7, 50000, NULL, '', 'VENTAS', 1, '2024-11-08', 12811885, 12861885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(211, '2024-11-08 21:15:22', 7, 50000, NULL, '', 'VENTAS', 1, '2024-11-08', 12861885, 12911885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(212, '2024-11-08 22:22:07', 7, 140000, NULL, '', 'VENTAS', 1, '2024-11-08', 12911885, 13051885, 'CHICKENDEN', 'EFECTIVO', 140000, 0, NULL, 0, ''),
(213, '2024-11-08 22:27:47', 7, 120000, NULL, '', 'VENTAS', 1, '2024-11-08', 13051885, 13171885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(214, '2024-11-08 22:31:52', 7, 120000, NULL, '', 'VENTAS', 1, '2024-11-08', 13171885, 13291885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(215, '2024-11-09 07:47:56', 7, 40000, NULL, '', 'VENTAS', 1, '2024-11-09', 13291885, 13331885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(216, '2024-11-09 08:12:10', 7, 40000, NULL, '', 'VENTAS', 1, '2024-11-09', 13331885, 13371885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(217, '2024-11-09 08:17:31', 7, 40000, NULL, '', 'VENTAS', 1, '2024-11-09', 13371885, 13411885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(218, '2024-11-11 22:07:07', 7, 860000, NULL, '', 'VENTAS', 1, '2024-11-11', 13411885, 14271885, 'CHICKENDEN', 'EFECTIVO', 860000, 0, NULL, 0, ''),
(219, '2024-11-11 22:14:10', 7, 420000, NULL, '', 'VENTAS', 1, '2024-11-11', 14271885, 14691885, 'CHICKENDEN', 'EFECTIVO', 420000, 0, NULL, 0, ''),
(220, '2024-11-11 22:21:33', 7, 420000, NULL, '', 'VENTAS', 1, '2024-11-11', 14691885, 15111885, 'CHICKENDEN', 'EFECTIVO', 420000, 0, NULL, 0, ''),
(221, '2024-11-11 22:36:13', 7, 420000, NULL, '', 'VENTAS', 1, '2024-11-11', 15111885, 15531885, 'CHICKENDEN', 'EFECTIVO', 420000, 0, NULL, 0, ''),
(222, '2024-11-15 06:08:22', 7, 820000, NULL, '', 'VENTAS', 1, '2024-11-15', 15531885, 16351885, 'CHICKENDEN', 'EFECTIVO', 820000, 0, NULL, 0, ''),
(223, '2024-11-18 21:11:56', 7, 60000, NULL, '', 'VENTAS', 1, '2024-11-18', 16351885, 16411885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(224, '2024-11-18 21:43:38', 7, 40000, NULL, '', 'VENTAS', 1, '2024-11-18', 16411885, 16451885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(225, '2024-11-20 08:54:39', 4, 120000, NULL, '', 'VENTAS', 1, '2024-11-20', 16451885, 16571885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(226, '2024-11-27 06:50:59', 7, 40000, NULL, '', 'VENTAS', 1, '2024-11-27', 16571885, 16611885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(227, '2024-11-27 08:28:52', 4, 210000, NULL, '', 'VENTAS', 1, '2024-11-27', 16611885, 16821885, 'CHICKENDEN', 'EFECTIVO', 210000, 0, NULL, 0, ''),
(228, '2024-12-04 07:45:18', 86, 190000, NULL, '', 'VENTAS', 1, '2024-12-04', 16821885, 17011885, 'CHICKENDEN', 'EFECTIVO', 190000, 0, NULL, 0, ''),
(229, '2024-12-10 19:20:41', 4, 50000, NULL, '', 'VENTAS', 1, '2024-12-10', 17011885, 17061885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(230, '2024-12-12 19:26:16', 86, 320000, NULL, '', 'VENTAS', 1, '2024-12-12', 17061885, 17381885, 'CHICKENDEN', 'EFECTIVO', 320000, 0, NULL, 0, ''),
(231, '2024-12-17 21:31:32', 86, 40000, NULL, '', 'VENTAS', 1, '2024-12-17', 17381885, 17421885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(232, '2024-12-17 21:38:39', 86, 40000, NULL, '', 'VENTAS', 1, '2024-12-17', 17421885, 17461885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(233, '2024-12-17 21:49:03', 86, 40000, NULL, '', 'VENTAS', 1, '2024-12-17', 17461885, 17501885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(234, '2024-12-19 10:26:39', 86, 40000, NULL, '', 'VENTAS', 1, '2024-12-19', 17501885, 17541885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(235, '2024-12-20 12:17:06', 86, 120000, NULL, '', 'VENTAS', 1, '2024-12-20', 17541885, 17661885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(236, '2024-12-20 12:19:00', 86, 120000, NULL, '', 'VENTAS', 1, '2024-12-20', 17661885, 17781885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(237, '2024-12-20 12:20:14', 86, 120000, NULL, '', 'VENTAS', 1, '2024-12-20', 17781885, 17901885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(238, '2024-12-20 12:21:32', 86, 120000, NULL, '', 'VENTAS', 1, '2024-12-20', 17901885, 18021885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(239, '2024-12-21 15:13:08', 86, 150000, NULL, '', 'VENTAS', 1, '2024-12-21', 18021885, 18171885, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(240, '2024-12-21 15:16:16', 86, 150000, NULL, '', 'VENTAS', 1, '2024-12-21', 18171885, 18321885, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(241, '2024-12-22 13:16:36', 86, 200000, NULL, '', 'VENTAS', 1, '2024-12-22', 18321885, 18521885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(242, '2024-12-22 13:19:28', 86, 200000, NULL, '', 'VENTAS', 1, '2024-12-22', 18521885, 18721885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(243, '2024-12-22 13:22:14', 86, 200000, NULL, '', 'VENTAS', 1, '2024-12-22', 18721885, 18921885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(244, '2024-12-22 13:24:43', 86, 200000, NULL, '', 'VENTAS', 1, '2024-12-22', 18921885, 19121885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(245, '2025-01-09 08:34:12', 86, 50000, NULL, '', 'VENTAS', 1, '2025-01-09', 19121885, 19171885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(246, '2025-01-09 08:38:30', 86, 150000, NULL, '', 'VENTAS', 1, '2025-01-09', 19171885, 19321885, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(247, '2025-01-16 14:07:14', 4, 120000, NULL, '', 'VENTAS', 1, '2025-01-16', 19321885, 19441885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(248, '2025-01-16 22:16:37', 4, 150000, NULL, '', 'VENTAS', 1, '2025-01-16', 19441885, 19591885, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(249, '2025-01-16 22:20:18', 4, 100000, NULL, '', 'VENTAS', 1, '2025-01-16', 19591885, 19691885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(250, '2025-01-23 21:40:37', 4, 40000, NULL, '', 'VENTAS', 1, '2025-01-23', 19691885, 19731885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(251, '2025-01-24 21:58:20', 4, 120000, NULL, '', 'VENTAS', 1, '2025-01-24', 19731885, 19851885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(252, '2025-01-24 21:58:20', 4, 0, NULL, '', 'VENTAS', 1, '2025-01-24', 19851885, 19851885, 'CHICKENDEN', 'EFECTIVO', 0, 0, NULL, 0, ''),
(253, '2025-01-25 19:59:42', 4, 100000, NULL, '', 'VENTAS', 1, '2025-01-25', 19851885, 19951885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(254, '2025-01-25 20:02:03', 4, 40000, NULL, '', 'VENTAS', 1, '2025-01-25', 19951885, 19991885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(255, '2025-01-28 16:19:57', 4, 50000, NULL, '', 'VENTAS', 1, '2025-01-28', 19991885, 20041885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(256, '2025-01-29 08:32:51', 4, 40000, NULL, '', 'VENTAS', 1, '2025-01-29', 20041885, 20081885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(257, '2025-01-29 08:36:36', 4, 40000, NULL, '', 'VENTAS', 1, '2025-01-29', 20081885, 20121885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(258, '2025-01-30 11:15:23', 4, 40000, NULL, '', 'VENTAS', 1, '2025-01-30', 20121885, 20161885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(259, '2025-02-01 16:31:44', 4, 150000, NULL, '', 'VENTAS', 1, '2025-02-01', 20161885, 20311885, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(260, '2025-02-02 11:03:27', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-02', 20311885, 20351885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(261, '2025-02-02 19:55:51', 4, 180000, NULL, '', 'VENTAS', 1, '2025-02-02', 20351885, 20531885, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(262, '2025-02-02 19:56:40', 4, 180000, NULL, '', 'VENTAS', 1, '2025-02-02', 20531885, 20711885, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(263, '2025-02-05 11:15:45', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-05', 20711885, 20751885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(264, '2025-02-06 09:30:07', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-06', 20751885, 20791885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(265, '2025-02-07 11:47:18', 4, 50000, NULL, '', 'VENTAS', 1, '2025-02-07', 20791885, 20841885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(266, '2025-02-07 11:49:06', 4, 50000, NULL, '', 'VENTAS', 1, '2025-02-07', 20841885, 20891885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(267, '2025-02-08 19:20:47', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-08', 20891885, 20931885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(268, '2025-02-11 16:51:51', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-11', 20931885, 20971885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(269, '2025-02-13 09:58:48', 4, 50000, NULL, '', 'VENTAS', 1, '2025-02-13', 20971885, 21021885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(270, '2025-02-17 18:58:47', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-17', 21021885, 21061885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(271, '2025-02-18 08:30:40', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-18', 21061885, 21101885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(272, '2025-02-18 20:29:27', 4, 370000, NULL, '', 'VENTAS', 1, '2025-02-18', 21101885, 21471885, 'CHICKENDEN', 'EFECTIVO', 370000, 0, NULL, 0, ''),
(273, '2025-02-18 20:34:49', 4, 370000, NULL, '', 'VENTAS', 1, '2025-02-18', 21471885, 21841885, 'CHICKENDEN', 'EFECTIVO', 370000, 0, NULL, 0, ''),
(274, '2025-02-21 07:49:21', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-21', 21841885, 21881885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(275, '2025-02-22 19:52:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-02-22', 21881885, 21931885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(276, '2025-02-25 22:23:07', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-25', 21931885, 21971885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(277, '2025-02-25 22:51:25', 4, 50000, NULL, '', 'VENTAS', 1, '2025-02-25', 21971885, 22021885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(278, '2025-02-27 14:47:34', 4, 40000, NULL, '', 'VENTAS', 1, '2025-02-27', 22021885, 22061885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(279, '2025-03-02 22:07:36', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-02', 22061885, 22101885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(280, '2025-03-03 22:26:58', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-03', 22101885, 22141885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(281, '2025-03-04 20:16:08', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-04', 22141885, 22181885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(282, '2025-03-05 11:19:19', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-05', 22181885, 22221885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(283, '2025-03-06 09:13:15', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-06', 22221885, 22261885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(284, '2025-03-08 15:20:09', 4, 80000, NULL, '', 'VENTAS', 1, '2025-03-08', 22261885, 22341885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(285, '2025-03-08 15:27:03', 4, 60000, NULL, '', 'VENTAS', 1, '2025-03-08', 22341885, 22401885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(286, '2025-03-08 15:37:16', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-08', 22401885, 22441885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(287, '2025-03-11 13:10:49', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-11', 22441885, 22481885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(288, '2025-03-12 21:47:26', 4, 60000, NULL, '', 'VENTAS', 1, '2025-03-12', 22481885, 22541885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(289, '2025-03-13 18:24:13', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-13', 22541885, 22581885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(290, '2025-03-17 15:51:09', 4, 50000, NULL, '', 'VENTAS', 1, '2025-03-17', 22581885, 22631885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(291, '2025-03-18 21:47:06', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-18', 22631885, 22671885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(292, '2025-03-20 11:12:29', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-20', 22671885, 22711885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(293, '2025-03-23 09:03:32', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-23', 22711885, 22751885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(294, '2025-03-25 11:55:54', 4, 80000, NULL, '', 'VENTAS', 1, '2025-03-25', 22751885, 22831885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(295, '2025-03-26 08:09:34', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-26', 22831885, 22871885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(296, '2025-03-29 20:29:34', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-29', 22871885, 22911885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(297, '2025-03-31 10:15:43', 4, 40000, NULL, '', 'VENTAS', 1, '2025-03-31', 22911885, 22951885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(298, '2025-04-02 19:17:12', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-02', 22951885, 22991885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(299, '2025-04-03 12:15:01', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-03', 22991885, 23041885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(300, '2025-04-04 09:04:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-04', 23041885, 23091885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(301, '2025-04-05 20:15:48', 4, 60000, NULL, '', 'VENTAS', 1, '2025-04-05', 23091885, 23151885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(302, '2025-04-05 20:16:59', 4, 60000, NULL, '', 'VENTAS', 1, '2025-04-05', 23151885, 23211885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(303, '2025-04-07 20:33:29', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-07', 23211885, 23251885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(304, '2025-04-08 17:44:30', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-08', 23251885, 23291885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(305, '2025-04-08 22:06:59', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-08', 23291885, 23331885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(306, '2025-04-09 12:26:57', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-09', 23331885, 23371885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(307, '2025-04-09 12:36:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-09', 23371885, 23411885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(308, '2025-04-10 17:24:59', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-10', 23411885, 23451885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(309, '2025-04-11 16:07:16', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-11', 23451885, 23501885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(310, '2025-04-11 16:08:02', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-11', 23501885, 23551885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(311, '2025-04-14 22:55:59', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-14', 23551885, 23591885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(312, '2025-04-15 08:24:17', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-15', 23591885, 23631885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(313, '2025-04-15 08:25:31', 4, 60000, NULL, '', 'VENTAS', 1, '2025-04-15', 23631885, 23691885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(314, '2025-04-15 12:17:33', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-15', 23691885, 23731885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(315, '2025-04-15 12:18:28', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-15', 23731885, 23771885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(316, '2025-04-17 14:18:02', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-17', 23771885, 23811885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(317, '2025-04-19 07:29:11', 4, 60000, NULL, '', 'VENTAS', 1, '2025-04-19', 23811885, 23871885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(318, '2025-04-22 07:46:06', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-22', 23871885, 23921885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(319, '2025-04-22 07:48:09', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-22', 23921885, 23961885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(320, '2025-04-22 07:49:20', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-22', 23961885, 24001885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(321, '2025-04-24 10:23:12', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-24', 24001885, 24041885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(322, '2025-04-24 10:24:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-24', 24041885, 24091885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(323, '2025-04-24 10:25:31', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-24', 24091885, 24131885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(324, '2025-04-24 17:13:00', 4, 100000, NULL, '', 'VENTAS', 1, '2025-04-24', 24131885, 24231885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(325, '2025-04-25 21:51:59', 4, 60000, NULL, '', 'VENTAS', 1, '2025-04-25', 24231885, 24291885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(326, '2025-04-26 11:22:29', 4, 60000, NULL, '', 'VENTAS', 1, '2025-04-26', 24291885, 24351885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(327, '2025-04-29 12:12:24', 4, 50000, NULL, '', 'VENTAS', 1, '2025-04-29', 24351885, 24401885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(328, '2025-04-29 12:13:18', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-29', 24401885, 24441885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(329, '2025-04-29 12:14:38', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-29', 24441885, 24481885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(330, '2025-04-29 17:12:32', 4, 200000, NULL, '', 'VENTAS', 1, '2025-04-29', 24481885, 24681885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(331, '2025-04-29 17:30:29', 4, 40000, NULL, '', 'VENTAS', 1, '2025-04-29', 24681885, 24721885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(332, '2025-04-30 11:31:55', 4, 180000, NULL, '', 'VENTAS', 1, '2025-04-30', 24721885, 24901885, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(333, '2025-05-03 18:16:54', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-03', 24901885, 24941885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(334, '2025-05-05 13:21:10', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-05', 24941885, 24981885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(335, '2025-05-06 14:59:30', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-06', 24981885, 25021885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(336, '2025-05-06 21:10:19', 4, 50000, NULL, '', 'VENTAS', 1, '2025-05-06', 25021885, 25071885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(337, '2025-05-07 13:33:53', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-07', 25071885, 25111885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(338, '2025-05-08 10:25:43', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-08', 25111885, 25151885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(339, '2025-05-08 10:27:27', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-08', 25151885, 25191885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(340, '2025-05-09 15:55:41', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-09', 25191885, 25231885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(341, '2025-05-09 15:56:47', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-09', 25231885, 25271885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(342, '2025-05-10 15:33:26', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-10', 25271885, 25311885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(343, '2025-05-10 15:34:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-10', 25311885, 25351885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, '');
INSERT INTO `cajamayor2` (`id`, `fechacreacion`, `idusuario`, `valor`, `tipo`, `descripcion`, `concepto`, `idz`, `fecha`, `valorinicial`, `valorfinal`, `pv`, `mediodepago`, `entrada`, `salida`, `idprestamoin`, `idtabla`, `tabla`) VALUES
(344, '2025-05-12 15:52:26', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-12', 25351885, 25391885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(345, '2025-05-12 15:53:06', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-12', 25391885, 25431885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(346, '2025-05-13 19:51:37', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-13', 25431885, 25471885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(347, '2025-05-13 19:56:09', 4, 50000, NULL, '', 'VENTAS', 1, '2025-05-13', 25471885, 25521885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(348, '2025-05-14 13:53:06', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-14', 25521885, 25561885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(349, '2025-05-15 15:35:54', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-15', 25561885, 25601885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(350, '2025-05-15 15:37:03', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-15', 25601885, 25641885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(351, '2025-05-16 11:21:10', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-16', 25641885, 25681885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(352, '2025-05-17 18:15:21', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-17', 25681885, 25721885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(353, '2025-05-17 18:16:23', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-17', 25721885, 25761885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(354, '2025-05-17 18:17:15', 4, 50000, NULL, '', 'VENTAS', 1, '2025-05-17', 25761885, 25811885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(355, '2025-05-19 11:22:45', 4, 100000, NULL, '', 'VENTAS', 1, '2025-05-19', 25811885, 25911885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(356, '2025-05-19 11:25:46', 4, 110000, NULL, '', 'VENTAS', 1, '2025-05-19', 25911885, 26021885, 'CHICKENDEN', 'EFECTIVO', 110000, 0, NULL, 0, ''),
(357, '2025-05-19 11:27:06', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-19', 26021885, 26061885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(358, '2025-05-19 11:49:06', 4, 50000, NULL, '', 'VENTAS', 1, '2025-05-19', 26061885, 26111885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(359, '2025-05-19 12:07:05', 4, 550000, NULL, '', 'VENTAS', 1, '2025-05-19', 26111885, 26661885, 'CHICKENDEN', 'EFECTIVO', 550000, 0, NULL, 0, ''),
(360, '2025-05-20 17:55:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-20', 26661885, 26701885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(361, '2025-05-20 17:57:13', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-20', 26701885, 26741885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(362, '2025-05-20 18:06:58', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-20', 26741885, 26781885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(363, '2025-05-20 18:08:01', 4, 100000, NULL, '', 'VENTAS', 1, '2025-05-20', 26781885, 26881885, 'CHICKENDEN', 'EFECTIVO', 100000, 0, NULL, 0, ''),
(364, '2025-05-20 19:39:28', 4, 50000, NULL, '', 'VENTAS', 1, '2025-05-20', 26881885, 26931885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(365, '2025-05-21 15:10:26', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-21', 26931885, 26971885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(366, '2025-05-22 17:44:36', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-22', 26971885, 27011885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(367, '2025-05-22 18:46:52', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-22', 27011885, 27051885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(368, '2025-05-22 18:47:44', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-22', 27051885, 27091885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(369, '2025-05-23 15:08:31', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-23', 27091885, 27131885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(370, '2025-05-23 15:10:48', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-23', 27131885, 27171885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(371, '2025-05-24 18:02:23', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-24', 27171885, 27211885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(372, '2025-05-24 18:03:16', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-24', 27211885, 27251885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(373, '2025-05-26 22:07:49', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-26', 27251885, 27291885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(374, '2025-05-27 09:29:02', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-27', 27291885, 27331885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(375, '2025-05-27 14:38:36', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-27', 27331885, 27371885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(376, '2025-05-27 21:02:10', 4, 320000, NULL, '', 'VENTAS', 1, '2025-05-27', 27371885, 27691885, 'CHICKENDEN', 'EFECTIVO', 320000, 0, NULL, 0, ''),
(377, '2025-05-27 21:07:00', 4, 200000, NULL, '', 'VENTAS', 1, '2025-05-27', 27691885, 27891885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(378, '2025-05-28 17:20:31', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-28', 27891885, 27931885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(379, '2025-05-28 17:20:31', 4, 0, NULL, '', 'VENTAS', 1, '2025-05-28', 27931885, 27931885, 'CHICKENDEN', 'EFECTIVO', 0, 0, NULL, 0, ''),
(380, '2025-05-30 09:25:57', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-30', 27931885, 27971885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(381, '2025-05-30 09:34:40', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-30', 27971885, 28011885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(382, '2025-05-30 09:35:21', 4, 40000, NULL, '', 'VENTAS', 1, '2025-05-30', 28011885, 28051885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(383, '2025-06-04 22:20:05', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-04', 28051885, 28091885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(384, '2025-06-04 22:21:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-04', 28091885, 28131885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(385, '2025-06-04 22:23:55', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-04', 28131885, 28171885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(386, '2025-06-05 08:12:48', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-05', 28171885, 28211885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(387, '2025-06-06 15:32:35', 4, 50000, NULL, '', 'VENTAS', 1, '2025-06-06', 28211885, 28261885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(388, '2025-06-06 15:33:31', 4, 50000, NULL, '', 'VENTAS', 1, '2025-06-06', 28261885, 28311885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(389, '2025-06-07 18:44:02', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-07', 28311885, 28351885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(390, '2025-06-07 18:45:15', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-07', 28351885, 28391885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(391, '2025-06-08 20:46:22', 4, 60000, NULL, '', 'VENTAS', 1, '2025-06-08', 28391885, 28451885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(392, '2025-06-08 20:48:32', 4, 180000, NULL, '', 'VENTAS', 1, '2025-06-08', 28451885, 28631885, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(393, '2025-06-10 18:39:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-10', 28631885, 28671885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(394, '2025-06-10 18:40:47', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-10', 28671885, 28711885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(395, '2025-06-11 09:30:53', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-11', 28711885, 28751885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(396, '2025-06-11 09:31:49', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-11', 28751885, 28791885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(397, '2025-06-11 22:19:15', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-11', 28791885, 28831885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(398, '2025-06-12 12:55:16', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-12', 28831885, 28871885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(399, '2025-06-12 12:56:14', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-12', 28871885, 28911885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(400, '2025-06-12 12:57:54', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-12', 28911885, 28951885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(401, '2025-06-13 14:44:06', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-13', 28951885, 28991885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(402, '2025-06-13 14:45:10', 4, 60000, NULL, '', 'VENTAS', 1, '2025-06-13', 28991885, 29051885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(403, '2025-06-14 23:09:46', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-14', 29051885, 29091885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(404, '2025-06-14 23:10:26', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-14', 29091885, 29131885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(405, '2025-06-14 23:11:13', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-14', 29131885, 29171885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(406, '2025-06-16 19:00:05', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-16', 29171885, 29211885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(407, '2025-06-18 09:20:03', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-18', 29211885, 29251885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(408, '2025-06-18 09:20:59', 4, 50000, NULL, '', 'VENTAS', 1, '2025-06-18', 29251885, 29301885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(409, '2025-06-18 09:53:21', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-18', 29301885, 29341885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(410, '2025-06-18 11:54:50', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-18', 29341885, 29381885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(411, '2025-06-19 14:51:15', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-19', 29381885, 29421885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(412, '2025-06-19 14:51:51', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-19', 29421885, 29461885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(413, '2025-06-19 14:52:32', 4, 50000, NULL, '', 'VENTAS', 1, '2025-06-19', 29461885, 29511885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(414, '2025-06-19 14:53:16', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-19', 29511885, 29551885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(415, '2025-06-20 11:15:48', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-20', 29551885, 29591885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(416, '2025-06-21 20:28:21', 4, 50000, NULL, '', 'VENTAS', 1, '2025-06-21', 29591885, 29641885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(417, '2025-06-21 20:29:10', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-21', 29641885, 29681885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(418, '2025-06-24 13:10:32', 4, 60000, NULL, '', 'VENTAS', 1, '2025-06-24', 29681885, 29741885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(419, '2025-06-24 13:12:55', 4, 180000, NULL, '', 'VENTAS', 1, '2025-06-24', 29741885, 29921885, 'CHICKENDEN', 'EFECTIVO', 180000, 0, NULL, 0, ''),
(420, '2025-06-24 13:14:27', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-24', 29921885, 29961885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(421, '2025-06-24 16:41:52', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-24', 29961885, 30001885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(422, '2025-06-25 11:31:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-25', 30001885, 30041885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(423, '2025-06-25 11:32:15', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-25', 30041885, 30081885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(424, '2025-06-25 11:33:56', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-25', 30081885, 30121885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(425, '2025-06-26 16:18:42', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-26', 30121885, 30161885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(426, '2025-06-27 19:08:32', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-27', 30161885, 30201885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(427, '2025-06-30 23:05:41', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-30', 30201885, 30241885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(428, '2025-06-30 23:07:59', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-30', 30241885, 30281885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(429, '2025-06-30 23:14:01', 4, 40000, NULL, '', 'VENTAS', 1, '2025-06-30', 30281885, 30321885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(430, '2025-07-02 19:10:42', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-02', 30321885, 30361885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(431, '2025-07-02 19:11:41', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-02', 30361885, 30401885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(432, '2025-07-02 19:12:56', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-02', 30401885, 30441885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(433, '2025-07-03 11:07:27', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-03', 30441885, 30491885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(434, '2025-07-03 11:07:59', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-03', 30491885, 30541885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(435, '2025-07-03 11:09:08', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-03', 30541885, 30601885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(436, '2025-07-03 11:10:01', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-03', 30601885, 30661885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(437, '2025-07-03 11:10:44', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-03', 30661885, 30701885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(438, '2025-07-04 10:20:12', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-04', 30701885, 30751885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(439, '2025-07-04 10:21:13', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-04', 30751885, 30801885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(440, '2025-07-04 10:22:12', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-04', 30801885, 30861885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(441, '2025-07-04 10:23:11', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-04', 30861885, 30921885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(442, '2025-07-04 10:33:24', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-04', 30921885, 30961885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(443, '2025-07-04 10:36:56', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-04', 30961885, 31001885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(444, '2025-07-04 10:38:30', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-04', 31001885, 31041885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(445, '2025-07-04 15:32:45', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-04', 31041885, 31091885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(446, '2025-07-05 18:22:52', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-05', 31091885, 31151885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(447, '2025-07-05 18:27:21', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-05', 31151885, 31201885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(448, '2025-07-05 18:28:18', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-05', 31201885, 31251885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(449, '2025-07-05 18:30:17', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-05', 31251885, 31311885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(450, '2025-07-06 14:20:15', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-06', 31311885, 31371885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(451, '2025-07-06 14:21:33', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-06', 31371885, 31421885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(452, '2025-07-06 14:22:07', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-06', 31421885, 31471885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(453, '2025-07-06 14:22:40', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-06', 31471885, 31531885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(454, '2025-07-07 23:45:12', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-07', 31531885, 31591885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(455, '2025-07-07 23:46:06', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-07', 31591885, 31651885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(456, '2025-07-07 23:47:23', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-07', 31651885, 31711885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(457, '2025-07-07 23:48:04', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-07', 31711885, 31761885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(458, '2025-07-07 23:48:33', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-07', 31761885, 31811885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(459, '2025-07-07 23:48:59', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-07', 31811885, 31871885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(460, '2025-07-08 19:36:26', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-08', 31871885, 31911885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(461, '2025-07-09 22:37:54', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-09', 31911885, 31951885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(462, '2025-07-09 22:38:56', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-09', 31951885, 31991885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(463, '2025-07-09 22:39:47', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-09', 31991885, 32031885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(464, '2025-07-09 22:42:05', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-09', 32031885, 32091885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(465, '2025-07-09 22:42:41', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-09', 32091885, 32141885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(466, '2025-07-09 22:43:14', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-09', 32141885, 32191885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(467, '2025-07-09 22:44:08', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-09', 32191885, 32251885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(468, '2025-07-09 22:50:38', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-09', 32251885, 32301885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(469, '2025-07-09 22:51:41', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-09', 32301885, 32361885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(470, '2025-07-10 21:34:37', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-10', 32361885, 32401885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(471, '2025-07-11 23:17:54', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-11', 32401885, 32451885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(472, '2025-07-11 23:18:40', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-11', 32451885, 32511885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(473, '2025-07-11 23:19:55', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-11', 32511885, 32571885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(474, '2025-07-12 21:47:03', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-12', 32571885, 32621885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(475, '2025-07-15 13:23:31', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-15', 32621885, 32661885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(476, '2025-07-15 16:08:07', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-15', 32661885, 32701885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(477, '2025-07-16 21:57:22', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-16', 32701885, 32741885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(478, '2025-07-16 21:58:35', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-16', 32741885, 32781885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(479, '2025-07-18 15:36:12', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-18', 32781885, 32821885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(480, '2025-07-18 15:36:39', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-18', 32821885, 32861885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(481, '2025-07-21 15:57:16', 4, 200000, NULL, '', 'VENTAS', 1, '2025-07-21', 32861885, 33061885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(482, '2025-07-21 16:09:52', 4, 120000, NULL, '', 'VENTAS', 1, '2025-07-21', 33061885, 33181885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(483, '2025-07-22 17:40:38', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-22', 33181885, 33221885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(484, '2025-07-23 17:55:48', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-23', 33221885, 33261885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(485, '2025-07-23 17:56:23', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-23', 33261885, 33301885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(486, '2025-07-25 13:44:35', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-25', 33301885, 33341885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(487, '2025-07-25 14:11:49', 4, 60000, NULL, '', 'VENTAS', 1, '2025-07-25', 33341885, 33401885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(488, '2025-07-25 14:12:25', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-25', 33401885, 33441885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(489, '2025-07-25 18:32:06', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-25', 33441885, 33481885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(490, '2025-07-25 18:32:48', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-25', 33481885, 33521885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(491, '2025-07-25 18:33:56', 4, 50000, NULL, '', 'VENTAS', 1, '2025-07-25', 33521885, 33571885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(492, '2025-07-28 15:21:26', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-28', 33571885, 33611885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(493, '2025-07-30 23:59:59', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-30', 33611885, 33651885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(494, '2025-07-30 23:59:59', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-30', 33651885, 33691885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(495, '2025-07-31 18:19:35', 4, 40000, NULL, '', 'VENTAS', 1, '2025-07-31', 33691885, 33731885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(496, '2025-08-01 15:10:16', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-01', 33731885, 33771885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(497, '2025-08-01 15:11:00', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-01', 33771885, 33821885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(498, '2025-08-05 17:11:36', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-05', 33821885, 33861885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(499, '2025-08-05 20:19:58', 4, 220000, NULL, '', 'VENTAS', 1, '2025-08-05', 33861885, 34081885, 'CHICKENDEN', 'EFECTIVO', 220000, 0, NULL, 0, ''),
(500, '2025-08-05 20:22:28', 4, 240000, NULL, '', 'VENTAS', 1, '2025-08-05', 34081885, 34321885, 'CHICKENDEN', 'EFECTIVO', 240000, 0, NULL, 0, ''),
(501, '2025-08-05 20:23:44', 4, 240000, NULL, '', 'VENTAS', 1, '2025-08-05', 34321885, 34561885, 'CHICKENDEN', 'EFECTIVO', 240000, 0, NULL, 0, ''),
(502, '2025-08-09 18:25:19', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-09', 34561885, 34601885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(503, '2025-08-09 18:29:23', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-09', 34601885, 34641885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(504, '2025-08-09 18:33:27', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-09', 34641885, 34691885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(505, '2025-08-11 21:55:21', 4, 80000, NULL, '', 'VENTAS', 1, '2025-08-11', 34691885, 34771885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(506, '2025-08-11 21:56:53', 4, 80000, NULL, '', 'VENTAS', 1, '2025-08-11', 34771885, 34851885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(507, '2025-08-12 17:04:42', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-12', 34851885, 34891885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(508, '2025-08-12 17:05:31', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-12', 34891885, 34931885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(509, '2025-08-12 17:07:12', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-12', 34931885, 34971885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(510, '2025-08-12 17:15:06', 4, 60000, NULL, '', 'VENTAS', 1, '2025-08-12', 34971885, 35031885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(511, '2025-08-12 17:18:44', 4, 120000, NULL, '', 'VENTAS', 1, '2025-08-12', 35031885, 35151885, 'CHICKENDEN', 'EFECTIVO', 120000, 0, NULL, 0, ''),
(512, '2025-08-13 18:32:21', 4, 40000, NULL, '', 'VENTAS', 1, '2025-08-13', 35151885, 35191885, 'CHICKENDEN', 'EFECTIVO', 40000, 0, NULL, 0, ''),
(513, '2025-08-13 19:37:23', 4, 200000, NULL, '', 'VENTAS', 1, '2025-08-13', 35191885, 35391885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(514, '2025-08-14 07:22:44', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-14', 35391885, 35461885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(515, '2025-08-14 07:28:06', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-14', 35461885, 35531885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(516, '2025-08-14 20:49:48', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-14', 35531885, 35581885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(517, '2025-08-14 20:51:25', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-14', 35581885, 35631885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(518, '2025-08-14 21:26:05', 4, 60000, NULL, '', 'VENTAS', 1, '2025-08-14', 35631885, 35691885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(519, '2025-08-20 15:13:38', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-20', 35691885, 35741885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(520, '2025-08-20 15:14:08', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-20', 35741885, 35791885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(521, '2025-08-20 15:16:52', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-20', 35791885, 35841885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(522, '2025-08-20 22:01:08', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-20', 35841885, 35891885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(523, '2025-08-21 17:57:42', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-21', 35891885, 35941885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(524, '2025-08-25 09:46:48', 4, 360000, NULL, '', 'VENTAS', 1, '2025-08-25', 35941885, 36301885, 'CHICKENDEN', 'EFECTIVO', 360000, 0, NULL, 0, ''),
(525, '2025-08-25 09:53:47', 4, 200000, NULL, '', 'VENTAS', 1, '2025-08-25', 36301885, 36501885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(526, '2025-08-25 09:55:09', 4, 200000, NULL, '', 'VENTAS', 1, '2025-08-25', 36501885, 36701885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(527, '2025-08-25 17:10:16', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-25', 36701885, 36751885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(528, '2025-08-26 17:56:08', 4, 50000, NULL, '', 'VENTAS', 1, '2025-08-26', 36751885, 36801885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(529, '2025-08-30 09:50:39', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 36801885, 36871885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(530, '2025-08-30 09:51:20', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 36871885, 36941885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(531, '2025-08-30 09:51:57', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 36941885, 37011885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(532, '2025-08-30 09:52:43', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 37011885, 37081885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(533, '2025-08-30 09:58:18', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 37081885, 37151885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(534, '2025-08-30 09:59:48', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 37151885, 37221885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(535, '2025-08-30 10:00:35', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 37221885, 37291885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(536, '2025-08-30 10:04:59', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-30', 37291885, 37361885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(537, '2025-08-31 23:32:52', 4, 70000, NULL, '', 'VENTAS', 1, '2025-08-31', 37361885, 37431885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(538, '2025-08-31 23:33:28', 4, 65000, NULL, '', 'VENTAS', 1, '2025-08-31', 37431885, 37496885, 'CHICKENDEN', 'EFECTIVO', 65000, 0, NULL, 0, ''),
(539, '2025-09-01 10:52:20', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-01', 37496885, 37546885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(540, '2025-09-01 19:57:59', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-01', 37546885, 37596885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(541, '2025-09-02 19:25:53', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-02', 37596885, 37646885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(542, '2025-09-02 22:05:09', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-02', 37646885, 37696885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(543, '2025-09-03 19:34:55', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-03', 37696885, 37746885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(544, '2025-09-03 19:35:50', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-03', 37746885, 37796885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(545, '2025-09-03 19:36:50', 4, 0, NULL, '', 'VENTAS', 1, '2025-09-03', 37796885, 37796885, 'CHICKENDEN', 'EFECTIVO', 0, 0, NULL, 0, ''),
(546, '2025-09-04 21:32:50', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-04', 37796885, 37846885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(547, '2025-09-05 12:31:26', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-05', 37846885, 37896885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(548, '2025-09-05 12:31:52', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-05', 37896885, 37946885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(549, '2025-09-05 21:25:23', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-05', 37946885, 37996885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(550, '2025-09-06 18:15:28', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-06', 37996885, 38046885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(551, '2025-09-06 18:16:31', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-06', 38046885, 38096885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(552, '2025-09-06 20:03:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-06', 38096885, 38146885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(553, '2025-09-07 14:05:21', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-07', 38146885, 38196885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(554, '2025-09-07 18:36:18', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-07', 38196885, 38246885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(555, '2025-09-08 08:43:42', 4, 70000, NULL, '', 'VENTAS', 1, '2025-09-08', 38246885, 38316885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(556, '2025-09-08 18:47:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-08', 38316885, 38366885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(557, '2025-09-09 23:05:53', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-09', 38366885, 38416885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(558, '2025-09-10 12:49:06', 4, 60000, NULL, '', 'VENTAS', 1, '2025-09-10', 38416885, 38476885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(559, '2025-09-10 12:49:42', 4, 60000, NULL, '', 'VENTAS', 1, '2025-09-10', 38476885, 38536885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(560, '2025-09-10 14:40:17', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-10', 38536885, 38586885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(561, '2025-09-10 20:45:55', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-10', 38586885, 38636885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(562, '2025-09-10 20:46:56', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-10', 38636885, 38686885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(563, '2025-09-11 17:06:21', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-11', 38686885, 38736885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(564, '2025-09-12 17:29:30', 4, 60000, NULL, '', 'VENTAS', 1, '2025-09-12', 38736885, 38796885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(565, '2025-09-12 17:30:23', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-12', 38796885, 38846885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(566, '2025-09-12 17:32:41', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-12', 38846885, 38896885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(567, '2025-09-12 17:33:05', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-12', 38896885, 38946885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(568, '2025-09-12 17:56:33', 4, 60000, NULL, '', 'VENTAS', 1, '2025-09-12', 38946885, 39006885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(569, '2025-09-13 10:38:58', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-13', 39006885, 39056885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(570, '2025-09-16 16:43:27', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-16', 39056885, 39106885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(571, '2025-09-16 18:24:32', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-16', 39106885, 39156885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(572, '2025-09-17 10:46:16', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-17', 39156885, 39206885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(573, '2025-09-17 10:46:50', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-17', 39206885, 39256885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(574, '2025-09-18 09:32:40', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-18', 39256885, 39306885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(575, '2025-09-19 07:37:15', 4, 150000, NULL, '', 'VENTAS', 1, '2025-09-19', 39306885, 39456885, 'CHICKENDEN', 'EFECTIVO', 150000, 0, NULL, 0, ''),
(576, '2025-09-19 07:38:49', 4, 200000, NULL, '', 'VENTAS', 1, '2025-09-19', 39456885, 39656885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(577, '2025-09-19 07:41:25', 4, 200000, NULL, '', 'VENTAS', 1, '2025-09-19', 39656885, 39856885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(578, '2025-09-19 11:05:18', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-19', 39856885, 39906885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(579, '2025-09-20 18:51:19', 4, 70000, NULL, '', 'VENTAS', 1, '2025-09-20', 39906885, 39976885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(580, '2025-09-23 09:10:08', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-23', 39976885, 40026885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(581, '2025-09-23 09:10:54', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-23', 40026885, 40076885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(582, '2025-09-23 14:58:24', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-23', 40076885, 40126885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(583, '2025-09-24 15:57:13', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-24', 40126885, 40176885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(584, '2025-09-24 15:58:10', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-24', 40176885, 40226885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(585, '2025-09-25 12:08:06', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-25', 40226885, 40276885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(586, '2025-09-26 08:47:05', 4, 60000, NULL, '', 'VENTAS', 1, '2025-09-26', 40276885, 40336885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(587, '2025-09-27 09:23:22', 4, 50000, NULL, '', 'VENTAS', 1, '2025-09-27', 40336885, 40386885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(588, '2025-10-01 08:03:16', 4, 80000, NULL, '', 'VENTAS', 1, '2025-10-01', 40386885, 40466885, 'CHICKENDEN', 'EFECTIVO', 80000, 0, NULL, 0, ''),
(589, '2025-10-04 20:21:50', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-04', 40466885, 40526885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(590, '2025-10-10 21:22:16', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-10', 40526885, 40596885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(591, '2025-10-10 21:23:20', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-10', 40596885, 40646885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(592, '2025-10-15 20:26:18', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-15', 40646885, 40696885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(593, '2025-10-16 10:42:24', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-16', 40696885, 40746885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(594, '2025-10-16 11:50:36', 4, 200000, NULL, '', 'VENTAS', 1, '2025-10-16', 40746885, 40946885, 'CHICKENDEN', 'EFECTIVO', 200000, 0, NULL, 0, ''),
(595, '2025-10-17 21:05:32', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-17', 40946885, 41006885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(596, '2025-10-17 21:29:19', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-17', 41006885, 41066885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(597, '2025-10-18 16:04:52', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-18', 41066885, 41126885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(598, '2025-10-18 16:06:13', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-18', 41126885, 41186885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(599, '2025-10-18 16:07:03', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-18', 41186885, 41246885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(600, '2025-10-18 16:07:43', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-18', 41246885, 41306885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(601, '2025-10-18 16:08:23', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-18', 41306885, 41366885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(602, '2025-10-18 16:09:06', 4, 65000, NULL, '', 'VENTAS', 1, '2025-10-18', 41366885, 41431885, 'CHICKENDEN', 'EFECTIVO', 65000, 0, NULL, 0, ''),
(603, '2025-10-18 16:26:15', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-18', 41431885, 41491885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(604, '2025-10-18 18:03:23', 4, 65000, NULL, '', 'VENTAS', 1, '2025-10-18', 41491885, 41556885, 'CHICKENDEN', 'EFECTIVO', 65000, 0, NULL, 0, ''),
(605, '2025-10-20 08:02:41', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-20', 41556885, 41606885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(606, '2025-10-20 18:10:09', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-20', 41606885, 41656885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(607, '2025-10-21 14:39:31', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-21', 41656885, 41706885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(608, '2025-10-21 14:40:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-21', 41706885, 41756885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(609, '2025-10-21 14:50:42', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 41756885, 41826885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(610, '2025-10-21 14:52:42', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 41826885, 41896885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(611, '2025-10-21 14:53:46', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 41896885, 41966885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(612, '2025-10-21 14:54:34', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 41966885, 42036885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(613, '2025-10-21 14:56:07', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 42036885, 42106885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(614, '2025-10-21 15:00:13', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 42106885, 42176885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(615, '2025-10-21 15:01:53', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 42176885, 42246885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(616, '2025-10-21 15:03:49', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 42246885, 42316885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(617, '2025-10-21 15:04:33', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-21', 42316885, 42386885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(618, '2025-10-22 20:58:35', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-22', 42386885, 42436885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(619, '2025-10-23 12:50:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-23', 42436885, 42486885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(620, '2025-10-23 12:51:16', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-23', 42486885, 42546885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(621, '2025-10-23 12:55:13', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-23', 42546885, 42616885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(622, '2025-10-23 12:56:32', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-23', 42616885, 42686885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(623, '2025-10-23 12:57:11', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-23', 42686885, 42756885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(624, '2025-10-24 09:58:24', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-24', 42756885, 42806885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(625, '2025-10-25 12:47:57', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-25', 42806885, 42856885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(626, '2025-10-26 10:22:23', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-26', 42856885, 42906885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(627, '2025-10-30 11:08:22', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-30', 42906885, 42956885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(628, '2025-10-30 11:08:57', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-30', 42956885, 43006885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(629, '2025-10-31 20:46:44', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43006885, 43056885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(630, '2025-10-31 20:47:36', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43056885, 43106885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(631, '2025-10-31 20:48:33', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43106885, 43156885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(632, '2025-10-31 20:50:11', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43156885, 43206885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(633, '2025-10-31 20:51:07', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43206885, 43256885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(634, '2025-10-31 20:51:59', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43256885, 43306885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(635, '2025-10-31 20:53:17', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43306885, 43356885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(636, '2025-10-31 20:54:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43356885, 43406885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(637, '2025-10-31 20:55:32', 4, 50000, NULL, '', 'VENTAS', 1, '2025-10-31', 43406885, 43456885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(638, '2025-10-31 20:58:09', 4, 60000, NULL, '', 'VENTAS', 1, '2025-10-31', 43456885, 43516885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(639, '2025-10-31 20:59:12', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-31', 43516885, 43586885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(640, '2025-10-31 21:00:12', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-31', 43586885, 43656885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(641, '2025-10-31 21:02:50', 4, 70000, NULL, '', 'VENTAS', 1, '2025-10-31', 43656885, 43726885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(642, '2025-11-01 14:08:48', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-01', 43726885, 43776885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(643, '2025-11-03 20:59:27', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-03', 43776885, 43826885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(644, '2025-11-03 21:00:14', 4, 60000, NULL, '', 'VENTAS', 1, '2025-11-03', 43826885, 43886885, 'CHICKENDEN', 'EFECTIVO', 60000, 0, NULL, 0, ''),
(645, '2025-11-03 21:01:13', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-03', 43886885, 43936885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(646, '2025-11-03 21:01:49', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-03', 43936885, 43986885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(647, '2025-11-03 21:12:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-03', 43986885, 44036885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(648, '2025-11-03 21:16:41', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-03', 44036885, 44086885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(649, '2025-11-05 21:40:09', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-05', 44086885, 44136885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(650, '2025-11-05 21:42:02', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-05', 44136885, 44186885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(651, '2025-11-05 21:43:27', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-05', 44186885, 44236885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(652, '2025-11-05 21:46:31', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-05', 44236885, 44286885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(653, '2025-11-05 21:48:17', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-05', 44286885, 44336885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(654, '2025-11-05 21:50:55', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-05', 44336885, 44386885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(655, '2025-11-05 22:09:27', 4, 70000, NULL, '', 'VENTAS', 1, '2025-11-05', 44386885, 44456885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(656, '2025-11-06 08:23:03', 4, 70000, NULL, '', 'VENTAS', 1, '2025-11-06', 44456885, 44526885, 'CHICKENDEN', 'EFECTIVO', 70000, 0, NULL, 0, ''),
(657, '2025-11-10 18:15:55', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44526885, 44576885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(658, '2025-11-10 18:16:41', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44576885, 44626885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(659, '2025-11-10 18:17:16', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44626885, 44676885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(660, '2025-11-10 18:18:19', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44676885, 44726885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(661, '2025-11-10 18:22:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44726885, 44776885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(662, '2025-11-10 18:24:24', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44776885, 44826885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(663, '2025-11-10 18:25:00', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44826885, 44876885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(664, '2025-11-10 18:27:11', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44876885, 44926885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(665, '2025-11-10 18:30:24', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44926885, 44976885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(666, '2025-11-10 18:31:14', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 44976885, 45026885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(667, '2025-11-10 18:31:57', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 45026885, 45076885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(668, '2025-11-10 18:32:33', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-10', 45076885, 45126885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(669, '2025-11-11 11:08:46', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-11', 45126885, 45176885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(670, '2025-11-11 11:09:22', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-11', 45176885, 45226885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(671, '2025-11-11 11:10:01', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-11', 45226885, 45276885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(672, '2025-11-11 15:39:29', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-11', 45276885, 45326885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(673, '2025-11-14 23:38:22', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45326885, 45376885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(674, '2025-11-14 23:41:00', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45376885, 45426885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(675, '2025-11-14 23:43:28', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45426885, 45476885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(676, '2025-11-14 23:45:02', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45476885, 45526885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(677, '2025-11-14 23:47:19', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45526885, 45576885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(678, '2025-11-14 23:53:57', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45576885, 45626885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(679, '2025-11-14 23:55:16', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45626885, 45676885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(680, '2025-11-14 23:56:47', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45676885, 45726885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(681, '2025-11-14 23:59:33', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-14', 45726885, 45776885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(682, '2025-11-15 00:00:29', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-15', 45776885, 45826885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(683, '2025-11-15 00:01:51', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-15', 45826885, 45876885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(684, '2025-11-15 00:05:07', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-15', 45876885, 45926885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(685, '2025-11-20 16:04:20', 4, 65000, NULL, '', 'VENTAS', 1, '2025-11-20', 45926885, 45991885, 'CHICKENDEN', 'EFECTIVO', 65000, 0, NULL, 0, ''),
(686, '2025-11-20 16:05:13', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 45991885, 46041885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(687, '2025-11-20 16:11:20', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46041885, 46091885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(688, '2025-11-20 16:12:06', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46091885, 46141885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, '');
INSERT INTO `cajamayor2` (`id`, `fechacreacion`, `idusuario`, `valor`, `tipo`, `descripcion`, `concepto`, `idz`, `fecha`, `valorinicial`, `valorfinal`, `pv`, `mediodepago`, `entrada`, `salida`, `idprestamoin`, `idtabla`, `tabla`) VALUES
(689, '2025-11-20 16:12:55', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46141885, 46191885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(690, '2025-11-20 16:13:48', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46191885, 46241885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(691, '2025-11-20 16:14:47', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46241885, 46291885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(692, '2025-11-20 16:15:27', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46291885, 46341885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(693, '2025-11-20 16:21:50', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46341885, 46391885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(694, '2025-11-20 16:23:19', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46391885, 46441885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(695, '2025-11-20 16:23:59', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46441885, 46491885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(696, '2025-11-20 16:24:55', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46491885, 46541885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(697, '2025-11-20 16:25:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46541885, 46591885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(698, '2025-11-20 16:29:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46591885, 46641885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(699, '2025-11-20 16:32:15', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46641885, 46691885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(700, '2025-11-20 16:33:32', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46691885, 46741885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(701, '2025-11-20 16:34:26', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46741885, 46791885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, ''),
(702, '2025-11-20 16:35:30', 4, 50000, NULL, '', 'VENTAS', 1, '2025-11-20', 46791885, 46841885, 'CHICKENDEN', 'EFECTIVO', 50000, 0, NULL, 0, '');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cajas`
--

CREATE TABLE `cajas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `caja` varchar(25) NOT NULL DEFAULT '',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `cajas`
--

INSERT INTO `cajas` (`id`, `caja`, `cc`, `pv`) VALUES
(1, '1', 1, 'CHICKENDEN'),
(2, '1', 2, 'CHICKENDEN');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `calendario`
--

CREATE TABLE `calendario` (
  `id` int(11) NOT NULL,
  `descripcion` varchar(200) DEFAULT NULL,
  `titulo` varchar(200) DEFAULT NULL,
  `start` datetime DEFAULT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `end` datetime DEFAULT NULL,
  `profesional` varchar(100) DEFAULT NULL,
  `estado` varchar(25) DEFAULT 'PENDIENTE'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cambios`
--

CREATE TABLE `cambios` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `bruto` double DEFAULT '0',
  `estadoimpresion` int(1) DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int(1) DEFAULT '0',
  `idfactura` int(11) DEFAULT NULL,
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int(2) NOT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `mediodepago` varchar(25) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int(11) DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `tipo` varchar(25) DEFAULT NULL,
  `despachado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `entregado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `enespera` int(1) NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int(6) NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int(2) NOT NULL DEFAULT '0',
  `numlinea` int(2) NOT NULL DEFAULT '0',
  `esmodif` int(1) NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int(1) NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int(1) DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `domicilio` int(11) DEFAULT '0',
  `enviaraproduccion` int(1) DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL,
  `consecutivo` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `cambios`
--

INSERT INTO `cambios` (`id`, `bruto`, `estadoimpresion`, `identificador`, `referenciapayu`, `referenciafront`, `descripcion`, `pagarcontraentrega`, `idfactura`, `descuento`, `codsituacion`, `idcliente`, `idarticulo`, `cc`, `origen`, `mediodepago`, `observaciones`, `valorunitario`, `cantidad`, `valortotal`, `fecha`, `fechacreacion`, `fechaentregado`, `idusuario`, `costomedio`, `porcentajeiva`, `idvendedor`, `idcaja`, `tipo`, `despachado`, `entregado`, `enespera`, `comision`, `porcentajedescuento`, `impuesto`, `base`, `servicio`, `CODMODIF`, `numlinea`, `esmodif`, `situacioncocina`, `CODARTICULOABAJO`, `COD_SATELITE`, `unidaddemedida`, `impreso`, `unidadesdemedida`, `domicilio`, `enviaraproduccion`, `pv`, `afectacaja`, `referencia`, `consecutivo`) VALUES
(1, 0, 0, NULL, NULL, NULL, NULL, 0, 3863, 0, 0, 1, 0, 2, NULL, 'NO APLICA', 'tenia el cuello roto', 0, 0, 0, '2023-03-17 13:32:35', '2023-03-17 13:32:35', '2023-03-17 13:32:35', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 1),
(2, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 09:37:39', '2023-03-30 09:37:39', '2023-03-30 09:37:39', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 3),
(3, 0, 0, NULL, NULL, NULL, NULL, 0, 3908, 0, 0, 1, 0, 2, NULL, 'EFECTIVO', '\nSe crea factura N. FV80 por valor de 100,000', 0, 0, 0, '2023-03-30 10:25:17', '2023-03-30 10:25:17', '2023-03-30 10:25:17', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 4),
(4, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:26:13', '2023-03-30 10:26:13', '2023-03-30 10:26:13', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 5),
(5, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:28:16', '2023-03-30 10:28:16', '2023-03-30 10:28:16', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 6),
(6, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:29:15', '2023-03-30 10:29:15', '2023-03-30 10:29:15', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 7),
(7, 0, 0, NULL, NULL, NULL, NULL, 0, 3908, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:30:24', '2023-03-30 10:30:24', '2023-03-30 10:30:24', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 8),
(8, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:31:37', '2023-03-30 10:31:37', '2023-03-30 10:31:37', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 9),
(9, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:32:27', '2023-03-30 10:32:27', '2023-03-30 10:32:27', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 10),
(10, 0, 0, NULL, NULL, NULL, NULL, 0, 3907, 0, 0, 1, 0, 2, NULL, 'NO APLICA', '', 0, 0, 0, '2023-03-30 10:48:51', '2023-03-30 10:48:51', '2023-03-30 10:48:51', 5, 0, 0, 1, 1, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL, 11);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cambiosauxiliar`
--

CREATE TABLE `cambiosauxiliar` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `bruto` double DEFAULT '0',
  `estadoimpresion` int(1) DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `iva` double DEFAULT '0',
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int(1) DEFAULT '0',
  `idfactura` int(11) DEFAULT NULL,
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int(2) NOT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int(11) DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `entregado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `enespera` int(1) NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int(6) NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int(2) NOT NULL DEFAULT '0',
  `numlinea` int(2) NOT NULL DEFAULT '0',
  `esmodif` int(1) NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int(1) NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int(1) DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `domicilio` int(11) DEFAULT '0',
  `enviaraproduccion` int(1) DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `cambiosauxiliar`
--

INSERT INTO `cambiosauxiliar` (`id`, `bruto`, `estadoimpresion`, `identificador`, `referenciapayu`, `iva`, `descripcion`, `pagarcontraentrega`, `idfactura`, `descuento`, `codsituacion`, `idcliente`, `idarticulo`, `cc`, `origen`, `comentario`, `observaciones`, `valorunitario`, `cantidad`, `valortotal`, `fecha`, `fechacreacion`, `fechaentregado`, `idusuario`, `costomedio`, `porcentajeiva`, `idvendedor`, `idcaja`, `nota`, `observacion`, `despachado`, `entregado`, `enespera`, `comision`, `porcentajedescuento`, `impuesto`, `base`, `servicio`, `CODMODIF`, `numlinea`, `esmodif`, `situacioncocina`, `CODARTICULOABAJO`, `COD_SATELITE`, `unidaddemedida`, `impreso`, `unidadesdemedida`, `domicilio`, `enviaraproduccion`, `pv`, `afectacaja`, `referencia`) VALUES
(4, 0, 0, NULL, NULL, 37.03703703703704, ' AZUCAR-insumo', 0, 3901, 0, 0, 1, 559, 2, 'INTERCAMBIOS', NULL, NULL, 500, 1, 500, '2023-03-29 03:48:25', '2023-03-29 03:48:25', '2023-03-29 03:48:25', 5, 0.023, 8, 1, 1, '', '', 0, 0, 0, 0, 0, 0, 462.962962962963, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, '545645156');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cambiosrecibidoauxiliar`
--

CREATE TABLE `cambiosrecibidoauxiliar` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `bruto` double DEFAULT '0',
  `estadoimpresion` int(1) DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int(1) DEFAULT '0',
  `idfactura` int(11) DEFAULT NULL,
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int(2) NOT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int(11) DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `tipo` varchar(25) DEFAULT NULL,
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `entregado` int(1) NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `enespera` int(1) NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int(6) NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int(2) NOT NULL DEFAULT '0',
  `numlinea` int(2) NOT NULL DEFAULT '0',
  `esmodif` int(1) NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int(1) NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int(1) DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `domicilio` int(11) DEFAULT '0',
  `enviaraproduccion` int(1) DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `afectacaja` int(1) DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `cambiosrecibidoauxiliar`
--

INSERT INTO `cambiosrecibidoauxiliar` (`id`, `bruto`, `estadoimpresion`, `identificador`, `referenciapayu`, `referenciafront`, `descripcion`, `pagarcontraentrega`, `idfactura`, `descuento`, `codsituacion`, `idcliente`, `idarticulo`, `cc`, `origen`, `comentario`, `observaciones`, `valorunitario`, `cantidad`, `valortotal`, `fecha`, `fechacreacion`, `fechaentregado`, `idusuario`, `costomedio`, `porcentajeiva`, `idvendedor`, `idcaja`, `tipo`, `observacion`, `despachado`, `entregado`, `enespera`, `comision`, `porcentajedescuento`, `impuesto`, `base`, `servicio`, `CODMODIF`, `numlinea`, `esmodif`, `situacioncocina`, `CODARTICULOABAJO`, `COD_SATELITE`, `unidaddemedida`, `impreso`, `unidadesdemedida`, `domicilio`, `enviaraproduccion`, `pv`, `afectacaja`, `referencia`) VALUES
(9, 24900, 0, NULL, NULL, NULL, 'MEDIA PICADA', 0, 3901, 0, 0, 1, 682, 2, NULL, NULL, NULL, 24900, 1, 24900, '2023-03-29 03:48:02', '2023-03-29 03:48:02', '2023-03-29 03:48:02', 5, 0, 0, 1, 1, 'mismovalor', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, NULL, 0, NULL, 0, 0, 'CHICKENDEN', 1, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cargos`
--

CREATE TABLE `cargos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `cargo` varchar(120) NOT NULL DEFAULT '',
  `cc` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'CHICKENDEN'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `causaciones`
--

CREATE TABLE `causaciones` (
  `id` bigint(20) NOT NULL,
  `valor` int(11) DEFAULT '0',
  `idcliente` int(11) DEFAULT NULL,
  `tipo` varchar(15) DEFAULT 'PAGO',
  `estado` varchar(25) DEFAULT 'ACTIVO',
  `idpadre3` varchar(25) DEFAULT NULL,
  `fecha` date DEFAULT NULL,
  `fechacreacion` datetime DEFAULT CURRENT_TIMESTAMP,
  `fecharecibido4` date DEFAULT NULL,
  `devolucionreportada` bit(1) DEFAULT b'0',
  `fecharecibido7` datetime DEFAULT NULL,
  `fecharecibido10` datetime DEFAULT NULL,
  `fechaeliminado` datetime DEFAULT NULL,
  `usuarioelimina` varchar(150) DEFAULT NULL,
  `idfactura` int(7) DEFAULT '0',
  `idpadre` int(7) DEFAULT '0',
  `cliente` varchar(25) DEFAULT NULL,
  `padre` varchar(25) DEFAULT NULL,
  `idmayornomina` int(8) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `centrosdecostos`
--

CREATE TABLE `centrosdecostos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `refrescarcache` int(11) DEFAULT '0',
  `debepagarel` int(2) DEFAULT '0',
  `direccion` varchar(120) NOT NULL DEFAULT ' ',
  `titulotirilla` varchar(50) DEFAULT NULL,
  `pagoefectivo` int(1) DEFAULT '0',
  `cuenta_costodeventa` int(8) DEFAULT NULL,
  `type_regime_id` int(11) DEFAULT '0',
  `ultimomespagado` int(2) DEFAULT '0',
  `telefono` varchar(20) NOT NULL DEFAULT ' ',
  `nit` varchar(20) NOT NULL DEFAULT ' ',
  `centrodecostos` varchar(100) NOT NULL DEFAULT 'ALIMENTOS DOGGY',
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `representante` varchar(100) NOT NULL DEFAULT ' ',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idresolucion` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `email` varchar(100) DEFAULT '',
  `regimen` varchar(45) DEFAULT NULL,
  `comentariotirilla` text,
  `convertirpedidoenfactura` int(11) DEFAULT '0',
  `numero` varchar(40) DEFAULT '',
  `prefijo` varchar(5) DEFAULT NULL,
  `razonsocialcomanda` varchar(100) DEFAULT NULL,
  `mostrariva` int(1) NOT NULL DEFAULT '0',
  `contacto` varchar(200) DEFAULT NULL,
  `telefonocontacto` varchar(25) DEFAULT NULL,
  `cuenta_ingreso` int(8) DEFAULT NULL,
  `modulocontable` bit(1) DEFAULT b'0',
  `impresionfichaderegistro` varchar(7) DEFAULT 'TIRILLA',
  `cuenta_inventario` int(8) DEFAULT NULL,
  `alerta2` varchar(100) DEFAULT NULL,
  `desde` int(11) DEFAULT NULL,
  `hasta` int(11) DEFAULT NULL,
  `porcentajeservicio` int(2) DEFAULT '10',
  `lineaimpuestos` varchar(4) DEFAULT '12',
  `fecharesolucion` date DEFAULT NULL,
  `fechainicioresolucion` date DEFAULT NULL,
  `fechafinresolucion` date DEFAULT NULL,
  `codigodepartamento` varchar(2) DEFAULT NULL,
  `codigomunicipio` varchar(5) DEFAULT NULL,
  `ciudad` varchar(25) DEFAULT NULL,
  `departamento` varchar(25) DEFAULT NULL,
  `id_tipo_persona` int(1) DEFAULT '2',
  `tipo_identificacion` varchar(3) DEFAULT 'NIT',
  `endpoint_taxxa` varchar(200) DEFAULT 'https://demo1.taxxa.co/api.djson',
  `prefijonc` varchar(2) DEFAULT NULL,
  `token_taxxa` varchar(150) DEFAULT NULL,
  `usuarioTaxxa` varchar(150) DEFAULT NULL,
  `claveTaxxa` varchar(15) DEFAULT NULL,
  `prefijofe` varchar(5) DEFAULT NULL,
  `puedeusar` int(1) DEFAULT '0',
  `descuento` double DEFAULT '0',
  `descuentodeldia` int(11) DEFAULT '0',
  `alerta` varchar(150) DEFAULT NULL,
  `hastafe` int(11) DEFAULT '0',
  `fechahastafe` date DEFAULT NULL,
  `satelitecallcenter` varchar(25) DEFAULT 'SELECCIONE',
  `tituloimpuestos` varchar(50) DEFAULT 'DETALLE IMPOCONSUMO',
  `nombreimpuesto` varchar(50) DEFAULT 'IMPOCONSUMO',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonapostal` varchar(6) DEFAULT NULL,
  `prefijodocequivalente` varchar(5) DEFAULT NULL,
  `responsabilidades` varchar(10) DEFAULT NULL,
  `tipo_persona` varchar(7) DEFAULT 'company',
  `resdianfe` varchar(25) DEFAULT NULL,
  `desdefe` int(11) DEFAULT '0',
  `fechafe` date DEFAULT NULL,
  `cuenta_devolucion` int(8) DEFAULT NULL,
  `comosemideeltiempo` int(1) DEFAULT '0',
  `minutosdescanso` int(3) DEFAULT '0',
  `tiendaonline` bit(1) DEFAULT b'1',
  `cuenta_cxp` int(8) DEFAULT NULL,
  `vence_firmadigital` date DEFAULT NULL,
  `ultimocobro` datetime DEFAULT NULL,
  `fechaproximopago` date DEFAULT NULL,
  `telegram_vendedor` varchar(25) DEFAULT NULL,
  `calculodeservicio` varchar(5) DEFAULT 'total',
  `textowsp` varchar(100) DEFAULT NULL,
  `wsp` varchar(100) DEFAULT NULL,
  `visitastv` int(6) DEFAULT '0',
  `calculodescuento` varchar(5) DEFAULT 'total',
  `mostrarcategorias` varchar(2) DEFAULT 'SI',
  `calculodelcosto` varchar(5) DEFAULT 'total',
  `mostrarpventv` varchar(2) DEFAULT 'SI',
  `urlinstagram` varchar(200) DEFAULT NULL,
  `urlfacebook` varchar(200) DEFAULT NULL,
  `urltiktok` varchar(200) DEFAULT NULL,
  `titulocabecera` varchar(100) DEFAULT '',
  `piedepaginafe` varchar(500) DEFAULT NULL,
  `lunes` bit(1) DEFAULT b'1',
  `martes` bit(1) DEFAULT b'1',
  `miercoles` bit(1) DEFAULT b'1',
  `jueves` bit(1) DEFAULT b'1',
  `viernes` bit(1) DEFAULT b'1',
  `sabado` bit(1) DEFAULT b'1',
  `domingo` bit(1) DEFAULT b'1',
  `inilunes` time DEFAULT '08:00:00',
  `inimartes` time DEFAULT '08:00:00',
  `inimiercoles` time DEFAULT '08:00:00',
  `inijueves` time DEFAULT '08:00:00',
  `iniviernes` time DEFAULT '08:00:00',
  `inisabado` time DEFAULT '08:00:00',
  `inidomingo` time DEFAULT '08:00:00',
  `finlunes` time DEFAULT '23:00:00',
  `finmartes` time DEFAULT '23:00:00',
  `finmiercoles` time DEFAULT '23:00:00',
  `finjueves` time DEFAULT '23:00:00',
  `finviernes` time DEFAULT '23:00:00',
  `finsabado` time DEFAULT '23:00:00',
  `findomingo` time DEFAULT '23:00:00',
  `inilunes2` time DEFAULT '08:00:00',
  `finlunes2` time DEFAULT '08:00:00',
  `inimartes2` time DEFAULT '08:00:00',
  `finmartes2` time DEFAULT '08:00:00',
  `inimiercoles2` time DEFAULT '08:00:00',
  `finmiercoles2` time DEFAULT '08:00:00',
  `inijueves2` time DEFAULT '08:00:00',
  `finjueves2` time DEFAULT '08:00:00',
  `iniviernes2` time DEFAULT '08:00:00',
  `finviernes2` time DEFAULT '08:00:00',
  `inisabado2` time DEFAULT '08:00:00',
  `finsabado2` time DEFAULT '08:00:00',
  `inidomingo2` time DEFAULT '08:00:00',
  `findomingo2` time DEFAULT '08:00:00',
  `porcentajeips` int(11) DEFAULT '0',
  `activarporcentajeips` int(11) DEFAULT '0',
  `fechafinfe` date DEFAULT NULL,
  `resposelectronico` varchar(25) DEFAULT NULL,
  `desdeposelectronico` int(11) DEFAULT '0',
  `hastaposelectronico` int(11) DEFAULT '0',
  `fechaposelectronico` date DEFAULT NULL,
  `fechafinposelectronico` date DEFAULT NULL,
  `prefijope` varchar(4) DEFAULT NULL,
  `fechahastape` date DEFAULT NULL,
  `registromercantil` varchar(25) DEFAULT NULL,
  `digitodeverificacion` int(11) DEFAULT NULL,
  `tokenapidian` varchar(100) DEFAULT NULL,
  `idsoftware` varchar(100) DEFAULT '',
  `pin` varchar(6) DEFAULT NULL,
  `firmadigital` text,
  `clavefirmadigital` varchar(50) DEFAULT NULL,
  `horainicioprocedimientos` time DEFAULT NULL,
  `modulo` int(11) DEFAULT '4',
  `SoftwareID` varchar(80) DEFAULT NULL,
  `clavefirma` varchar(20) DEFAULT NULL,
  `nombrecomercialcc` varchar(50) DEFAULT '',
  `porcentaje_ganancia_en_venta` decimal(5,2) DEFAULT NULL,
  `snotetop` varchar(150) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `centrosdecostos`
--

INSERT INTO `centrosdecostos` (`id`, `refrescarcache`, `debepagarel`, `direccion`, `titulotirilla`, `pagoefectivo`, `cuenta_costodeventa`, `type_regime_id`, `ultimomespagado`, `telefono`, `nit`, `centrodecostos`, `fechacreacion`, `representante`, `idusuario`, `idresolucion`, `email`, `regimen`, `comentariotirilla`, `convertirpedidoenfactura`, `numero`, `prefijo`, `razonsocialcomanda`, `mostrariva`, `contacto`, `telefonocontacto`, `cuenta_ingreso`, `modulocontable`, `impresionfichaderegistro`, `cuenta_inventario`, `alerta2`, `desde`, `hasta`, `porcentajeservicio`, `lineaimpuestos`, `fecharesolucion`, `fechainicioresolucion`, `fechafinresolucion`, `codigodepartamento`, `codigomunicipio`, `ciudad`, `departamento`, `id_tipo_persona`, `tipo_identificacion`, `endpoint_taxxa`, `prefijonc`, `token_taxxa`, `usuarioTaxxa`, `claveTaxxa`, `prefijofe`, `puedeusar`, `descuento`, `descuentodeldia`, `alerta`, `hastafe`, `fechahastafe`, `satelitecallcenter`, `tituloimpuestos`, `nombreimpuesto`, `pv`, `zonapostal`, `prefijodocequivalente`, `responsabilidades`, `tipo_persona`, `resdianfe`, `desdefe`, `fechafe`, `cuenta_devolucion`, `comosemideeltiempo`, `minutosdescanso`, `tiendaonline`, `cuenta_cxp`, `vence_firmadigital`, `ultimocobro`, `fechaproximopago`, `telegram_vendedor`, `calculodeservicio`, `textowsp`, `wsp`, `visitastv`, `calculodescuento`, `mostrarcategorias`, `calculodelcosto`, `mostrarpventv`, `urlinstagram`, `urlfacebook`, `urltiktok`, `titulocabecera`, `piedepaginafe`, `lunes`, `martes`, `miercoles`, `jueves`, `viernes`, `sabado`, `domingo`, `inilunes`, `inimartes`, `inimiercoles`, `inijueves`, `iniviernes`, `inisabado`, `inidomingo`, `finlunes`, `finmartes`, `finmiercoles`, `finjueves`, `finviernes`, `finsabado`, `findomingo`, `inilunes2`, `finlunes2`, `inimartes2`, `finmartes2`, `inimiercoles2`, `finmiercoles2`, `inijueves2`, `finjueves2`, `iniviernes2`, `finviernes2`, `inisabado2`, `finsabado2`, `inidomingo2`, `findomingo2`, `porcentajeips`, `activarporcentajeips`, `fechafinfe`, `resposelectronico`, `desdeposelectronico`, `hastaposelectronico`, `fechaposelectronico`, `fechafinposelectronico`, `prefijope`, `fechahastape`, `registromercantil`, `digitodeverificacion`, `tokenapidian`, `idsoftware`, `pin`, `firmadigital`, `clavefirmadigital`, `horainicioprocedimientos`, `modulo`, `SoftwareID`, `clavefirma`, `nombrecomercialcc`, `porcentaje_ganancia_en_venta`, `snotetop`) VALUES
(2, 0, 32, 'CRA 24 BIS 73-94', 'RECIBO DE CAJA  No Facturador Electronico         ', 0, 0, 49, 2, '3147462033', '1087993621', 'HOTEL MONTANA', '2020-12-24 19:28:24', 'Representante legal - Paula Ramirez', 1, 1, 'hotelmontanapereira@gmail.com', 'NO RESPONSABLE DE IVA', 'Gracias por su estadía, vuelva pronto.', 0, '', '', NULL, 0, NULL, NULL, 0, NULL, NULL, 0, 'Tienes 8 facturas pendientes por tramitar a la Dian', 0, 0, 0, '12', '0000-00-00', '0000-00-00', '0000-00-00', '66', '66001', 'PEREIRA', 'RISARALDA', 2, 'NIT', 'https://taxxaapi.com/api.djson?hotelmontana', '', '722852137382', 'hotelmontanapereira@gmail.com', '340t#7_Zn5', '', 0, 0, 0, '', 0, '0000-00-00', 'SELECCIONE', '', 'SELECCIONE', 'residenciaselrey', '660001', 'ABS', 'R-99-PN', 'person', '', 0, '0000-00-00', 0, 1, 0, b'1', NULL, NULL, '2025-04-29 12:14:45', '2025-12-29', NULL, 'total', NULL, NULL, 1, 'total', 'SI', 'total', '1', NULL, NULL, NULL, '', NULL, b'1', b'1', b'1', b'1', b'1', b'1', b'1', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '23:00:00', '23:00:00', '23:00:00', '23:00:00', '23:00:00', '23:00:00', '23:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', '08:00:00', 0, 0, NULL, '234234234234', 1, 1000, '2024-05-04', '2025-05-04', 'EPOS', '2025-06-06', NULL, 1, NULL, '', NULL, NULL, NULL, NULL, 4, NULL, NULL, '', NULL, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `cierres`
--

