﻿USE [FabApprovalSystem]
GO
	/****** Object:  StoredProcedure [dbo].[MRBInsertSPNQDBHoldFlagResult]    Script Date: 11/21/2024 11:29:05 AM ******/
SET
	ANSI_NULLS ON
GO
SET
	QUOTED_IDENTIFIER ON
GO
	-- =============================================
	-- Author:		<Author,,Name>
	-- Create date: <Create Date,,>
	-- Description:	<Description,,>
	-- =============================================
	CREATE PROCEDURE [dbo].[MRBInsertSPNQDBHoldFlagResult] -- Add the parameters for the stored procedure here
	@OperationType VARCHAR(50),
	@DocumentID INT,
	@LotNo VARCHAR(50),
	@Result NCHAR(10),
	@LogInfo VARCHAR(100),
	@ParentLotNo VARCHAR(50),
	@ProcessedTime Datetime AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
SET
	NOCOUNT ON;

SET
	@ParentLotNo = GETDATE() -- Insert statements for procedure here
INSERT INTO
	MRB_SPN_QDBHoldFlagResults (
		OperationType,
		DocumentID,
		LotNo,
		Result,
		LogInfo,
		ParentLotNo,
		ProcessedTime
	)
VALUES
	(
		@OperationType,
		@DocumentID,
		@LotNo,
		@Result,
		@LogInfo,
		@ParentLotNo,
		@ProcessedTime
	)
END
GO