2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost`
|
2024-01-15 11:31:03 +00:00
|
|
|
SQL SECURITY DEFINER
|
|
|
|
VIEW `vn`.`itemShelvingStockRemoved`
|
|
|
|
AS SELECT `ish`.`id` AS `itemShelvingFk`,
|
|
|
|
`ish`.`itemFk` AS `itemFk`,
|
|
|
|
0 AS `removed`
|
|
|
|
FROM (
|
|
|
|
(
|
|
|
|
`vn`.`itemShelving` `ish`
|
|
|
|
LEFT JOIN `vn`.`itemShelvingSale` `iss` ON(`iss`.`itemShelvingFk` = `ish`.`id`)
|
|
|
|
)
|
|
|
|
LEFT JOIN `vn`.`itemShelvingPlacementSupply` `isps` ON(`isps`.`itemShelvingFk` = `ish`.`id`)
|
|
|
|
)
|
|
|
|
GROUP BY `ish`.`id`
|