
/*------ ATD 168941 ------*/
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'ALQDebICMSST' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='BASECALFAT'))
	alter table BaseCalFat add ALQDebICMSST Decimal(6,2) default 0
	go 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'ALQCREDICMSST' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='BASECALFAT'))
	ALTER TABLE BASECALFAT ADD ALQCREDICMSST DECIMAL(6,2) default 0 
	go 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'BaseCredICMSST' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='BASECALFAT'))
	alter table BaseCalFat ADD BaseCredICMSST Decimal(8,4) default 0
	go 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'BaseDebICMSST' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='BASECALFAT'))
	alter table BaseCalFat ADD BaseDebICMSST Decimal(8,4) default 0
	go 
IF NOT EXISTS (SELECT 1 FROM SYSCOLUMNS WHERE name = 'ManterBasePadraoReducao' and syscolumns.id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='BASECALFAT'))
	alter table BaseCalFat add ManterBasePadraoReducao char(1) default ' '
	go 
