renamed view atenderFk to
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
f5aacc804d
commit
06e4cbb783
|
@ -83,4 +83,26 @@ BEGIN
|
||||||
SET NEW.attenderFk = (SELECT w.id FROM worker w WHERE w.code = NEW.buyerCode);
|
SET NEW.attenderFk = (SELECT w.id FROM worker w WHERE w.code = NEW.buyerCode);
|
||||||
END IF;
|
END IF;
|
||||||
END$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
||||||
|
USE `vn`;
|
||||||
|
CREATE
|
||||||
|
OR REPLACE ALGORITHM = UNDEFINED
|
||||||
|
DEFINER = `root`@`%`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn`.`ticketRequest__` AS
|
||||||
|
SELECT
|
||||||
|
`t`.`Id_ORDEN` AS `id`,
|
||||||
|
`t`.`ORDEN` AS `description`,
|
||||||
|
`t`.`requesterFk` AS `requesterFk`,
|
||||||
|
`t`.`attenderFk` AS `attenderFk`,
|
||||||
|
`t`.`CANTIDAD` AS `quantity`,
|
||||||
|
`t`.`Id_ARTICLE` AS `itemFk`,
|
||||||
|
`t`.`PRECIOMAX` AS `price`,
|
||||||
|
`t`.`isOk` AS `isOk`,
|
||||||
|
`t`.`Id_Movimiento` AS `saleFk`,
|
||||||
|
`t`.`ticketFk` AS `ticketFk`,
|
||||||
|
`t`.`COMENTARIO` AS `response`,
|
||||||
|
`t`.`odbc_date` AS `created`
|
||||||
|
FROM
|
||||||
|
`vn2008`.`Ordenes` `t`;
|
||||||
|
|
Loading…
Reference in New Issue