24 lines
839 B
MySQL
24 lines
839 B
MySQL
|
CREATE
|
||
|
OR REPLACE ALGORITHM = UNDEFINED
|
||
|
DEFINER = `root`@`%`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`invoiceOut` AS
|
||
|
SELECT
|
||
|
`f`.`factura_id` AS `id`,
|
||
|
`f`.`Id_Factura` AS `ref`,
|
||
|
`f`.`Serie` AS `serial`,
|
||
|
`f`.`Fecha` AS `issued`,
|
||
|
`f`.`Importe` AS `amount`,
|
||
|
`f`.`Id_Cliente` AS `clientFk`,
|
||
|
`f`.`odbc_date` AS `created`,
|
||
|
`f`.`empresa_id` AS `companyFk`,
|
||
|
`f`.`Vencimiento` AS `dued`,
|
||
|
`f`.`booked` AS `booked`,
|
||
|
`f`.`Id_Banco` AS `bankFk`,
|
||
|
`f`.`cplusInvoiceType477Fk` AS `cplusInvoiceType477Fk`,
|
||
|
`f`.`cplusTaxBreakFk` AS `cplusTaxBreakFk`,
|
||
|
`f`.`cplusSubjectOpFk` AS `cplusSubjectOpFk`,
|
||
|
`f`.`cplusTrascendency477Fk` AS `cplusTrascendency477Fk`,
|
||
|
`f`.`pdf` AS `hasPdf`
|
||
|
FROM
|
||
|
`vn2008`.`Facturas` `f`;
|