21-02-2023, 08:31 AM
Buenos días bodegapenedes, bienvenido al foro,
Ejecuta estos 6 scripts (uno a uno) en SISTEMA->CONFIGURACION->Pestaña CONSOLA DB, alguno de estos scripts, sobre todo los 2 últimos tardarán varios minutos en ejecutarse, tras esto trata de recuperar los datos antiguos:
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from tiquet2 where (id_tiquet,serie) in (select id_tiquet,serie from tiquet);
delete from factura2 where (id_factura,serie) in (select id_factura,serie from factura)
delete from ventadirecta2 where id_venta in (select id_venta from ventadirecta);
delete from ventadir_comg2 where (id_venta,id_linea) in (select id_venta,id_linea from ventadir_comg);
Ya me dices.
Ejecuta estos 6 scripts (uno a uno) en SISTEMA->CONFIGURACION->Pestaña CONSOLA DB, alguno de estos scripts, sobre todo los 2 últimos tardarán varios minutos en ejecutarse, tras esto trata de recuperar los datos antiguos:
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from tiquet2 where (id_tiquet,serie) in (select id_tiquet,serie from tiquet);
delete from factura2 where (id_factura,serie) in (select id_factura,serie from factura)
delete from ventadirecta2 where id_venta in (select id_venta from ventadirecta);
delete from ventadir_comg2 where (id_venta,id_linea) in (select id_venta,id_linea from ventadir_comg);
Ya me dices.