update views sale and componenTypeRate
This commit is contained in:
parent
0dbba4e159
commit
4191c97beb
|
@ -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`;
|
|
@ -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`;
|
Loading…
Reference in New Issue