Retail_manager/RMData/dbo/Stored Procedures/spSaleInsert.sql
s459315 f0bea75284 Add Saving Cart to the DB
All the changes necessary to save shopping cart to DB
2022-07-25 17:02:36 +02:00

16 lines
332 B
Transact-SQL

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);
SELECT @Id = @@IDENTITY;
END