SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'WPOSS_Articulo_GetCombo') )
DROP PROCEDURE WPOSS_Articulo_GetCombo
GO

CREATE PROCEDURE WPOSS_Articulo_GetCombo --Carga la informacion a el combobox
		@opcion int
AS
BEGIN
	
	IF(@opcion = 0)
		BEGIN
			Select cod_arti, Desc_arti, id_arti From RestArti Order by cod_Arti
		END
	ELSE
		BEGIN
			Select cod_arti, Desc_arti, id_arti From RestArti Order by cod_Arti DESC
		END

END
GO