2018-10-30 11:17:22 +00:00
|
|
|
USE `vn`;
|
|
|
|
CREATE
|
|
|
|
OR REPLACE ALGORITHM = UNDEFINED
|
|
|
|
DEFINER = `root`@`%`
|
|
|
|
SQL SECURITY DEFINER
|
|
|
|
VIEW `ticketRequest` AS
|
|
|
|
SELECT
|
|
|
|
`t`.`Id_ORDEN` AS `id`,
|
|
|
|
`t`.`ORDEN` AS `description`,
|
2018-11-12 10:50:16 +00:00
|
|
|
`t`.`requesterFk` AS `requesterFk`,
|
2018-10-30 11:17:22 +00:00
|
|
|
`t`.`CodCOMPRADOR` AS `atenderFk`,
|
|
|
|
`t`.`CANTIDAD` AS `quantity`,
|
|
|
|
`t`.`PRECIOMAX` AS `price`,
|
|
|
|
`t`.`KO` AS `isOk`,
|
|
|
|
`t`.`Id_Movimiento` AS `saleFk`,
|
2018-11-12 10:50:16 +00:00
|
|
|
`t`.`ticketFk` AS `ticketFk`,
|
2018-10-30 11:17:22 +00:00
|
|
|
`t`.`odbc_date` AS `created`
|
|
|
|
FROM
|
|
|
|
`vn2008`.`Ordenes` `t`;
|