Retail_manager/RMData/dbo/Stored Procedures/spInventoryInsert.sql
s459315 f118635029 Added admin endpoints
Added inventory and sales api endpoints
2022-08-02 19:32:39 +02:00

14 lines
361 B
Transact-SQL

CREATE PROCEDURE [dbo].[spInventoryInsert]
-- [ProductId], [Quantity], [PurchasePrice], [PurchaseDate]
@ProductId int,
@Quantity int,
@PurchasePrice money,
@PurchaseDate datetime2
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO dbo.Inventory (ProductId, Quantity, PurchasePrice, PurchaseDate)
VALUES (@ProductId, @Quantity, @PurchasePrice, @PurchaseDate);
END