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

START TRANSACTION;



--
-- Base de datos: `wwcont_cafeteria`
--

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_cafeteria`@`%.%.%.%` FUNCTION `bucarnombredeltercero` (`idin` INT(11)) RETURNS VARCHAR(110) CHARSET latin1 SQL SECURITY INVOKER BEGIN DECLARE P varchar(110); SET P=(select if(tipodepersona=2,concat(ifnull(primernombre,''),' ',ifnull(segundonombre,''),' ',ifnull(primerapellido,''),' ',ifnull(segundoapellido,'')),concat(ifnull(razonsocial,''),' ',ifnull(nombrecomercial,''))) from clientes where id=idin); RETURN ifnull(P,'DESCONOCIDO'); END$$

CREATE DEFINER=`nairobi_lapoderosa1`@`%.%.%.%` 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=`nairobi_nissi`@`%.%.%.%` 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=`nairobi_lapoderosa1`@`%.%.%.%` 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) SQL SECURITY INVOKER 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=`nairobi_nissi`@`%.%.%.%` 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_cafeteria`@`%.%.%.%` 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=`nairobi_lapoderosa1`@`%.%.%.%` 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=`root`@`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_cafeteria`@`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_cafeteria`@`vps-435806.controlweb.co` 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=`nairobi_nissi`@`%.%.%.%` 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=`root`@`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_cafeteria`@`%.%.%.%` 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_cafeteria`@`%.%.%.%` 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_cafeteria`@`%.%.%.%` 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_cafeteria`@`%.%.%.%` FUNCTION `buscarseccion` (`idin` INT(11)) RETURNS VARCHAR(25) CHARSET latin1 SQL SECURITY INVOKER BEGIN
DECLARE a varchar(25);
set a=(select ifnull(secciones.seccion,'DESCONOCIDO') from articulos,secciones where articulos.id=idin and idseccion=secciones.id);
return ifnull(a,'DESCONOCIDO');
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_cafeteria`@`%.%.%.%` 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=`nairobi_planchaarepa`@`%.%.%.%` 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=`root`@`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=`root`@`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=`wwcont_cafeteria`@`%.%.%.%` 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=`wwcont_cafeteria`@`%.%.%.%` 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_cafeteria`@`%.%.%.%` 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_cafeteria`@`%.%.%.%` 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=`root`@`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=`wwcont_cafeteria`@`%.%.%.%` 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=`wwcont_pruebas`@`vps-435806.controlweb.co` 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=`wwcont_pruebas`@`%.%.%.%` 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` 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 'lapoderosa1',
  `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 'lapoderosa1',
  `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 'lapoderosa1',
  `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 'lapoderosa1',
  `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 'lapoderosa1',
  `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` 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 'lapoderosa1',
  `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;

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

--
-- 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 'lapoderosa1',
  `idgasto` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- 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 'lapoderosa1'
) 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 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- 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` double NOT NULL DEFAULT '0',
  `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',
  `venderaceropesos` 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 'lapoderosa1',
  `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,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `idifood` varchar(50) DEFAULT NULL,
  `valordeventaregular` int(11) DEFAULT '0',
  `cantidad2` int(3) 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` decimal(5,2) DEFAULT NULL,
  `porcentajeutilidad2` decimal(5,2) DEFAULT NULL,
  `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',
  `fecha_vence_articulos` date DEFAULT NULL,
  `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`, `venderaceropesos`, `secompra`, `marca`, `talla`, `referenciacruzada`, `pv`, `COD_SATELITE_ARTICULO`, `fabricante`, `modelo`, `serial`, `usuarioedita`, `ultimaedicion`, `situacioncocina2`, `idifood`, `valordeventaregular`, `cantidad2`, `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`, `fecha_vence_articulos`, `referencia2`, `compromisoactual`) VALUES
(7, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'cortado', '', '', '', 'CAJA', 'cortado', '', 'SELECCIONE', 1.4, -243, 0, '2025-08-12 17:39:13', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:39:13', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(9, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'cafe con leche', '', '', '', 'CAJA', 'cafe con leche', '', 'SELECCIONE', 1.6, -915, 0, '2025-08-12 17:44:06', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:44:06', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(11, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'americano', '', '', '', 'CAJA', 'americano', '', 'SELECCIONE', 1.8, -156, 0, '2025-08-12 17:45:12', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:45:12', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(12, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'carajillos licor', '', '', '', 'CAJA', 'carajillos licor', '', 'SELECCIONE', 1.8, -10, 0, '2025-08-12 17:46:32', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:46:32', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(15, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'carajillos whisky', '', '', '', 'CAJA', 'carajillos whisky', '', 'SELECCIONE', 2, -4, 0, '2025-08-12 17:49:36', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:49:36', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(16, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'carajillos baileys', '', '', '', 'CAJA', 'carajillos baileys', '', 'SELECCIONE', 2, -34, 0, '2025-08-12 17:50:44', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:50:44', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(21, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'expreso', '', '', '', 'CAJA', 'expreso', '', 'SELECCIONE', 1.3, -166, 0, '2025-08-12 17:59:50', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 10:59:50', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(30, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'papas aborrajadas', '', '', '', 'CAJA', 'papas aborrajadas', '', 'SELECCIONE', 2.2, 0, 0, '2025-08-12 18:08:31', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:08:31', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(31, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'papa rellena', '', '', '', 'CAJA', 'papa rellena', '', 'SELECCIONE', 3.5, -60, 0, '2025-08-12 18:10:50', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:10:50', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(32, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'empanada', '', '', '', 'CAJA', 'empanada', '', 'SELECCIONE', 2.5, -642, 0, '2025-08-12 18:11:56', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:11:56', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(33, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'aborrajados', '', '', '', 'CAJA', 'aborrajados', '', 'SELECCIONE', 3, -2, 0, '2025-08-12 18:12:57', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:12:57', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(35, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'jamon york', '', '', '', 'CAJA', 'jamon york', '', 'SELECCIONE', 2.5, 0, 0, '2025-08-12 18:14:37', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:14:37', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(36, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'jamon serrano', '', '', '', 'CAJA', 'jamon serrano', '', 'SELECCIONE', 4, -25, 0, '2025-08-12 18:15:22', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:15:22', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(37, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'queso', '', '', '', 'CAJA', 'queso', '', 'SELECCIONE', 3.5, -2, 0, '2025-08-12 18:16:31', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:16:31', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(38, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'jamon y queso', '', '', '', 'CAJA', 'jamon y queso', '', 'SELECCIONE', 4, -13, 0, '2025-08-12 18:18:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:18:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(39, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'sobreasada', '', '', '', 'CAJA', 'sobreasada', '', 'SELECCIONE', 3.5, -5, 0, '2025-08-12 18:19:01', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:19:01', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(40, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'chorizo', '', '', '', 'CAJA', 'chorizo', '', 'SELECCIONE', 3.5, -15, 0, '2025-08-12 18:19:58', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:19:58', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(41, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'fuet', '', '', '', 'CAJA', 'fuet', '', 'SELECCIONE', 3.5, -19, 0, '2025-08-12 18:20:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:20:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(42, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'bikini', '', '', '', 'CAJA', 'bikini', '', 'SELECCIONE', 2.8, -1, 0, '2025-08-12 18:21:21', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:21:21', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(43, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:22:13', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:22:13', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(44, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'cafe con hielo', '', '', '', 'CAJA', 'cafe con hielo', '', 'SELECCIONE', 1.4, -51, 0, '2025-08-12 18:23:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:23:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(45, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'cafe especial', '', '', '', 'CAJA', 'cafe especial', '', 'SELECCIONE', 1.8, -23, 0, '2025-08-12 18:24:41', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:24:41', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(46, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:25:38', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:25:38', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(47, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'a chorizo', '', '', '', 'CAJA', 'a chorizo', '', 'SELECCIONE', 4.1, -72, 0, '2025-08-12 18:26:33', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:26:33', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(48, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'arepa con queso', '', '', '', 'CAJA', 'arepa con queso', '', 'SELECCIONE', 3.8, -51, 0, '2025-08-12 18:27:50', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:27:50', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(49, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:29:14', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:29:14', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(50, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'refrescos', '', '', '', 'CAJA', 'refrescos', '', 'SELECCIONE', 2, -203, 0, '2025-08-12 18:29:34', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:29:34', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(51, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'cacaolat', '', '', '', 'CAJA', 'cacaolat', '', 'SELECCIONE', 2, -38, 0, '2025-08-12 18:31:41', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:31:41', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(52, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'red bull', '', '', '', 'CAJA', 'red bull', '', 'SELECCIONE', 2.4, -1, 0, '2025-08-12 18:32:40', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:32:40', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(53, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'vichy', '', '', '', 'CAJA', 'vichy', '', 'SELECCIONE', 2, -19, 0, '2025-08-12 18:33:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:33:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(54, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:34:26', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:34:26', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(55, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:34:45', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:34:45', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(56, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'tonica', '', '', '', 'CAJA', 'tonica', '', 'SELECCIONE', 2, -14, 0, '2025-08-12 18:35:40', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:35:40', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(57, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'agua 500ml', '', '', '', 'CAJA', 'agua 500ml', '', 'SELECCIONE', 1, -34, 0, '2025-08-12 18:36:28', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:36:28', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(58, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'postobon', '', '', '', 'CAJA', 'postobon', '', 'SELECCIONE', 2.7, -72, 0, '2025-08-12 18:38:22', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:38:22', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(59, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'pony malta', '', '', '', 'CAJA', 'pony malta', '', 'SELECCIONE', 2.8, -263, 0, '2025-08-12 18:39:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:39:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(60, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'zumo melocoton', '', '', '', 'CAJA', 'zumo melocoton', '', 'SELECCIONE', 2, -19, 0, '2025-08-12 18:40:27', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:40:27', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(61, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'zumo naranja', '', '', '', 'CAJA', 'zumo naranja', '', 'SELECCIONE', 1.8, -38, 0, '2025-08-12 18:42:10', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:42:10', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(62, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'hit', '', '', '', 'CAJA', 'hit', '', 'SELECCIONE', 2.5, -71, 0, '2025-08-12 18:43:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:43:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(63, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:44:37', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:44:37', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(64, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:45:53', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:45:53', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(65, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:46:29', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:46:29', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(66, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 18:46:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:46:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(67, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'platanitos', '', '', '', 'CAJA', 'platanitos', '', 'SELECCIONE', 1.7, -18, 0, '2025-08-12 18:48:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:48:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(68, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'choclitos', '', '', '', 'CAJA', 'choclitos', '', 'SELECCIONE', 1, -3, 0, '2025-08-12 18:50:32', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:50:32', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(69, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'bombom coco', '', '', '', 'CAJA', 'bombom coco', '', 'SELECCIONE', 0.5, -12, 0, '2025-08-12 18:54:40', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:54:40', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(70, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'bocadillo', '', '', '', 'CAJA', 'bocadillo', '', 'SELECCIONE', 0.5, -14, 0, '2025-08-12 18:55:54', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 11:55:54', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(71, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'ducales', '', '', '', 'CAJA', 'ducales', '', 'SELECCIONE', 2.5, -19, 0, '2025-08-12 19:01:35', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:01:35', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(72, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'festival', '', '', '', 'CAJA', 'festival', '', 'SELECCIONE', 0.7, -13, 0, '2025-08-12 19:03:06', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:03:06', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(73, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 19:04:46', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:04:46', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(74, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'magnum', '', '', '', 'CAJA', 'magnum', '', 'SELECCIONE', 2.5, 0, 0, '2025-08-12 19:06:43', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:06:43', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(75, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'corneto', '', '', '', 'CAJA', 'corneto', '', 'SELECCIONE', 2.5, -2, 0, '2025-08-12 19:07:48', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:07:48', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(76, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'corneto pequeño', '', '', '', 'CAJA', 'corneto pequeño', '', 'SELECCIONE', 1.5, 0, 0, '2025-08-12 19:08:50', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:08:50', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(77, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'filipinos', '', '', '', 'CAJA', 'filipinos', '', 'SELECCIONE', 2.5, 0, 0, '2025-08-12 19:09:42', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:09:42', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(78, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'sandwichs', '', '', '', 'CAJA', 'sandwichs', '', 'SELECCIONE', 1.5, 0, 0, '2025-08-12 19:10:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:10:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(79, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'frigo', '', '', '', 'CAJA', 'frigo', '', 'SELECCIONE', 1.7, 0, 0, '2025-08-12 19:11:47', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:11:47', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(80, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'twister', '', '', '', 'CAJA', 'twister', '', 'SELECCIONE', 1.7, -2, 0, '2025-08-12 19:12:29', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:12:29', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(81, 1, b'1', 0, 1, 17, 'GENERAL', 0, 'calipo', '', '', '', 'CAJA', 'calipo', '', 'SELECCIONE', 1.7, 0, 0, '2025-08-12 19:13:15', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:13:15', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(82, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 19:13:54', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:13:54', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(83, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 19:14:41', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:14:41', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(85, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan abuela', '', '', '', 'CAJA', 'pan abuela', '', 'SELECCIONE', 5, -243, 0, '2025-08-12 19:21:41', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:21:41', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0);
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`, `venderaceropesos`, `secompra`, `marca`, `talla`, `referenciacruzada`, `pv`, `COD_SATELITE_ARTICULO`, `fabricante`, `modelo`, `serial`, `usuarioedita`, `ultimaedicion`, `situacioncocina2`, `idifood`, `valordeventaregular`, `cantidad2`, `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`, `fecha_vence_articulos`, `referencia2`, `compromisoactual`) VALUES
(86, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pionono', '', '', '', 'CAJA', 'pionono', '', 'SELECCIONE', 2, -122, 0, '2025-08-12 19:23:38', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:23:38', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(87, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'galletas', '', '', '', 'CAJA', 'galletas', '', 'SELECCIONE', 0.7, -70, 0, '2025-08-12 19:24:16', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:24:16', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(88, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pandebono', '', '', '', 'CAJA', 'pandebono', '', 'SELECCIONE', 1, -1509, 0, '2025-08-12 19:24:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:24:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(89, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'almohabana', '', '', '', 'CAJA', 'almohabana', '', 'SELECCIONE', 1.5, -719, 0, '2025-08-12 19:25:32', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:25:32', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(90, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'buñuelo', '', '', '', 'CAJA', 'buñuelo', '', 'SELECCIONE', 1.2, -1292, 0, '2025-08-12 19:26:11', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:26:11', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(91, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 19:26:48', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:26:48', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(92, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'empanada de cambray', '', '', '', 'CAJA', 'empanada de cambray', '', 'SELECCIONE', 1, -119, 0, '2025-08-12 19:29:34', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:29:34', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(93, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan hawaiano', '', '', '', 'CAJA', 'pan hawaiano', '', 'SELECCIONE', 2, -79, 0, '2025-08-12 19:30:43', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:30:43', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(94, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'roscon', '', '', '', 'CAJA', 'roscon', '', 'SELECCIONE', 2.2, -37, 0, '2025-08-12 19:32:16', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:32:16', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(95, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'chicharrones', '', '', '', 'CAJA', 'chicharrones', '', 'SELECCIONE', 2, -127, 0, '2025-08-12 19:33:14', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:33:14', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(96, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pastelito de crema', '', '', '', 'CAJA', 'pastelito de crema', '', 'SELECCIONE', 0.7, 0, 0, '2025-08-12 19:34:06', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:34:06', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(97, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'napolitana de chocol', '', '', '', 'CAJA', 'napolitana de chocolate', '', 'SELECCIONE', 1.2, -1, 0, '2025-08-12 19:35:12', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:35:12', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(98, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'magdalena', '', '', '', 'CAJA', 'magdalena', '', 'SELECCIONE', 1.5, -13, 0, '2025-08-12 19:36:24', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:36:24', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(99, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'croissant', '', '', '', 'CAJA', 'croissant', '', 'SELECCIONE', 0.9, -266, 0, '2025-08-12 19:37:15', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:37:15', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(100, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'lengua', '', '', '', 'CAJA', 'lengua', '', 'SELECCIONE', 0.5, -20, 0, '2025-08-12 19:38:26', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:38:26', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(101, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'bomba', '', '', '', 'CAJA', 'bomba', '', 'SELECCIONE', 2, -19, 0, '2025-08-12 19:38:59', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:38:59', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(102, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan de guayaba', '', '', '', 'CAJA', 'pan de guayaba', '', 'SELECCIONE', 1.7, -13, 0, '2025-08-12 19:39:50', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:39:50', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(103, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'achira', '', '', '', 'CAJA', 'achira', '', 'SELECCIONE', 0.5, -4, 0, '2025-08-12 19:40:42', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:40:42', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(104, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-12 19:41:25', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-12 12:41:25', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(106, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-13 11:35:32', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 04:35:32', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(107, 1, b'1', 0, 1, 22, 'GENERAL', 0, 'jugo en leche', '', '', '', 'CAJA', 'jugo en leche', '', 'SELECCIONE', 5.5, 0, 0, '2025-08-13 11:38:24', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 04:38:24', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(108, 1, b'1', 0, 1, 22, 'GENERAL', 0, 'jarra en agua', '', '', '', 'CAJA', 'jarra en agua', '', 'SELECCIONE', 0, 0, 0, '2025-08-13 11:39:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 04:39:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(109, 1, b'1', 0, 1, 22, 'GENERAL', 0, 'jarra en leche', '', '', '', 'CAJA', 'jarra en leche', '', 'SELECCIONE', 0, 0, 0, '2025-08-13 11:41:30', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 04:41:30', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(110, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-13 11:42:02', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 04:42:02', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(111, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-13 12:08:12', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 05:08:12', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(112, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'milo', '', '', '', 'CAJA', 'milo', '', 'SELECCIONE', 4.5, -53, 0, '2025-08-13 12:08:33', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 05:08:33', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(113, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-13 12:09:17', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 05:09:17', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(114, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', 'EN ESPERA', ' ', 'SELECCIONE', 0, 0, 0, '2025-08-13 07:22:42', ' ', 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 07:22:42', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(115, 1, b'1', 0, 1, 14, 'GENERAL', 0, 'mediana', '', '', '', 'CAJA', 'CERVEZA', '', 'SELECCIONE', 2.2, -385, 0, '2025-08-13 19:28:36', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 12:28:36', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(116, 1, b'1', 0, 1, 16, 'GENERAL', 0, 'chupito', '', '', '', 'CAJA', 'chupito', '', 'SELECCIONE', 2, -54, 0, '2025-08-13 21:05:47', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-13 14:05:47', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(117, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'quesadilla', '', '', '', 'CAJA', 'quesadilla', '', 'SELECCIONE', 2, -64, 0, '2025-08-14 09:20:58', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-14 02:20:58', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(118, 1, b'1', 0, 1, 14, 'GENERAL', 0, 'quinto', '', '', '', 'CAJA', 'quinto', '', 'SELECCIONE', 1.6, -100, 0, '2025-08-14 12:24:37', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-14 05:24:37', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(119, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'mini croisan', '', '', '', 'CAJA', 'mini croisan', '', 'SELECCIONE', 0.2, -50, 0, '2025-08-14 12:48:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-14 05:48:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(120, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-14 12:52:06', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-14 05:52:06', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(121, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-15 18:12:57', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-15 11:12:57', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(122, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'herradura', '', '', '', 'CAJA', 'herradura', '', 'SELECCIONE', 2.5, -11, 0, '2025-08-15 18:14:53', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-15 11:14:53', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(123, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'borracho', '', '', '', 'CAJA', 'borracho', '', 'SELECCIONE', 1, -42, 0, '2025-08-15 19:59:18', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-15 12:59:18', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(124, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'bonbon', '', '', '', 'CAJA', 'bonbon', '', 'SELECCIONE', 0.5, -28, 0, '2025-08-15 20:01:10', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-15 13:01:10', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(126, 1, b'1', 0, 1, 22, 'GENERAL', 0, 'jugos naturales agua', '', '', '', 'CAJA', 'jugos naturales agua', '', 'SELECCIONE', 4, 0, 0, '2025-08-16 09:27:40', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-16 02:27:40', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(127, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'tostadas aceite toma', '', '', '', 'CAJA', 'tostadas aceite tomate', '', 'SELECCIONE', 1.2, -14, 0, '2025-08-16 12:00:41', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-16 05:00:41', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(128, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-16 13:03:30', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-16 06:03:30', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(129, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'jugo agua', '', '', '', 'CAJA', 'jugo agua', '', 'SELECCIONE', 4, -41, 0, '2025-08-16 13:52:47', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-16 06:52:47', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(130, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'jugo leche', '', '', '', 'CAJA', 'jugo leche', '', 'SELECCIONE', 5, -77, 0, '2025-08-16 13:53:56', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-16 06:53:56', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(131, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'jarra de jugo leche', '', '', '', 'CAJA', 'jarra de jugo leche', '', 'SELECCIONE', 11, -3, 0, '2025-08-16 20:27:53', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-16 13:27:53', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(132, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan baquette', '', '', '', 'CAJA', 'pan baquette', '', 'SELECCIONE', 0.7, -35, 0, '2025-08-17 08:05:01', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-17 01:05:01', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(133, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'vaso de leche', '', '', '', 'CAJA', 'vaso de leche', '', 'SELECCIONE', 1.5, -12, 0, '2025-08-17 09:53:48', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-17 02:53:48', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(134, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-17 12:38:09', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-17 05:38:09', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(135, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'baguette', '', '', '', 'CAJA', 'baguette', '', 'SELECCIONE', 0.6, -214, 0, '2025-08-17 17:41:08', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-17 10:41:08', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(136, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'tizana', '', '', '', 'CAJA', 'tizana', '', 'SELECCIONE', 1.6, -16, 0, '2025-08-17 20:01:01', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-17 13:01:01', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(137, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan trenza', '', '', '', 'CAJA', 'pan trenza', '', 'SELECCIONE', 2.5, -18, 0, '2025-08-18 09:14:23', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-18 02:14:23', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(138, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan queso', '', '', '', 'CAJA', 'pan queso', '', 'SELECCIONE', 2.5, -9, 0, '2025-08-20 12:35:21', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-20 05:35:21', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(139, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-20 12:37:51', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-20 05:37:51', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(140, 1, b'1', 0, 1, 11, 'GENERAL', 0, 'chocolate colombia', '', '', '', 'CAJA', 'chocolate colombia', '', 'SELECCIONE', 3, -87, 0, '2025-08-21 10:33:52', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-21 03:33:52', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(141, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'tostada mermelada', '', '', '', 'CAJA', 'tostada mermelada', '', 'SELECCIONE', 1.5, -95, 0, '2025-08-21 11:37:11', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-21 04:37:11', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(142, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'agua pequeña', '', '', '', 'CAJA', 'agua pequeña', '', 'SELECCIONE', 0.7, -41, 0, '2025-08-22 10:09:06', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-22 03:09:06', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(143, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'pan abuela bb', '', '', '', 'CAJA', 'pan abuela bb', '', 'SELECCIONE', 3, -4, 0, '2025-08-22 12:17:53', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-22 05:17:53', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(144, 1, b'1', 0, 1, 16, 'GENERAL', 0, 'cubata wisky negro', '', '', '', 'CAJA', 'cubata wisky negro', '', 'SELECCIONE', 8, -8, 0, '2025-08-23 08:00:40', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-23 01:00:40', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(145, 1, b'1', 0, 1, 26, 'GENERAL', 0, 'croissant cafe', '', '', '', 'CAJA', 'croissant cafe', '', 'SELECCIONE', 2.2, -140, 0, '2025-08-23 08:51:11', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-23 01:51:11', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(146, 1, b'1', 0, 1, 26, 'GENERAL', 0, 'mini  bocata', '', '', '', 'CAJA', 'mini bocata', '', 'SELECCIONE', 3.5, -25, 0, '2025-08-23 09:27:42', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-23 02:27:42', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(147, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-25 10:19:01', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-25 03:19:01', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(148, 1, b'1', 0, 1, 15, 'GENERAL', 0, 'bocadillo atun', '', '', '', 'CAJA', 'bocadillo atun', '', 'SELECCIONE', 4, -21, 0, '2025-08-25 10:19:05', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-25 03:19:05', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0);
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`, `venderaceropesos`, `secompra`, `marca`, `talla`, `referenciacruzada`, `pv`, `COD_SATELITE_ARTICULO`, `fabricante`, `modelo`, `serial`, `usuarioedita`, `ultimaedicion`, `situacioncocina2`, `idifood`, `valordeventaregular`, `cantidad2`, `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`, `fecha_vence_articulos`, `referencia2`, `compromisoactual`) VALUES
(149, 1, b'1', 0, 1, 26, 'GENERAL', 0, 'bocata gde', '', '', '', 'CAJA', 'bocata gde', '', 'SELECCIONE', 4, -44, 0, '2025-08-25 14:01:22', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-25 07:01:22', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(150, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'agua pq', '', '', '', 'CAJA', 'agua pq', '', 'SELECCIONE', 0.7, -1, 0, '2025-08-27 08:04:11', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-27 01:04:11', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(151, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'perico', '', '', '', 'CAJA', 'perico', '', 'SELECCIONE', 6, -3, 0, '2025-08-28 12:55:51', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-28 05:55:51', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(152, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'arepa sola', '', '', '', 'CAJA', 'arepa sola', '', 'SELECCIONE', 2.5, -7, 0, '2025-08-29 20:56:45', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-29 13:56:45', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(154, 1, b'1', 0, 1, 15, 'GENERAL', 0, '', '', '', '', 'CAJA', 'MINI BOCATA', '', 'SELECCIONE', 3, -22, 0, '2025-08-30 10:36:25', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-30 03:36:25', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(155, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-30 10:37:24', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-30 03:37:24', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(156, 1, b'1', 0, 1, 14, 'GENERAL', 0, 'CAÑA GD', '', '', '', 'CAJA', 'CAÑA GD', '', 'SELECCIONE', 2, -31, 0, '2025-08-30 11:26:49', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-30 04:26:49', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(157, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-30 11:27:50', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-30 04:27:50', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(158, 1, b'1', 0, 1, 16, 'GENERAL', 0, 'CUBATA', '', '', '', 'CAJA', 'CUBATA', '', 'SELECCIONE', 6, -12, 0, '2025-08-30 19:00:06', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-30 12:00:06', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(159, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-08-30 19:20:27', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-08-30 12:20:27', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(160, 1, b'1', 0, 1, 16, 'GENERAL', 0, 'bot guaro', '', '', '', 'CAJA', 'bot guaro', '', 'SELECCIONE', 30, -2, 0, '2025-09-02 21:46:14', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-02 14:46:14', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(161, 1, b'1', 0, 1, 16, 'GENERAL', 0, 'martini', '', '', '', 'CAJA', 'martini', '', 'SELECCIONE', 5, -24, 0, '2025-09-04 12:26:20', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-04 05:26:20', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(162, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'AVENA', '', '', '', 'CAJA', 'AVENA', '', 'SELECCIONE', 5, -8, 0, '2025-09-06 20:22:48', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-06 13:22:48', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(163, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-06 20:24:03', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-06 13:24:03', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(164, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'panela', '', '', '', 'CAJA', 'panela', '', 'SELECCIONE', 2.5, 0, 0, '2025-09-07 13:06:24', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-07 06:06:24', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(165, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-07 13:07:15', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-07 06:07:15', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(166, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'croisant choco', '', '', '', 'CAJA', 'croisant choco', '', 'SELECCIONE', 1.1, -47, 0, '2025-09-08 10:06:56', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-08 03:06:56', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(167, 1, b'1', 0, 1, 19, 'GENERAL', 0, 'arepa mantequilla', '', '', '', 'CAJA', 'arepa mantequilla', '', 'SELECCIONE', 1.5, -4, 0, '2025-09-10 09:17:02', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-10 02:17:02', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(168, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'golpe', '', '', '', 'CAJA', 'golpe', '', 'SELECCIONE', 4.8, -8, 0, '2025-09-11 10:06:11', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-11 03:06:11', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(169, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-09-13 08:46:49', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-13 01:46:49', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(170, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'milo caliente', '', '', '', 'CAJA', 'milo caliente', '', 'SELECCIONE', 3, -22, 0, '2025-09-15 09:49:43', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-15 02:49:43', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(171, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'chocolate pastillas', '', '', '', 'CAJA', 'chocolate pastillas', '', 'SELECCIONE', 5.9, -1, 0, '2025-09-15 18:25:51', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-15 11:25:51', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(172, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'croissant jamon ques', '', '', '', 'CAJA', 'croissant jamon queso', '', 'SELECCIONE', 2, -16, 0, '2025-09-18 10:07:41', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-18 03:07:41', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(173, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'buñuelo gde', '', '', '', 'CAJA', 'buñuelo gde', '', 'SELECCIONE', 2, -29, 0, '2025-09-19 09:22:59', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-19 02:22:59', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(174, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'chocorramo', '', '', '', 'CAJA', 'chocorramo', '', 'SELECCIONE', 2, -11, 0, '2025-09-19 18:03:44', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-19 11:03:44', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(175, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'milo bolsa', '', '', '', 'CAJA', 'milo bolsa', '', 'SELECCIONE', 12, 0, 0, '2025-09-20 12:05:21', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-20 05:05:21', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(176, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'chocolate paquete', '', '', '', 'CAJA', 'chocolate paquete', '', 'SELECCIONE', 5.9, -2, 0, '2025-09-20 12:08:08', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-09-20 05:08:08', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(177, 1, b'1', 0, 1, 12, 'GENERAL', 0, 'avena gde', '', '', '', 'CAJA', 'avena gde', '', 'SELECCIONE', 5, 0, 0, '2025-10-07 10:10:13', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-10-07 03:10:13', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(178, 1, b'1', 0, 1, 13, 'GENERAL', 0, 'berlina', '', '', '', 'CAJA', 'berlina', '', 'SELECCIONE', 1.8, -1, 0, '2025-10-09 10:23:37', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-10-09 03:23:37', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(179, 1, b'1', 0, 1, 18, 'GENERAL', 0, 'choclitos gde', '', '', '', 'CAJA', 'choclitos gde', '', 'SELECCIONE', 4, -2, 0, '2025-11-19 19:02:40', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-11-19 13:02:40', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(180, 1, b'1', 0, 1, 19, 'GENERAL', 0, '3 huevos', '', '', '', 'CAJA', '3 huevos', '', 'SELECCIONE', 3.5, -2, 0, '2025-11-21 11:18:38', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-11-21 05:18:38', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, NULL, 0),
(181, 1, b'1', 0, 1, 0, 'GENERAL', 0, '', '', '', '', 'CAJA', '', '', 'SELECCIONE', 0, 0, 0, '2025-11-21 11:19:39', ' ', 0, 0, 0, 3, 1, 1, 0, 0, 0, 1, 0, 'SELECCIONE', 'SELECCIONE', 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0, 0, 1, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 'lapoderosa1', NULL, NULL, NULL, NULL, NULL, '2025-11-21 05:19:39', 'SELECCIONE', NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, 'https://susoftware.es/imagenes/susoftware.png', NULL, b'1', NULL, NULL, NULL, 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, 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 'lapoderosa1',
  `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
(1, 11, 1, 35),
(2, 11, 1, 36),
(3, 11, 1, 37),
(1, 12, 1, 38),
(2, 12, 1, 39),
(3, 12, 1, 40),
(1, 13, 1, 41),
(2, 13, 1, 42),
(3, 13, 1, 43),
(1, 14, 1, 44),
(2, 14, 1, 45),
(3, 14, 1, 46),
(1, 15, 1, 47),
(2, 15, 1, 48),
(3, 15, 1, 49),
(1, 16, 1, 50),
(2, 16, 1, 51),
(3, 16, 1, 52),
(1, 17, 1, 53),
(2, 17, 1, 54),
(3, 17, 1, 55),
(1, 18, 1, 56),
(2, 18, 1, 57),
(3, 18, 1, 58),
(1, 19, 1, 59),
(2, 19, 1, 60),
(3, 19, 1, 61),
(1, 22, 1, 69),
(2, 22, 1, 70),
(3, 22, 1, 71),
(1, 23, 1, 72),
(2, 23, 1, 73),
(3, 23, 1, 74);

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

--
-- 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, 3, 1, 1),
(2, 1, 1, 1),
(3, 2, 1, 1),
(6, 1, 2, 1),
(7, 2, 2, 1),
(8, 3, 2, 1),
(13, 1, 3, 1),
(14, 2, 3, 1),
(15, 3, 3, 1),
(16, 1, 4, 1),
(17, 2, 4, 1),
(18, 3, 4, 1),
(20, 1, 5, 1),
(21, 2, 5, 1),
(22, 3, 5, 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 'lapoderosa1'
) 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 'lapoderosa1'
) 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 'lapoderosa1'
) 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 'lapoderosa1'
) 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;

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

--
-- 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 'cafeteria',
  `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 'lapoderosa1'
) 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 'lapoderosa1',
  `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;

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

--
-- 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 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

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

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

--
-- 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(8) NOT NULL DEFAULT 'MESAS',
  `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 'lapoderosa1',
  `afectacaja` int(1) DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL,
  `consecutivo` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- 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(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,
  `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 'lapoderosa1',
  `afectacaja` int(1) DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- 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(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',
  `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 'lapoderosa1',
  `afectacaja` int(1) DEFAULT '1',
  `referencia` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- 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 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `cargos` (`id`, `cargo`, `cc`, `pv`) VALUES
(1, '', 2, 'lapoderosa1');

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

--
-- 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,
  `prefijofe` varchar(5) 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',
  `prefijonc` varchar(2) DEFAULT NULL,
  `token_taxxa` varchar(150) DEFAULT NULL,
  `usuarioTaxxa` varchar(150) DEFAULT NULL,
  `claveTaxxa` varchar(15) 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',
  `endpoint_taxxa` varchar(200) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'cafeteria',
  `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',
  `urlinstagram` varchar(200) DEFAULT NULL,
  `urlfacebook` varchar(200) DEFAULT NULL,
  `urltiktok` varchar(200) DEFAULT NULL,
  `titulocabecera` varchar(100) DEFAULT '',
  `piedepaginafe` varchar(500) DEFAULT NULL,
  `mostrarpventv` varchar(2) DEFAULT 'SI',
  `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,
  `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`, `prefijofe`, `codigodepartamento`, `codigomunicipio`, `ciudad`, `departamento`, `id_tipo_persona`, `tipo_identificacion`, `prefijonc`, `token_taxxa`, `usuarioTaxxa`, `claveTaxxa`, `puedeusar`, `descuento`, `descuentodeldia`, `alerta`, `hastafe`, `fechahastafe`, `satelitecallcenter`, `tituloimpuestos`, `nombreimpuesto`, `endpoint_taxxa`, `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`, `urlinstagram`, `urlfacebook`, `urltiktok`, `titulocabecera`, `piedepaginafe`, `mostrarpventv`, `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`, `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, '', 'FACTURA DE VENTA POS', 0, 0, 0, 2, '644901131', '60882155', 'EL PARXHE 83', '2020-12-24 19:28:24', '', 1, 1, '', '', 'GRACIAS POR SU COMPRA', 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, '12', NULL, NULL, NULL, NULL, '.', NULL, NULL, 'BARCELONA', 2, 'NIT', NULL, NULL, NULL, NULL, 0, 0, 0, NULL, NULL, NULL, 'SELECCIONE', 'IVA', 'IVA', '', 'cafeteria', '08860', NULL, NULL, 'person', NULL, NULL, NULL, NULL, 0, 0, b'1', NULL, NULL, '2025-11-18 13:43:02', '2025-12-18', NULL, 'total', NULL, NULL, 0, 'total', 'SI', 'total', NULL, NULL, NULL, '', NULL, 'SI', 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, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, 4, NULL, NULL, '', NULL, NULL);

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

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

CREATE TABLE `cierres` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `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',
  `mediodepago` varchar(50) DEFAULT '',
  `observaciones` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `cierresdecaja`
--

CREATE TABLE `cierresdecaja` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `m1` int(3) NOT NULL DEFAULT '0',
  `m2` int(3) NOT NULL DEFAULT '0',
  `m5` int(3) NOT NULL DEFAULT '0',
  `m10` int(3) NOT NULL DEFAULT '0',
  `m20` int(3) NOT NULL DEFAULT '0',
  `m50` int(3) NOT NULL DEFAULT '0',
  `m100` int(3) NOT NULL DEFAULT '0',
  `m200` int(3) NOT NULL DEFAULT '0',
  `m500` int(3) NOT NULL DEFAULT '0',
  `m1000` int(3) NOT NULL DEFAULT '0',
  `b5` int(3) NOT NULL DEFAULT '0',
  `b20` int(3) NOT NULL DEFAULT '0',
  `b10` int(3) NOT NULL DEFAULT '0',
  `b50` int(3) NOT NULL DEFAULT '0',
  `b100` int(3) NOT NULL DEFAULT '0',
  `b1000` int(3) NOT NULL DEFAULT '0',
  `b2000` int(3) NOT NULL DEFAULT '0',
  `b5000` int(3) NOT NULL DEFAULT '0',
  `b10000` int(3) NOT NULL DEFAULT '0',
  `b20000` int(3) NOT NULL DEFAULT '0',
  `b50000` int(3) NOT NULL DEFAULT '0',
  `b100000` int(3) NOT NULL DEFAULT '0',
  `tarjeta` int(7) NOT NULL DEFAULT '0',
  `rappi` int(7) NOT NULL DEFAULT '0',
  `uber` int(7) NOT NULL DEFAULT '0',
  `ifood` int(7) NOT NULL DEFAULT '0',
  `domi` int(7) NOT NULL DEFAULT '0',
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcaja` bigint(20) UNSIGNED NOT NULL,
  `declarado` double NOT NULL DEFAULT '0',
  `efectivoenz` double NOT NULL DEFAULT '0',
  `diferencia` double NOT NULL DEFAULT '0',
  `observaciones` varchar(200) DEFAULT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL,
  `venta` double DEFAULT '0',
  `domicilio` double DEFAULT '0',
  `base` double DEFAULT '0',
  `gasto` double DEFAULT '0',
  `esperado` double DEFAULT '0',
  `sobrante` double DEFAULT '0',
  `faltante` double DEFAULT '0',
  `servicio` int(11) DEFAULT '0',
  `pv` varchar(25) DEFAULT 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `ciudades`
--

CREATE TABLE `ciudades` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ciudad` varchar(50) CHARACTER SET latin1 NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL,
  `codigodepartamento` varchar(7) DEFAULT NULL,
  `departamento` varchar(25) DEFAULT NULL,
  `codigociudad` varchar(7) DEFAULT NULL,
  `codigopostal` varchar(7) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `ciudades` (`id`, `ciudad`, `cc`, `codigodepartamento`, `departamento`, `codigociudad`, `codigopostal`, `pv`) VALUES
(4, 'J', 2, 'L', 'JKLK', 'L', NULL, 'lapoderosa1'),
(6, 'BARCELONA', 2, NULL, NULL, NULL, NULL, 'lapoderosa1');

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

--
-- Estructura de tabla para la tabla `clasesdevehiculo`
--

CREATE TABLE `clasesdevehiculo` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `clasedevehiculo` varchar(25) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `clasificacionclientes`
--

CREATE TABLE `clasificacionclientes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `clasificacion` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Estructura de tabla para la tabla `clientes`
--

CREATE TABLE `clientes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `primernombre` varchar(100) DEFAULT NULL,
  `barrio` varchar(25) DEFAULT NULL,
  `grupo` varchar(50) DEFAULT NULL,
  `codabajo` int(5) DEFAULT NULL,
  `primerapellido` varchar(25) DEFAULT '',
  `tipodepersona` int(11) DEFAULT '2',
  `cedula` varchar(15) DEFAULT '',
  `direccion` varchar(100) DEFAULT '',
  `fechadenacimiento` date DEFAULT NULL,
  `celular` varchar(15) DEFAULT '',
  `fechadecreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `ciudad` varchar(40) DEFAULT '',
  `departamento` varchar(25) DEFAULT 'RISARALDA',
  `clave` text,
  `rol` varchar(25) NOT NULL DEFAULT 'CLIENTE',
  `email` varchar(100) DEFAULT '',
  `telefono` varchar(10) DEFAULT '',
  `edad` int(11) NOT NULL DEFAULT '0',
  `genero` varchar(12) NOT NULL DEFAULT 'MASCULINO',
  `tipodedocumento` varchar(5) NOT NULL DEFAULT 'CC',
  `saldo` double NOT NULL DEFAULT '0',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `esproveedor` varchar(2) DEFAULT 'NO',
  `cuantoledebo` int(11) DEFAULT '0',
  `bolsillo` int(11) DEFAULT '0',
  `contacto` varchar(200) DEFAULT '',
  `telefonocontacto` varchar(25) DEFAULT '',
  `espersonajuridica` int(2) NOT NULL DEFAULT '0',
  `enviarcorreo` int(1) NOT NULL DEFAULT '0',
  `observacion` text,
  `numerocalle` varchar(4) DEFAULT NULL,
  `puntos` int(3) NOT NULL DEFAULT '0',
  `esempleado` int(1) NOT NULL DEFAULT '0',
  `idgrupo` int(3) DEFAULT '0',
  `descatalogado` int(1) DEFAULT '0',
  `eps` varchar(150) DEFAULT NULL,
  `afp` varchar(150) DEFAULT NULL,
  `codigociudad` varchar(5) DEFAULT '66001',
  `codigodepartamento` varchar(3) DEFAULT '66',
  `codigopostal` varchar(10) DEFAULT '660001',
  `razonsocial` varchar(100) DEFAULT NULL,
  `segundonombre` varchar(25) DEFAULT NULL,
  `segundoapellido` varchar(25) DEFAULT NULL,
  `legalidad` int(2) DEFAULT '0',
  `tipo_identificacion` varchar(5) DEFAULT 'CC',
  `nombrecomercial` varchar(200) DEFAULT NULL,
  `dv` int(1) DEFAULT NULL,
  `sfiscalresponsibilities` varchar(7) DEFAULT 'R-99-PN',
  `regimenfiscal` int(2) DEFAULT '49',
  `expedicioncedula` date DEFAULT NULL,
  `marcavehiculo` varchar(25) DEFAULT NULL,
  `placavehiculo` varchar(6) DEFAULT NULL,
  `nacionalidad` varchar(25) DEFAULT NULL,
  `municipioexpedido` varchar(25) DEFAULT NULL,
  `departamentoexpedido` varchar(25) DEFAULT NULL,
  `pv` varchar(25) DEFAULT 'cafeteria',
  `sessionid` varchar(32) DEFAULT NULL,
  `puederegistrarreferidos` int(1) DEFAULT '0',
  `huella` blob,
  `idcargo` int(11) DEFAULT '0',
  `codigonomina` varchar(1) DEFAULT NULL,
  `codigozona` varchar(5) DEFAULT NULL,
  `areanomina` varchar(5) DEFAULT NULL,
  `idturno` int(5) DEFAULT '0',
  `idturno2` int(5) DEFAULT '0',
  `fechainicioturnoactual` date DEFAULT NULL,
  `fechafinturnoactual` date DEFAULT NULL,
  `fechainicioprooximoturno` date DEFAULT NULL,
  `fechaprooximoturno` date DEFAULT NULL,
  `iddomiciliarioyoyo` int(11) DEFAULT NULL,
  `ciudadexpedicioncedula` varchar(25) DEFAULT NULL,
  `intentosfallidos` int(1) DEFAULT '0',
  `ipultimoacceso` varchar(16) DEFAULT NULL,
  `codigoarea` varchar(5) DEFAULT NULL,
  `pagarextras` bit(1) DEFAULT b'0',
  `vencimientolicencia` date DEFAULT NULL,
  `diacontacto1` int(2) DEFAULT '0',
  `diacontacto2` int(2) DEFAULT '0',
  `urlfotocliente` varchar(170) DEFAULT NULL,
  `tokendispositivo` varchar(150) DEFAULT NULL,
  `sueldomensual` int(11) DEFAULT '0',
  `auxtransportemensual` int(11) DEFAULT '0',
  `clasificacion` varchar(25) DEFAULT 'CLIENTE FINAL',
  `instagram` varchar(50) DEFAULT NULL,
  `licenciaconduccion` varchar(25) DEFAULT NULL,
  `nombrereferencia1` varchar(150) DEFAULT NULL,
  `nombrereferencia2` varchar(150) DEFAULT NULL,
  `telefonoreferencia1` varchar(150) DEFAULT NULL,
  `telefonoreferencia2` varchar(150) DEFAULT NULL,
  `parentescorefererencia2` varchar(150) DEFAULT NULL,
  `parentesco` varchar(150) DEFAULT NULL,
  `parentescorefererencia1` varchar(150) DEFAULT NULL,
  `EDS` varchar(1) DEFAULT NULL,
  `comensalescliente` int(2) DEFAULT '0',
  `idtelegram` varchar(25) DEFAULT NULL,
  `membrecia_hasta` date DEFAULT NULL,
  `idpadre2` int(1) DEFAULT '0',
  `banco` varchar(25) DEFAULT NULL,
  `tipodecuenta` varchar(12) DEFAULT NULL,
  `cuentabancaria` varchar(15) DEFAULT NULL,
  `urlcedulacliente` varchar(100) DEFAULT NULL,
  `urlrutcliente` varchar(100) DEFAULT NULL,
  `urlcamaracliente` varchar(100) DEFAULT NULL,
  `fecha_expedicion` date DEFAULT NULL,
  `datosvalidados` int(1) DEFAULT '0',
  `ultimavalidacion` date DEFAULT NULL,
  `cuentainscrita` int(1) DEFAULT '0',
  `fechaactualizacionrut` date DEFAULT NULL,
  `direccion2` varchar(100) DEFAULT NULL,
  `direccion3` varchar(100) DEFAULT NULL,
  `identificadortv` varchar(30) DEFAULT NULL,
  `origencliente` varchar(10) DEFAULT 'CLIENTES',
  `aceptacondiciones` int(11) DEFAULT '0',
  `fechaaceptacondiciones` date DEFAULT NULL,
  `HTTP_HOST` bit(1) DEFAULT b'0',
  `porcentaje_comision_enventa` int(11) DEFAULT '0',
  `codigomasser` bit(1) DEFAULT b'0',
  `rutacualizado` varchar(2) DEFAULT 'NO',
  `tokenfirebase` varchar(500) DEFAULT NULL,
  `origen_cliente` varchar(3) DEFAULT 'CON',
  `proximallamada` date DEFAULT NULL,
  `idpadre` int(11) DEFAULT '0',
  `campovalor_cliente` varchar(25) DEFAULT 'valordeventa',
  `responsable` varchar(50) DEFAULT NULL,
  `aplicaretencion` int(11) DEFAULT '0',
  `puedehacerpedido` int(11) DEFAULT '1',
  `clientes_bloqueados` varchar(300) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `clientes` (`id`, `primernombre`, `barrio`, `grupo`, `codabajo`, `primerapellido`, `tipodepersona`, `cedula`, `direccion`, `fechadenacimiento`, `celular`, `fechadecreacion`, `ciudad`, `departamento`, `clave`, `rol`, `email`, `telefono`, `edad`, `genero`, `tipodedocumento`, `saldo`, `cc`, `idusuario`, `esproveedor`, `cuantoledebo`, `bolsillo`, `contacto`, `telefonocontacto`, `espersonajuridica`, `enviarcorreo`, `observacion`, `numerocalle`, `puntos`, `esempleado`, `idgrupo`, `descatalogado`, `eps`, `afp`, `codigociudad`, `codigodepartamento`, `codigopostal`, `razonsocial`, `segundonombre`, `segundoapellido`, `legalidad`, `tipo_identificacion`, `nombrecomercial`, `dv`, `sfiscalresponsibilities`, `regimenfiscal`, `expedicioncedula`, `marcavehiculo`, `placavehiculo`, `nacionalidad`, `municipioexpedido`, `departamentoexpedido`, `pv`, `sessionid`, `puederegistrarreferidos`, `huella`, `idcargo`, `codigonomina`, `codigozona`, `areanomina`, `idturno`, `idturno2`, `fechainicioturnoactual`, `fechafinturnoactual`, `fechainicioprooximoturno`, `fechaprooximoturno`, `iddomiciliarioyoyo`, `ciudadexpedicioncedula`, `intentosfallidos`, `ipultimoacceso`, `codigoarea`, `pagarextras`, `vencimientolicencia`, `diacontacto1`, `diacontacto2`, `urlfotocliente`, `tokendispositivo`, `sueldomensual`, `auxtransportemensual`, `clasificacion`, `instagram`, `licenciaconduccion`, `nombrereferencia1`, `nombrereferencia2`, `telefonoreferencia1`, `telefonoreferencia2`, `parentescorefererencia2`, `parentesco`, `parentescorefererencia1`, `EDS`, `comensalescliente`, `idtelegram`, `membrecia_hasta`, `idpadre2`, `banco`, `tipodecuenta`, `cuentabancaria`, `urlcedulacliente`, `urlrutcliente`, `urlcamaracliente`, `fecha_expedicion`, `datosvalidados`, `ultimavalidacion`, `cuentainscrita`, `fechaactualizacionrut`, `direccion2`, `direccion3`, `identificadortv`, `origencliente`, `aceptacondiciones`, `fechaaceptacondiciones`, `HTTP_HOST`, `porcentaje_comision_enventa`, `codigomasser`, `rutacualizado`, `tokenfirebase`, `origen_cliente`, `proximallamada`, `idpadre`, `campovalor_cliente`, `responsable`, `aplicaretencion`, `puedehacerpedido`, `clientes_bloqueados`) VALUES
(1, 'SYSTEM', NULL, NULL, NULL, '', 2, '', 'CRR 16 NUMERO 19-54', '2006-06-11', '3117326824', '2017-12-20 22:34:05', 'Pereira', '', '$1$V49lKoVx$ZD5b8TAot44l0st0mdgk6/', 'ADMINISTRADOR', ' raulotalvaro@gmail.com', NULL, 0, 'MASCULINO', 'CC', 0, 2, 1, 'NO', 0, 39000, NULL, NULL, 1, 1, '', '2', 8, 0, 0, 0, NULL, NULL, '66001', '66', '0', NULL, NULL, NULL, 0, '3', NULL, NULL, 'R-99-PN', 49, NULL, NULL, NULL, NULL, NULL, NULL, 'cafeteria', '7f6185c9c4fe4ff6f01819c834ca182d', 1, NULL, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, b'1', NULL, 0, 0, NULL, NULL, 0, 0, 'CLIENTE FINAL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 'CLIENTES', 0, NULL, b'0', 0, b'0', 'NO', NULL, 'CON', NULL, 0, 'valordeventa', NULL, 0, 1, NULL),
(2, 'NAIROBI', NULL, NULL, NULL, '', 2, '123', '', '2050-12-12', '', '2021-12-16 07:59:15', '', '', '2EwPRZx6vKXiU', 'ADMINISTRADOR', '', '', 0, 'MASCULINO', 'CC', 0, 2, 1, 'NO', 0, 0, '', '', 0, 0, NULL, '2', 0, 0, 0, 0, NULL, NULL, '66001', '66', '660001', NULL, NULL, NULL, 0, 'CC', NULL, NULL, 'R-99-PN', 49, NULL, NULL, NULL, NULL, NULL, NULL, 'cafeteria', 'd10e8cb25e73174a501b766cbf0e11ab', 1, NULL, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, b'1', NULL, 0, 0, NULL, NULL, 0, 0, 'CLIENTE FINAL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 'CLIENTES', 0, NULL, b'0', 0, b'0', 'NO', NULL, 'CON', NULL, 0, 'valordeventa', NULL, 0, 1, NULL),
(3, '', NULL, NULL, NULL, 'lina', 2, '60882155', '', NULL, '', '2025-08-08 12:50:34', '', 'RISARALDA', '65ustXdq2y1lI', 'ADMINISTRADOR', '', '', 0, 'MASCULINO', 'CC', 0, 2, 1, 'NO', 0, 0, '', '', 0, 0, NULL, NULL, 0, 0, 0, 0, NULL, NULL, '66001', '66', '660001', NULL, NULL, NULL, 0, 'DNI', NULL, NULL, 'R-99-PN', 49, NULL, NULL, NULL, NULL, NULL, NULL, 'cafeteria', 'db0b3d7d86b91bea967017d9271fb597', 0, NULL, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, '188.26.215.23', NULL, b'0', NULL, 0, 0, NULL, NULL, 0, 0, 'CLIENTE FINAL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 'CLIENTES', 0, NULL, b'0', 0, b'0', 'NO', NULL, 'CON', NULL, 0, 'valordeventa', NULL, 0, 1, NULL),
(4, 'CONSUMIDOR FINAL', NULL, NULL, NULL, '', 2, '222222222222', '', NULL, '', '2025-08-08 05:52:31', '', 'RISARALDA', NULL, 'CLIENTE', '', '', 0, 'MASCULINO', 'CC', 0, 3, 1, 'NO', 0, 0, '', '', 0, 0, NULL, NULL, 0, 0, 0, 0, NULL, NULL, '66001', '66', '660001', NULL, NULL, NULL, 0, 'CC', NULL, NULL, 'R-99-PN', 49, NULL, NULL, NULL, NULL, NULL, NULL, 'cafeteria', NULL, 0, NULL, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, b'0', NULL, 0, 0, NULL, NULL, 0, 0, 'CLIENTE FINAL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 'CLIENTES', 0, NULL, b'0', 0, b'0', 'NO', NULL, 'CON', NULL, 0, 'valordeventa', NULL, 0, 1, NULL),
(5, 'VENTA DIRECTA', NULL, NULL, NULL, '', 2, 'VENTADIRECTA', '', NULL, '', '2025-08-08 05:52:31', '', 'RISARALDA', NULL, 'CLIENTE', '', '', 0, 'MASCULINO', 'CC', 0, 2, 1, 'NO', 0, 0, '', '', 0, 0, NULL, NULL, 0, 0, 0, 0, NULL, NULL, '66001', '66', '660001', NULL, NULL, NULL, 0, 'CC', NULL, NULL, 'R-99-PN', 49, NULL, NULL, NULL, NULL, NULL, NULL, 'cafeteria', NULL, 0, NULL, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, b'0', NULL, 0, 0, NULL, NULL, 0, 0, 'CLIENTE FINAL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 'CLIENTES', 0, NULL, b'0', 0, b'0', 'NO', NULL, 'CON', NULL, 0, 'valordeventa', NULL, 0, 1, NULL),
(6, 'empresa de luz', NULL, NULL, NULL, '', 2, '', '', NULL, '', '2025-08-20 21:05:59', '', 'RISARALDA', '', 'CLIENTE', '', '', 0, 'MASCULINO', 'CC', 0, 2, 3, 'SI', 0, 0, '', '', 0, 0, NULL, NULL, 0, 0, 0, 0, NULL, NULL, '66001', '66', '660001', NULL, NULL, NULL, 0, 'CC', NULL, NULL, 'R-99-PN', 49, NULL, NULL, NULL, NULL, NULL, NULL, 'cafeteria', NULL, 0, NULL, 0, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, b'0', NULL, 0, 0, NULL, NULL, 0, 0, 'CLIENTE FINAL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, 'CLIENTES', 0, NULL, b'0', 0, b'0', 'NO', NULL, 'CON', NULL, 0, 'valordeventa', NULL, 0, 1, NULL);

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

--
-- Estructura de tabla para la tabla `cocina_pedidos`
--

CREATE TABLE `cocina_pedidos` (
  `id` int(11) NOT NULL,
  `idmesa` int(11) NOT NULL,
  `idcliente` int(11) NOT NULL,
  `idarticulo` int(11) NOT NULL,
  `cantidad` decimal(10,2) NOT NULL,
  `valorunitario` decimal(10,2) NOT NULL,
  `descuento` decimal(10,2) DEFAULT '0.00',
  `valortotal` decimal(10,2) NOT NULL,
  `observaciones` text,
  `fechacreacion` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `despachado` tinyint(1) DEFAULT '0',
  `PrecuentaCallcenter` int(11) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `colores`
--

CREATE TABLE `colores` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `color` varchar(25) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

INSERT INTO `colores` (`id`, `color`) VALUES
(1, 'BLANCO CLARO'),
(2, 'BLANCO VERDE'),
(3, 'BLANCO SAL'),
(4, 'BLANCO'),
(5, 'SUPER BLANCO '),
(6, 'BLANCO PERLADO'),
(7, 'BLANCO MAHLER'),
(8, 'BLANCO LECHE'),
(9, 'BLANCO  PERLADO'),
(10, 'BLANCO NEVADA BICAPA'),
(11, 'VERDE BLANCO'),
(12, 'SUPER BLANCO 2'),
(13, 'VERDE'),
(14, 'BLANCO NEVADO'),
(15, 'BLANCO BRILLANTE'),
(16, 'BLANCO PURO'),
(17, 'BLANCO CRISTAL'),
(18, 'BLANCO NEVADO BICAPA'),
(19, 'BLANCO CERAMICA'),
(20, 'BLANCO CANDY'),
(21, 'BLANCO PLATA'),
(22, 'BLANCO CHERY'),
(23, 'BLANCO  CERAMICA'),
(24, 'BLANCO LUNA'),
(25, 'BLANCO OLIMPICO'),
(26, 'BLANCO ARTICA'),
(27, 'BLANCO TITANIO'),
(28, 'BLANCO GLACIAL'),
(29, 'BLANCO  ARTICA'),
(30, 'BLANCO VAINILLA'),
(31, 'PENDIENTE'),
(32, 'BLANCO ARTICO'),
(33, NULL);

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

--
-- Estructura de tabla para la tabla `componentesarticulos`
--

CREATE TABLE `componentesarticulos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `idinsumo` bigint(20) UNSIGNED NOT NULL,
  `cantidad` double NOT NULL DEFAULT '1',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `tipo` varchar(12) DEFAULT NULL,
  `idpaparapi` int(5) DEFAULT '0',
  `valor` double DEFAULT '0',
  `pv` varchar(25) DEFAULT 'lapoderosa1',
  `idpapaifood` varchar(50) DEFAULT NULL,
  `PRECIOIVA` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `compras`
--

CREATE TABLE `compras` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `valorunitario` double NOT NULL DEFAULT '0',
  `idproveedor` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idmayor` bigint(20) UNSIGNED NOT NULL,
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double DEFAULT '0',
  `afectacaja` int(1) NOT NULL DEFAULT '1',
  `iva` double NOT NULL DEFAULT '0',
  `idunidaddemedida` bigint(20) UNSIGNED NOT NULL,
  `valorgramo` double NOT NULL DEFAULT '0',
  `factor` double NOT NULL DEFAULT '0',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `nd` int(11) DEFAULT '0',
  `compras` int(11) DEFAULT '1',
  `pv` varchar(25) DEFAULT 'lapoderosa1',
  `tipodeiva` varchar(12) DEFAULT NULL,
  `descuento` double DEFAULT '0',
  `porcentajedescuento` double DEFAULT '0',
  `nombreimpuesto` varchar(3) DEFAULT 'IVA',
  `imei` varchar(50) DEFAULT NULL,
  `fechavencecompra` date DEFAULT NULL,
  `descripcionencompra` varchar(100) DEFAULT NULL,
  `ibua` int(6) DEFAULT '0',
  `advalorem` int(11) DEFAULT '0',
  `fletecompra` double DEFAULT '0',
  `proximocostomedio` double DEFAULT '0',
  `p_descuentosinfacturar` double DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `comprasauxiliar`
--

CREATE TABLE `comprasauxiliar` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `cantidad` double NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `valorunitario` double NOT NULL DEFAULT '0',
  `idproveedor` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idmayor` bigint(20) UNSIGNED NOT NULL,
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `idunidaddemedida` bigint(20) UNSIGNED NOT NULL,
  `valorgramo` double NOT NULL DEFAULT '0',
  `factor` double NOT NULL DEFAULT '0',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `idz` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `idcaja` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'lapoderosa1',
  `descuento` double DEFAULT '0',
  `porcentajedescuento` double DEFAULT '0',
  `tipodeiva` varchar(12) DEFAULT NULL,
  `nombreimpuesto` varchar(3) DEFAULT 'IVA',
  `imei` varchar(50) DEFAULT NULL,
  `fechavencecompra` date DEFAULT NULL,
  `ibua` int(6) DEFAULT '0',
  `advalorem` int(11) DEFAULT '0',
  `costomedioaux` double DEFAULT '0',
  `fleteaux` double DEFAULT '0',
  `proximocostomedio` double DEFAULT '0',
  `p_descuentosinfacturar` double DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `comprobantesdenomina`
--

CREATE TABLE `comprobantesdenomina` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `desde` date DEFAULT NULL,
  `hasta` date DEFAULT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL,
  `cedula` varchar(15) DEFAULT NULL,
  `nombre` varchar(150) DEFAULT NULL,
  `afp` varchar(150) DEFAULT NULL,
  `salario` int(11) NOT NULL DEFAULT '0',
  `consecutivo` int(5) DEFAULT '0',
  `comisiones` int(8) DEFAULT '0',
  `salud` int(8) DEFAULT '0',
  `transporte` int(8) DEFAULT '0',
  `pension` int(8) DEFAULT '0',
  `mediodepago` varchar(25) DEFAULT 'EFECTIVO',
  `afectacaja` int(1) DEFAULT '0',
  `idz` int(9) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Estructura de tabla para la tabla `conceptosgastos`
--

CREATE TABLE `conceptosgastos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `concepto` varchar(200) DEFAULT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL,
  `pv` varchar(25) DEFAULT 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

INSERT INTO `conceptosgastos` (`id`, `concepto`, `cc`, `pv`) VALUES
(13, 'ARRENDAMIENTO', 1, 'lapoderosa1'),
(14, 'IMPREVISTOS', 1, 'lapoderosa1');

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

--
-- Estructura de tabla para la tabla `configuracion`
--

CREATE TABLE `configuracion` (
  `id` int(11) NOT NULL,
  `clave` varchar(100) NOT NULL,
  `valor` text NOT NULL,
  `descripcion` varchar(150) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `configuracion` (`id`, `clave`, `valor`, `descripcion`) VALUES
(16, 'Ajustes de inventario', 'Hay mas unidades en el inventario físico', ''),
(17, 'Ajustes de inventario', 'Hay menos en el inventario físico', ''),
(18, 'Ajustes de inventario', 'Se le da de baja por descomposición', ''),
(19, 'Ajustes de inventario', 'Se le da de baja por mala presentación', ''),
(20, 'Ajustes de inventario', 'Sale como degustación', ''),
(21, 'Ajustes de inventario', 'Sale como promoción', ''),
(22, 'Ajustes de inventario', 'Descontado para cocina', ''),
(23, 'Edición en regularizaciones', 'Modificando la cantidad', 'Modificando la cantidad/Agregando la cantidad'),
(24, 'Descontar inventario en venta', 'Del módulo de artículos', 'Del módulo de artículos/Del inventario del vendedor'),
(25, 'qr_login', '', 'Permite poner un código QR en la pantalla de login'),
(26, 'Tipo de impresion abonos cartera', 'Carta', 'Carta, Media carta, Tirilla'),
(27, 'Imprimir comentario tirilla abonos cartera', 'Si', 'Si, No'),
(28, 'Fecha para guardar ventas a la madrugada', 'Fecha real', '<ul><li>Fecha real</li><li>Fecha del turno actual</li></ul>'),
(29, 'Puede repetir celular en el callcenter', 'Si', '<ul><li>Si</li><li>No</li></ul>'),
(30, 'Tipo de impresion para stickers de articulos v1', 'QR', '<ul><li>BARCODE</li><li>QR</li></ul>');

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

--
-- Estructura de tabla para la tabla `configuracionshopify`
--

CREATE TABLE `configuracionshopify` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `endpoint1` varchar(200) DEFAULT NULL,
  `endpoint2` varchar(200) DEFAULT NULL,
  `audience` varchar(100) DEFAULT NULL,
  `token1` varchar(200) DEFAULT NULL,
  `token2` varchar(200) DEFAULT NULL,
  `urltoken` varchar(100) DEFAULT NULL,
  `urlmenu` varchar(200) DEFAULT NULL,
  `storeId` varchar(50) NOT NULL,
  `urlactivaciones` varchar(200) DEFAULT NULL,
  `taken` varchar(150) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `configuraciontirilla`
--

CREATE TABLE `configuraciontirilla` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fuentemodificadorescomanda` int(2) DEFAULT '12',
  `fuentelineascomanda` int(2) DEFAULT '12',
  `COD_SATELITE` varchar(50) DEFAULT NULL,
  `user` varchar(200) DEFAULT NULL,
  `fuentedatosempresa` int(2) DEFAULT '0',
  `fuentetitulo` int(2) DEFAULT '0',
  `bdcontroldelcliente` varchar(300) DEFAULT NULL,
  `userbdcontroldelcliente` varchar(50) DEFAULT NULL,
  `quienrecibeelpedido` varchar(50) DEFAULT NULL,
  `dominiodelcliente` varchar(500) DEFAULT NULL COMMENT 'En este campo se buscan los archivos para devolver la configuración de la tirilla y los datos que se eimprimen',
  `rutaquehayparaimprimir` varchar(50) DEFAULT NULL,
  `master` varchar(200) DEFAULT NULL,
  `rutaborrarfactura` varchar(200) DEFAULT NULL,
  `masterparasubirdatosdeinformes` varchar(200) DEFAULT NULL,
  `bdparasubirdatosdeinformes` varchar(50) DEFAULT NULL,
  `tabladondeseeejecutaelprocedimiento` varchar(50) DEFAULT 'tabladondeseeejecutaelprocedimiento',
  `tamanopapel` int(1) NOT NULL DEFAULT '1',
  `fuenteunocomanda` int(2) NOT NULL DEFAULT '12',
  `cantidadletrasunocomanda` int(2) NOT NULL DEFAULT '20',
  `fuentedoscomanda` int(2) NOT NULL DEFAULT '12',
  `cantidadletrasdoscomanda` int(2) NOT NULL DEFAULT '20',
  `fuentetrescomanda` int(2) NOT NULL DEFAULT '10',
  `cantidadletrastrescomanda` int(2) NOT NULL DEFAULT '10',
  `fuenteunofactura` int(2) NOT NULL DEFAULT '12',
  `cantidadletrasunofactura` int(2) NOT NULL DEFAULT '20',
  `fuentedosfactura` int(2) NOT NULL DEFAULT '12',
  `cantidadletrasdosfactura` int(2) NOT NULL DEFAULT '20',
  `fuentetresfactura` int(2) NOT NULL DEFAULT '10',
  `cantidadletrastresfactura` int(2) NOT NULL DEFAULT '10',
  `alergenos` int(1) NOT NULL DEFAULT '0',
  `imprimir` int(1) NOT NULL DEFAULT '1',
  `facturadeconfirmacion` int(1) NOT NULL DEFAULT '0',
  `campoparaelconsecutivo` varchar(15) NOT NULL DEFAULT 'pendiente',
  `fechaanulacion` varchar(20) NOT NULL DEFAULT '2012-12-12',
  `formatofechasistema` varchar(10) NOT NULL DEFAULT 'YYYY-MM-dd' COMMENT 'Para integracion, se refiere al idioma del sistema operativo donde corre el programa, sirve para arreglar los insert que tienen fechas que no ingresan en sql server',
  `lineaimpuestos` varchar(20) NOT NULL DEFAULT 'pendiente',
  `TIPOIVAPORDEFECTO` double NOT NULL DEFAULT '0' COMMENT 'Cuando lineaimpuestos es cero se utiliza este codigo para calcular el porcentaje del iva en la columna tipoiva de tiquetslin',
  `codigoenlace` varchar(1) NOT NULL DEFAULT '5',
  `titulotirilla` varchar(100) DEFAULT NULL,
  `nombreimpresora` varchar(100) DEFAULT NULL,
  `codalmacen` varchar(5) DEFAULT NULL,
  `codalmacenfapster` varchar(5) NOT NULL DEFAULT '7' COMMENT '(Integracion) Es el cod que se envía a fapster en la tabla pendientes de dbotaxml en la columna codalmacen ',
  `pagoepayco` int(2) NOT NULL DEFAULT '0',
  `pagodatafono` int(2) DEFAULT '0',
  `pagoqr` int(2) NOT NULL DEFAULT '0',
  `pagoefectivo` int(2) NOT NULL DEFAULT '0',
  `sizetextomediana` int(2) NOT NULL DEFAULT '12',
  `sizetextomediano` int(2) NOT NULL DEFAULT '12',
  `sizelineascomanda` int(2) NOT NULL DEFAULT '12',
  `sizetitulo` int(2) DEFAULT '12',
  `sizetextopequeno` int(2) NOT NULL DEFAULT '12',
  `maxletrasencomanda` int(2) NOT NULL DEFAULT '12',
  `maxletrasenfactura` int(2) NOT NULL DEFAULT '30',
  `bd` varchar(50) DEFAULT NULL,
  `serie` varchar(5) DEFAULT NULL,
  `caja` int(1) NOT NULL DEFAULT '1' COMMENT 'Valor fijo para tiquetscab y remtrasacciones',
  `serieresolucion` varchar(50) DEFAULT NULL,
  `fo` int(5) NOT NULL DEFAULT '0',
  `n` varchar(1) NOT NULL DEFAULT 'B',
  `terminal` varchar(50) DEFAULT NULL,
  `seriedelequipo` varchar(50) DEFAULT NULL,
  `host` varchar(120) NOT NULL DEFAULT 'host',
  `regimen` varchar(50) DEFAULT NULL,
  `comentariotirilla` varchar(1200) DEFAULT NULL,
  `observacionalpie` varchar(500) DEFAULT '.' COMMENT 'Se utiliza para poner el texto sobre el destino de la propina, solo se usa en impresión automática',
  `email` varchar(120) DEFAULT NULL,
  `hasta` int(5) DEFAULT NULL,
  `desde` int(5) DEFAULT NULL,
  `fechainicioresolucion` varchar(20) DEFAULT NULL,
  `resolucioncontrol` varchar(20) DEFAULT NULL,
  `nit` varchar(20) DEFAULT NULL,
  `telefono` varchar(100) DEFAULT NULL,
  `subtitulo` varchar(100) DEFAULT NULL,
  `direccion` varchar(100) DEFAULT NULL,
  `razonsocial` varchar(100) DEFAULT NULL,
  `razonsocialcomanda` varchar(100) DEFAULT NULL,
  `numfacturaescero` int(1) NOT NULL DEFAULT '0',
  `seimprimrecomandaconlafactura` int(1) NOT NULL DEFAULT '1',
  `direccionparapush` text COMMENT 'Esta dirección se utiliza para enviar notificaciones al computador del cliente cuando el java se desconecta',
  `direccionservidorqueescucha` varchar(50) DEFAULT NULL,
  `tabla` varchar(25) DEFAULT NULL COMMENT 'Este es el nombre de la tabla donde se guardan las facturas de pendientes por imprimir',
  `imprimirfacturadoble` int(1) NOT NULL DEFAULT '0',
  `fuentelineasfactura` int(2) DEFAULT '14',
  `imprimirprecuentaconservicio` int(1) NOT NULL DEFAULT '1' COMMENT '1 para que la precuenta imprima con la propina, 0 para que no lo haga',
  `pv` varchar(25) DEFAULT NULL,
  `fuentetitulop` int(2) DEFAULT '12',
  `fuentedatosempresap` int(2) DEFAULT '12',
  `fuentelineascomandap` int(2) DEFAULT '12',
  `fuentemodificadorescomandap` int(2) DEFAULT '12',
  `fuentetotalesp` int(2) DEFAULT '16',
  `fuentehoracomanda` int(2) DEFAULT '12',
  `tipotirillafactura` varchar(3) DEFAULT 'PDF'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

INSERT INTO `configuraciontirilla` (`id`, `fuentemodificadorescomanda`, `fuentelineascomanda`, `COD_SATELITE`, `user`, `fuentedatosempresa`, `fuentetitulo`, `bdcontroldelcliente`, `userbdcontroldelcliente`, `quienrecibeelpedido`, `dominiodelcliente`, `rutaquehayparaimprimir`, `master`, `rutaborrarfactura`, `masterparasubirdatosdeinformes`, `bdparasubirdatosdeinformes`, `tabladondeseeejecutaelprocedimiento`, `tamanopapel`, `fuenteunocomanda`, `cantidadletrasunocomanda`, `fuentedoscomanda`, `cantidadletrasdoscomanda`, `fuentetrescomanda`, `cantidadletrastrescomanda`, `fuenteunofactura`, `cantidadletrasunofactura`, `fuentedosfactura`, `cantidadletrasdosfactura`, `fuentetresfactura`, `cantidadletrastresfactura`, `alergenos`, `imprimir`, `facturadeconfirmacion`, `campoparaelconsecutivo`, `fechaanulacion`, `formatofechasistema`, `lineaimpuestos`, `TIPOIVAPORDEFECTO`, `codigoenlace`, `titulotirilla`, `nombreimpresora`, `codalmacen`, `codalmacenfapster`, `pagoepayco`, `pagodatafono`, `pagoqr`, `pagoefectivo`, `sizetextomediana`, `sizetextomediano`, `sizelineascomanda`, `sizetitulo`, `sizetextopequeno`, `maxletrasencomanda`, `maxletrasenfactura`, `bd`, `serie`, `caja`, `serieresolucion`, `fo`, `n`, `terminal`, `seriedelequipo`, `host`, `regimen`, `comentariotirilla`, `observacionalpie`, `email`, `hasta`, `desde`, `fechainicioresolucion`, `resolucioncontrol`, `nit`, `telefono`, `subtitulo`, `direccion`, `razonsocial`, `razonsocialcomanda`, `numfacturaescero`, `seimprimrecomandaconlafactura`, `direccionparapush`, `direccionservidorqueescucha`, `tabla`, `imprimirfacturadoble`, `fuentelineasfactura`, `imprimirprecuentaconservicio`, `pv`, `fuentetitulop`, `fuentedatosempresap`, `fuentelineascomandap`, `fuentemodificadorescomandap`, `fuentetotalesp`, `fuentehoracomanda`, `tipotirillafactura`) VALUES
(1, 0, 0, 'SALOME3', '', 0, 0, ' ', ' ', '.', 'https://salome3.controllocal.co', 'quehaypaimprimir.php', 'no', 'borrarfactura.php', 'no', 'no', 'no', 58, 12, 25, 12, 25, 10, 10, 10, 34, 8, 34, 9, 32, 0, 1, 0, 'pendiente', '2012-12-12', 'YYYY-MM-dd', 'pendiente', 0, '5', 'FACTURA', 'SAT 15TUS', '10', '7', 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 30, 'no', 'no', 1, 'no', 0, 'B', 'NO', 'NO RESPONSABLES DE IVA', 'localhost', '         Regimen Ordinario', 'Gracias por su compra', '.', '0', 2000, 1, '2020-03-10', '2020-03-10', '9930070-9', '3206664955', 'Casasviejas', 'Calle 6 # 6-03', 'Todo Arepas Salome 3', 'Todo Arepas Salome 3', 0, 0, NULL, 'https://salome3.controllocal.co', '.', 0, 14, 1, NULL, 12, 12, 12, 12, 16, 12, 'PDF'),
(2, 12, 12, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'tabladondeseeejecutaelprocedimiento', 80, 12, 20, 12, 20, 10, 10, 12, 20, 12, 20, 10, 10, 0, 1, 0, 'pendiente', '2012-12-12', 'YYYY-MM-dd', 'pendiente', 0, '5', NULL, NULL, NULL, '7', 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 30, NULL, NULL, 1, NULL, 0, 'B', NULL, NULL, 'host', NULL, NULL, '.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, 0, 14, 1, NULL, 12, 12, 12, 12, 16, 12, 'PDF');

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

--
-- Estructura de tabla para la tabla `configuracion_incrementos`
--

CREATE TABLE `configuracion_incrementos` (
  `id` int(11) NOT NULL,
  `idseccion` int(11) NOT NULL,
  `base_calculo` enum('ultimocoste','valordeventatiendas') NOT NULL DEFAULT 'ultimocoste',
  `incremento_valordeventa` decimal(10,2) NOT NULL DEFAULT '15.00',
  `incremento_valordistribuidor` decimal(10,2) NOT NULL DEFAULT '12.00',
  `incremento_valordeventatiendas` decimal(10,2) NOT NULL DEFAULT '10.00',
  `incremento_vrventapublico` decimal(10,2) NOT NULL DEFAULT '40.00',
  `incremento_valortiendavirtual` decimal(10,2) NOT NULL DEFAULT '15.00',
  `redondeo` int(11) NOT NULL DEFAULT '50',
  `activo` tinyint(1) NOT NULL DEFAULT '1',
  `fechacreacion` datetime NOT NULL,
  `idusuario` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Estructura de tabla para la tabla `consecutivos`
--

CREATE TABLE `consecutivos` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `consecutivo` bigint(20) NOT NULL DEFAULT '1',
  `cc` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `tipo` varchar(50) NOT NULL DEFAULT 'VENTAS',
  `idusuario` bigint(20) UNSIGNED NOT NULL DEFAULT '1',
  `pv` varchar(25) DEFAULT 'lapoderosa1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `consecutivos` (`id`, `consecutivo`, `cc`, `fechacreacion`, `tipo`, `idusuario`, `pv`) VALUES
(1, 1, 1, '2020-12-24 19:28:24', 'VENTAS', 1, 'lapoderosa1'),
(2, 9313, 2, '2020-12-24 19:28:24', 'VENTAS', 1, 'lapoderosa1'),
(3, 892, 1, '2020-12-24 19:28:24', 'Z', 1, 'lapoderosa1'),
(4, 891, 2, '2020-12-24 19:28:24', 'Z', 1, 'lapoderosa1'),
(5, 1, 1, '2020-12-24 19:28:24', 'ABONOS', 1, 'lapoderosa1'),
(6, 1, 2, '2020-12-24 19:28:24', 'ABONOS', 1, 'lapoderosa1'),
(7, 1, 1, '2020-12-24 19:28:24', 'NOTASCREDITO', 1, 'lapoderosa1'),
(8, 1, 2, '2020-12-24 19:28:24', 'NOTASCREDITO', 1, 'lapoderosa1'),
(9, 1, 1, '2020-12-24 19:28:24', 'NOTASDEBITO', 1, 'lapoderosa1'),
(10, 1, 2, '2020-12-24 19:28:24', 'NOTASDEBITO', 1, 'lapoderosa1'),
(11, 1, 1, '2020-12-24 19:28:24', 'CORTESIAS', 1, 'lapoderosa1'),
(12, 1, 2, '2020-12-24 19:28:24', 'CORTESIAS', 1, 'lapoderosa1'),
(13, 1, 1, '2020-12-24 19:28:24', 'COMPROBANTE DE EGRESOS', 1, 'lapoderosa1'),
(14, 2070, 2, '2020-12-24 19:28:24', 'COMPROBANTE DE EGRESOS', 1, 'lapoderosa1'),
(15, 1, 1, '2020-12-24 19:28:24', 'SEPARADOS', 1, 'lapoderosa1'),
(16, 1, 2, '2020-12-24 19:28:24', 'SEPARADOS', 1, 'lapoderosa1'),
(17, 1, 1, '2020-12-24 19:28:24', 'PRODUCCION', 1, 'lapoderosa1'),
(18, 48, 2, '2020-12-24 19:28:24', 'PRODUCCION', 1, 'lapoderosa1'),
(19, 1, 2, '2020-12-24 19:28:24', 'SOLICITUDES', 1, 'lapoderosa1'),
(20, 1, 2, '2020-12-24 19:28:24', 'SOLICITUDES', 1, 'lapoderosa1'),
(21, 8, 1, '2021-04-04 18:41:42', 'BAJAS', 1, 'lapoderosa1'),
(22, 8, 2, '2021-04-04 18:41:52', 'BAJAS', 1, 'lapoderosa1'),
(23, 1, 2, '2021-04-07 16:39:42', 'FE', 1, 'lapoderosa1'),
(24, 1, 2, '2021-04-07 16:39:45', 'NOTADEBITOFE', 1, 'lapoderosa1'),
(25, 1, 2, '2021-04-07 16:39:46', 'NOTACREDITOFE', 1, 'lapoderosa1'),
(26, 1, 2, '2021-04-07 16:39:48', 'CONTINGENCIAFE', 1, 'lapoderosa1'),
(27, 1, 2, '2021-08-31 05:13:46', 'ABONOS PRESTAMOS', 1, 'lapoderosa1'),
(28, 1, 2, '2021-09-02 21:51:07', 'ABONOS SEPARADOS', 1, 'lapoderosa1'),
(29, 1, 2, '2021-10-09 01:38:12', 'RecepcionEquipo', 1, 'lapoderosa1'),
(30, 1, 2, '2022-01-16 10:24:00', 'TRASLADOS', 1, 'lapoderosa1'),
(31, 1, 2, '2022-01-24 12:25:49', 'PrecuentaCallcenter', 1, 'lapoderosa1'),
(32, 3, 2, '2022-02-04 19:55:01', 'FICHA DE REGISTRO', 1, 'lapoderosa1'),
(33, 1, 2, '2022-08-12 19:58:16', 'DOCUMENTO SOPORTE', 1, 'lapoderosa1'),
(34, 1, 2, '2023-01-26 09:53:22', 'DEVOLUCIONES POR PAGAR', 1, 'lapoderosa1'),
(35, 1, 2, '2024-06-01 17:53:47', 'POS ELECTRONICO', 1, 'lapoderosa1');

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

--
-- Estructura de tabla para la tabla `consultas`
--

CREATE TABLE `consultas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `estado` int(11) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

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

INSERT INTO `consultas` (`id`, `estado`, `fecha`) VALUES
(420, 1, '2022-10-15 04:49:01');

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

--
-- Estructura de tabla para la tabla `contable`
--

CREATE TABLE `contable` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `fechacreacion` datetime DEFAULT NULL,
  `idfactura` bigint(20) UNSIGNED NOT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `idcliente` bigint(20) UNSIGNED NOT NULL,
  `cuenta` varchar(8) DEFAULT NULL,
  `debito` decimal(11,2) DEFAULT '0.00',
  `credito` decimal(11,2) DEFAULT '0.00',
  `descripcioncuenta` varchar(25) DEFAULT NULL,
  `tipo` varchar(25) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `conteodiario`
--

CREATE TABLE `conteodiario` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `idarticulo` bigint(20) UNSIGNED NOT NULL,
  `descripcion` varchar(100) NOT NULL DEFAULT '',
  `cantidad` double NOT NULL DEFAULT '0',
  `mes` int(11) NOT NULL,
  `ano` int(11) NOT NULL,
  `costomedio` double NOT NULL,
  `idusuario` bigint(20) UNSIGNED NOT NULL,
  `cc` bigint(20) UNSIGNED NOT NULL,
  `fechacracion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fisico` double NOT NULL DEFAULT '0',
  `idmayor` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Estructura de tabla para la tabla `cotizaciondereceta`
--

