
[dbo].[spRevenueGetItemsForRatePlan_Legacy]
CREATE PROCEDURE [dbo].[spRevenueGetItemsForRatePlan_Legacy]
@inOrderId int
as
set nocount on
select distinct
ItemCode.ICPriKey,
ItemCode.ItemCode,
ItemCode.[Description]
from Rates
inner join ItemCode on Rates.ICPriKey = ItemCode.ICPriKey
inner join Orders on Rates.RPPriKey = Orders.RPPriKey
where Orders.PriKey = @inOrderId
GO
GRANT EXECUTE ON [dbo].[spRevenueGetItemsForRatePlan_Legacy] TO [MssExec]
GO