SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE procedure [dbo].[p_acc_taxes_list]
	@taxes_table type_table_id READONLY

as

	set nocount on;

	select at.*, nt.*
	from acc_taxes at
		inner join @taxes_table temp on at.acctax_tax_id = temp.id
		inner join nm_taxes nt on at.acctax_tax_code = nt.nmtax_tax_code
GO
