SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[p_tt_accounts_invoices_risks_situations]
	@invoices_id_table type_table_id readonly
AS

	SET NOCOUNT ON;

	SELECT	ir.*
	FROM	acc_invoices_risks_situations ir 
			inner join @invoices_id_table t on t.id = ir.invris_invoice_id
GO
