15-02-2023, 10:08 AM
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_comg2);
En cualquier caso dudo que ese ticket esté ahí.
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_comg2);
En cualquier caso dudo que ese ticket esté ahí.