16 lines
331 B
MySQL
16 lines
331 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `hedera`.`order_requestRecalc`(vSelf INT)
|
||
|
proc: BEGIN
|
||
|
/**
|
||
|
* Adds a request to recalculate the order total.
|
||
|
*
|
||
|
* @param vSelf The order identifier
|
||
|
*/
|
||
|
IF vSelf IS NULL THEN
|
||
|
LEAVE proc;
|
||
|
END IF;
|
||
|
|
||
|
INSERT INTO orderRecalc SET orderFk = vSelf;
|
||
|
END$$
|
||
|
DELIMITER ;
|