Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 4466-invoiceInRectificated
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
fd4b246bd6
|
@ -1,7 +1,13 @@
|
||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`itemShelvingRadar`(vSectorFk INT)
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`itemShelvingRadar`(
|
||||||
|
vSectorFk INT
|
||||||
|
)
|
||||||
proc:BEGIN
|
proc:BEGIN
|
||||||
|
/**
|
||||||
|
* Calcula la información detallada respecto un sector.
|
||||||
|
*
|
||||||
|
* @param vSectorFk Id de sector
|
||||||
|
*/
|
||||||
DECLARE vCalcVisibleFk INT;
|
DECLARE vCalcVisibleFk INT;
|
||||||
DECLARE vCalcAvailableFk INT;
|
DECLARE vCalcAvailableFk INT;
|
||||||
DECLARE hasFatherSector BOOLEAN;
|
DECLARE hasFatherSector BOOLEAN;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
SQL SECURITY DEFINER
|
SQL SECURITY DEFINER
|
||||||
VIEW `vn`.`itemShelvingAvailable`
|
VIEW `vn`.`itemShelvingAvailable`
|
||||||
AS SELECT `s`.`id` AS `saleFk`,
|
AS SELECT `s`.`id` `saleFk`,
|
||||||
`tst`.`updated` AS `Modificado`,
|
`tst`.`updated` AS `Modificado`,
|
||||||
`s`.`ticketFk` AS `ticketFk`,
|
`s`.`ticketFk` AS `ticketFk`,
|
||||||
0 AS `isPicked`,
|
0 AS `isPicked`,
|
||||||
|
@ -38,7 +38,7 @@ FROM (
|
||||||
)
|
)
|
||||||
JOIN `vn`.`agencyMode` `am` ON(`am`.`id` = `t`.`agencyModeFk`)
|
JOIN `vn`.`agencyMode` `am` ON(`am`.`id` = `t`.`agencyModeFk`)
|
||||||
)
|
)
|
||||||
JOIN `vn`.`ticketStateToday` `tst` ON(`tst`.`ticket` = `t`.`id`)
|
JOIN `vn`.`ticketStateToday` `tst` ON(`tst`.`ticketFk` = `t`.`id`)
|
||||||
)
|
)
|
||||||
JOIN `vn`.`state` `st` ON(`st`.`id` = `tst`.`state`)
|
JOIN `vn`.`state` `st` ON(`st`.`id` = `tst`.`state`)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue