CREATE PROCEDURE [dbo].[PurchaseQuotationInsert]
@Id int output,
@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),
--@CurrencyId int,
@FcTotal decimal(18,5),
@ApprovalStatus varchar(100),
@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),
@CreatedBy int,
@CreatedOn DateTime,
@FinancialYearID int,
@IsApproved bit,
@IsRejected bit
AS
BEGIN
INSERT INTO [PurchaseQuotation]
([PurQuoNo]
,[VendorPriceListId]
,[VendorId]
,[Date]
,[NetTotal]
,[Location]
,[Employee]
,[Remarks]
,[Status]
,[JobId]
,[CompanyId]
,[UserId]
,[VendorAccountCode]
--,[CurrencyId]
,[FcTotal]
,[ApprovalStatus]
,[NetDiscount]
,[DiscountAllAmount]
,[DiscountAllPer]
,[DiscountAmount]
,[DiscountPer]
--,[FcRate]
,ClientPoNo
,[RefNo]
,[OurPoNo]
,[CreatedBy]
,[CreatedOn]
,[FinancialYearID]
,[IsApproved]
,[IsRejected])
VALUES
(@PurQuoNo
,@VendorPriceListId
,@VendorId
,@Date
,@NetTotal
,@Location
,@Employee
,@Remarks
,@Status
,@JobId
,@CompanyId
,@UserId
,@VendorAccountCode
-- ,@CurrencyId
,@FcTotal
,@ApprovalStatus
,@NetDiscount
,@DiscountAllAmount
,@DiscountAllPer
,@DiscountAmount
,@DiscountPer
--,@FcRate
,@ClientPONO
,@RefNO
,@OurPONO
,@CreatedBy
,@CreatedOn
,@FinancialYearID
,@IsApproved
,@IsRejected)
Set @Id =@@IDENTITY
END
No comments:
Post a Comment