-- Schema: C6Mart
-- Stored Procedure: PL_S43LineaSelfBF


-- =============================================
-- Author:		<Mohammed, Ebid>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
--  [C6Mart].[PL_S43LineaSelfBF]  '',''
CREATE procedure [C6Mart].[PL_S43LineaSelfBF] 
	@Rete char(1), 
	@CodiceFiscale varchar(16)
AS
BEGIN
	
	SELECT  	 	 
		 codconf as NumContratto,
		 isnull(ctv,0) as Controvalore,
--INIZIO Intervento Eligo Titoli		 
		 NomeProdotto as NomeProdotto,
--FINE   Intervento Eligo Titoli		 				 
		 dbo.ToShortDateString(datasott)  as DataSott,
		 CodInterno,
		 CodSottoprodotto
	FROM       
		C6Mart.ANAG_SELF LS	
	WHERE 
		LS.rete= @Rete
		AND LS.codfis= @CodiceFiscale
		AND isnull(ctv,0) < 0
END





