update views sale and componenTypeRate

This commit is contained in:
Bernat 2018-05-11 14:09:24 +02:00
parent 0dbba4e159
commit 4191c97beb
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,12 @@
USE `vn`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `vn`.`componentTypeRate` AS
SELECT
`t`.`tarifa_componentes_series_id` AS `id`,
`t`.`Serie` AS `type`,
`t`.`base` AS `base`
FROM
`bi`.`tarifa_componentes_series` `t`;

View File

@ -0,0 +1,22 @@
USE `vn`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `sale` AS
SELECT
`m`.`Id_Movimiento` AS `id`,
`m`.`Id_Article` AS `itemFk`,
`m`.`Id_Ticket` AS `ticketFk`,
`m`.`Concepte` AS `concept`,
`m`.`Cantidad` AS `quantity`,
`m`.`Preu` AS `price`,
`m`.`Descuento` AS `discount`,
`m`.`Reservado` AS `reserved`,
`m`.`OK` AS `isPicked`,
`m`.`odbc_date` AS `created`,
`m`.`CostFixat` AS `priceFixed`,
`m`.`PrecioFijado` AS `isPriceFixed`
FROM
`vn2008`.`Movimientos` `m`;