feat: refs #7893 Created waste_addSalesLauncher #2972
|
@ -4,6 +4,12 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`waste_addSales`(
|
||||||
vDateTo DATE
|
vDateTo DATE
|
||||||
)
|
)
|
||||||
BEGIN
|
BEGIN
|
||||||
|
/**
|
||||||
guillermo marked this conversation as resolved
Outdated
|
|||||||
|
* Recalcula las mermas de un periodo.
|
||||||
|
*
|
||||||
|
* @param vDateFrom Fecha desde
|
||||||
|
* @param vDateTo Fecha hasta
|
||||||
|
*/
|
||||||
IF vDateFrom IS NULL THEN
|
IF vDateFrom IS NULL THEN
|
||||||
SET vDateFrom = util.VN_CURDATE() - INTERVAL WEEKDAY(util.VN_CURDATE()) DAY;
|
SET vDateFrom = util.VN_CURDATE() - INTERVAL WEEKDAY(util.VN_CURDATE()) DAY;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
GRANT EXECUTE ON PROCEDURE bs.waste_addSales TO buyerBoss;
|
Loading…
Reference in New Issue
cal posar una descripcio perque hem canviat el funcionatment del proc