SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[p_tt_accounts_invoices_policies_variables]
	@invoices_id_table type_table_id readonly
AS

	SET NOCOUNT ON; 

	select	ipv.*
	FROM	acc_invoices_policies_variables ipv
			inner join @invoices_id_table t on t.id = ipv.invpolv_invoice_id

GO
