CREATE PROCEDURE [dbo].[PurchaseQuotationUpdate]
@Id int,
@PurQuoNo varchar(50),
@VendorPriceListId int,
@VendorId int,
@Date datetime,
@NetTotal decimal(18,5),
@Location varchar(50),
@Employee varchar(100),
@Remarks varchar(5000),
@Status varchar(50),
@JobId int,
@CompanyId int,
@UserId int,
@VendorAccountCode varchar(100),
@ApprovalStatus varchar(100),
--@CurrencyId int,
@FcTotal decimal(18,5),
@NetDiscount decimal(18,5),
@DiscountAllAmount bit,
@DiscountAllPer bit,
@DiscountAmount decimal(18,5),
@DiscountPer decimal(18,5),
--@FcRate decimal(18,2),
@ClientPONO nvarchar(100),
@RefNo nvarchar(100),
@OurPONO nvarchar(100),
@ModifiedBy int,
@ModifiedOn DateTime,
@FinancialYearID int
AS
BEGIN
UPDATE [PurchaseQuotation]
SET [PurQuoNo] = @PurQuoNo
,[VendorPriceListId] = @VendorPriceListId
,[VendorId] = @VendorId
,[Date] = @Date
,[NetTotal]=@NetTotal
,[Location]=@Location
,[Employee]=@Employee
,[Remarks]=@Remarks
,[Status]=@Status
,[JobId]=@JobId
,[CompanyId]=@CompanyId
,[UserId]=@UserId
,[VendorAccountCode]=@VendorAccountCode
,[ApprovalStatus]=@ApprovalStatus
--,[CurrencyId]=@CurrencyId
,[FcTotal]=@FcTotal
,[NetDiscount]=@NetDiscount
,[DiscountAllAmount]=@DiscountAllAmount
,[DiscountAllPer]=@DiscountAllPer
,[DiscountAmount]=@DiscountAmount
,[DiscountPer]=@DiscountPer
--,[FcRate] = @FcRate
,[ClientPoNo]=@ClientPONO
,RefNo=@RefNo
,[OurPoNo]=@OurPONO
,ModiFiedBy = @ModifiedBy
,ModifiedOn = @ModifiedOn
,[FinancialYearID] = @FinancialYearID
WHERE Id = @Id
END
No comments:
Post a Comment