CREATE PROCEDURE sp_api5_InvFamiliaRead
    @codfam varchar(50)
AS
BEGIN
    SELECT controlstock, validastock, validastocknp 
    FROM invfamilia 
    WHERE codfam = @codfam;
END;
