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`.`expeditionScan_Monitor`
|
2024-04-30 09:48:18 +00:00
|
|
|
AS SELECT `rs`.`id` AS `truckFk`,
|
|
|
|
`rs`.`eta` AS `ETD`,
|
|
|
|
`rs`.`description` AS `description`,
|
2024-01-15 11:31:03 +00:00
|
|
|
`ep`.`id` AS `palletFk`,
|
|
|
|
`ep`.`position` AS `position`,
|
|
|
|
`ep`.`built` AS `built`,
|
|
|
|
`es`.`id` AS `scanFk`,
|
|
|
|
`es`.`expeditionFk` AS `expeditionFk`,
|
|
|
|
`es`.`scanned` AS `scanned`
|
|
|
|
FROM (
|
|
|
|
(
|
2024-04-30 10:02:19 +00:00
|
|
|
`vn`.`roadmapStop` `rs`
|
2024-04-30 09:48:18 +00:00
|
|
|
LEFT JOIN `vn`.`expeditionPallet` `ep` ON(`ep`.`truckFk` = `rs`.`id`)
|
2024-01-15 11:31:03 +00:00
|
|
|
)
|
|
|
|
LEFT JOIN `vn`.`expeditionScan` `es` ON(`es`.`palletFk` = `ep`.`id`)
|
|
|
|
)
|