CREATE PROCEDURE [dbo].[spConfiguration_SubParts_Del]
@ID int
AS
Declare @ERR int
set @ERR = 0
begin tran
delete from SVC_PMS_KMRange_Map where QuickServicePartId in (select QuickServicePartsID from SVCQuickServiceParts where SubPartsID=@ID )
set @ERR = @@Error
if @ERR = 0 begin
delete from SVCSubPartsMap where SubPartsId=@ID
set @ERR = @@Error
end
if @ERR = 0 begin
delete from SVCQuickServiceParts where SubPartsID=@ID
set @ERR = @@Error
end
if @ERR = 0 begin