2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-07-22 09:52:42 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` PROCEDURE `vn`.`itemShelvingPlacementSupplyAdd`(vItemShelvingFk INT, vItemPlacementSupplyFk INT, vQuantity INT)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
|
|
|
|
INSERT INTO vn.itemShelvingPlacementSupply( itemShelvingFk,
|
|
|
|
itemPlacementSupplyFk,
|
|
|
|
quantity,
|
|
|
|
userFk)
|
|
|
|
VALUES (vItemShelvingFk,
|
|
|
|
vItemPlacementSupplyFk,
|
|
|
|
vQuantity,
|
|
|
|
getUser());
|
|
|
|
|
|
|
|
UPDATE vn.itemShelving
|
|
|
|
SET visible = visible - vQuantity
|
|
|
|
WHERE id = vItemShelvingFk;
|
|
|
|
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|