salix/services/db/install/changes/1.1.0/05.basketAddItem.sql

20 lines
329 B
SQL

USE `hedera`;
DROP procedure IF EXISTS `basketAddItem`;
DELIMITER $$
USE `hedera`$$
CREATE DEFINER=`root`@`%` PROCEDURE `basketAddItem`(
vWarehouse INT,
vItem INT,
vAmount INT)
BEGIN
DECLARE vOrder INT;
SET vOrder = myBasketGetId();
CALL orderAddItem(vWarehouse, vItem, vAmount, vOrder);
END$$
DELIMITER ;