03-05-2018, 09:07 AM
Hi Bean, open the C:\SYSME\SGC\actualizabdsysmehotel.txt file and copy this code:
Then save and restart Sysme Pos.
Código:
drop table opencart_comg;
drop table opencart_tipo_comg;
drop table lineaseliminadas;
create table opencart_comg (id_complementog varchar(5) not null, id_opencart int(2) not null, primary key (id_complementog,id_opencart)) type=innodb;
create table opencart_tipo_comg (id_tipo_comg varchar(4) not null, id_opencart int(2) not null, primary key (id_tipo_comg,id_opencart)) type=innodb;
create table lineaseliminadas select * from ventadir_comg limit 0;
alter table albaran add observaciones varchar(250) default "";
create table venta_ticket (id_venta int(7) not null, primary key (id_venta)) type=innodb;
create table almacen_complementg2 select * from almacen_complementg;
insert into almacen_complementg (id_centro,id_empresa,id_almacen,id_tipo_comg,id_complementog,cantidad,stock_minimo,complementog,variacion,desc_variacion) select "01","001","01",id_tipo_comg,id_complementog,0,0,complementog,0,"" from complementog where cafeteria = "S" and inventario = "N" and id_complementog not in (select id_complementog from almacen_complementg2);
drop table almacen_complementg2;
alter table almacen_complementg modify stock_minimo float;
Then save and restart Sysme Pos.