f118635029
Added inventory and sales api endpoints
14 lines
361 B
Transact-SQL
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 |