UPDATE VEN_DETFAC SET ENCGRE_NUMERO=NULL;
UPDATE VEN_DETFAC SET ENCPED_NUMERO=NULL;
UPDATE VEN_DETGRE SET ENCFAC_NUMERO=NULL;
UPDATE VEN_DETGRE SET ENCPED_NUMERO=NULL;
UPDATE VEN_DETPED SET ENCGRE_NUMERO=NULL;
UPDATE VEN_DETGRE SET ENCPED_NUMERO=NULL;
DELETE FROM VEN_DETPED;
DELETE FROM VEN_DETPED;
DELETE FROM COM_MAEPROVEEDOR;
DELETE FROM VEN_MAERANCOM;
DELETE FROM INV_TRNRESERVA;
DELETE FROM INV_MAEESPTEC;
DELETE FROM COM_TRNFORMAPAGPRO;
DELETE FROM BAN_DETBANDEJA;
DELETE FROM BAN_ENCBANDEJA;
DELETE FROM CON_TRNDISTRIBUCIONPCC;
DELETE FROM COM_TRNDISTRIBUCIONCC;
DELETE FROM COM_TRNDISTRIBUCIONPCC;
DELETE FROM COM_TRNREEMBOLSOS;
DELETE FROM COM_DETFACPRO;
DELETE FROM COM_ENCFACPRO;
UPDATE SEG_MAEUSUARIO SET BOD_CODIGO=NULL,BOD_CODIGO_DEV=NULL;
DELETE FROM INV_MAEBODEGA;
DELETE FROM VEN_ENCFAC;
DELETE FROM VEN_DETFAC;
DELETE FROM VEN_ENCGRE;
DELETE FROM VEN_DETGRE;
DELETE FROM VEN_DETPED;
DELETE FROM VEN_ENCPED;
DELETE FROM VEN_INFOADICFAC;
DELETE FROM VEN_INFOADICGRE;
DELETE FROM ELE_TRNDOCUMENTO;
DELETE FROM VEN_ENCFAC_ACDEPOT;
DELETE FROM VEN_ENCTRAPED;
DELETE FROM VEN_VENTAS_ACDEPOT;
DELETE FROM VEN_TRNEMPRESARIA;