2022-07-25 17:02:36 +02:00
|
|
|
|
CREATE PROCEDURE [dbo].[spSaleInsert]
|
|
|
|
|
@Id int output,
|
|
|
|
|
@CashierId nvarchar(128),
|
|
|
|
|
@SaleDate datetime2,
|
|
|
|
|
@SubTotal money,
|
|
|
|
|
@Tax money,
|
|
|
|
|
@Total money
|
|
|
|
|
AS
|
|
|
|
|
BEGIN
|
|
|
|
|
SET NOCOUNT ON;
|
|
|
|
|
|
|
|
|
|
INSERT INTO dbo.Sale(CashierId, SaleDate, SubTotal, Tax, Total)
|
|
|
|
|
VALUES (@CashierId, @SaleDate, @SubTotal, @Tax, @Total);
|
|
|
|
|
|
2022-07-30 15:26:17 +02:00
|
|
|
|
SELECT @Id = Scope_IDENTITY();
|
2022-07-25 17:02:36 +02:00
|
|
|
|
END
|