
/*------ ATD 170962 ------*/
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'NAOABATERCREDITOICMS' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='SUBSTENTRADA'))
  ALTER TABLE dbo.SUBSTENTRADA ADD NAOABATERCREDITOICMS NUMERIC(1) NOT NULL DEFAULT 0
go
