19 lines
380 B
MySQL
19 lines
380 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`buy_recalcPricesByBuy`(IN vBuyFk INT(11))
|
||
|
BEGIN
|
||
|
/**
|
||
|
* Recalcula los precios de una compra
|
||
|
*
|
||
|
* @param vBuyFk
|
||
|
*/
|
||
|
DROP TEMPORARY TABLE IF EXISTS tmp.buyRecalc;
|
||
|
|
||
|
CREATE TEMPORARY TABLE tmp.buyRecalc
|
||
|
SELECT vBuyFk id;
|
||
|
|
||
|
CALL buy_recalcPrices();
|
||
|
|
||
|
DROP TEMPORARY TABLE tmp.buyRecalc;
|
||
|
END$$
|
||
|
DELIMITER ;
|