salix/db/routines/vn2008/views/Cubos.sql

23 lines
641 B
MySQL
Raw Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Cubos`
AS SELECT `p`.`id` AS `Id_Cubo`,
`p`.`volume` AS `Volumen`,
`p`.`width` AS `X`,
`p`.`depth` AS `Y`,
`p`.`height` AS `Z`,
`p`.`isPackageReturnable` AS `Retornable`,
`p`.`created` AS `odbc_date`,
`p`.`itemFk` AS `item_id`,
`p`.`price` AS `pvp`,
`p`.`cubicPackage` AS `bultoCubico`,
`p`.`value` AS `Valor`,
`p`.`packagingReturnFk` AS `idCubos_Retorno`,
`p`.`lower` AS `Bajan`,
`p`.`upload` AS `Suben`,
`p`.`base` AS `Base`,
`p`.`isBox` AS `box`,
2024-10-02 06:26:38 +00:00
`p`.`returnCost` AS `costeRetorno`,
`p`.`isActive` AS `isActive`
FROM `vn`.`packaging` `p`