	IF IndexProperty(Object_Id('Cbtes_Items'), 'IX_CBTI_PorCliFQA', 'IndexID') IS NOT NULL	
		DROP INDEX [IX_CBTI_PorCliFQA] ON [dbo].[Cbtes_Items]
	GO	

	ALTER TABLE Cbtes_Items ALTER COLUMN Precio_Grav  DECIMAL (20,5)
	ALTER TABLE Cbtes_Items ALTER COLUMN Precio_Exen  DECIMAL (20,5)
	ALTER TABLE Cbtes_Items ALTER COLUMN Imp_Gravado  DECIMAL (20,2)
	ALTER TABLE Cbtes_Items ALTER COLUMN Imp_Exento	  DECIMAL (20,2)
	ALTER TABLE Cbtes_Items ALTER COLUMN Imp_Final	  DECIMAL (20,2)
	ALTER TABLE Cbtes_Items ALTER COLUMN Costo		  DECIMAL (20,5)
	ALTER TABLE Cbtes_Items ALTER COLUMN Imp_Iva	  DECIMAL (20,2)
	ALTER TABLE Cbtes_Items ALTER COLUMN Precio		  DECIMAL (20,5)
	ALTER TABLE Cbtes_Items ALTER COLUMN Costo_MO	  DECIMAL (20,5)
	ALTER TABLE Cbtes_Items ALTER COLUMN Costo_GF	  DECIMAL (20,5)
	ALTER TABLE Cbtes_Items ALTER COLUMN Precio_Lista DECIMAL (20,5)

	IF IndexProperty(Object_Id('Cbtes_Items'), 'IX_CBTI_PorCliFQA', 'IndexID') IS NULL
		CREATE NONCLUSTERED INDEX [IX_CBTI_PorCliFQA] ON [dbo].[Cbtes_Items]
		(
			[Id_Cliente] ASC,
			[Fecha_QA] ASC
		)
		INCLUDE([Id_Producto],[Id_Trans],[Item],[Descripcion_producto],[Imp_Final]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	GO