﻿USE [FabApprovalSystem]
GO
	/****** Object:  StoredProcedure [dbo].[PartsRequestUpdate]    Script Date: 11/21/2024 11:29:05 AM ******/
SET
	ANSI_NULLS ON
GO
SET
	QUOTED_IDENTIFIER ON
GO
	CREATE PROCEDURE [dbo].[PartsRequestUpdate] @PRNumber int,
	@Title varchar(200),
	@RequestorID int,
	@TechLeadID int,
	@Description varchar(5000) AS BEGIN
UPDATE
	PartsRequest
SET
	LastUpdateDate = GETDATE(),
	Title = ISNULL(@Title, ''),
	RequestorID = @RequestorID,
	TechLeadID = @TechLeadID,
	Description = ISNULL(@Description, '')
WHERE
	PRNumber = @PRNumber
END
GO