21 lines
702 B
MySQL
21 lines
702 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn2008`.`Facturas`
|
||
|
AS SELECT `io`.`id` AS `factura_id`,
|
||
|
`io`.`ref` AS `Id_Factura`,
|
||
|
`io`.`serial` AS `Serie`,
|
||
|
`io`.`issued` AS `Fecha`,
|
||
|
`io`.`amount` AS `Importe`,
|
||
|
`io`.`clientFk` AS `Id_Cliente`,
|
||
|
`io`.`created` AS `odbc_date`,
|
||
|
`io`.`companyFk` AS `empresa_id`,
|
||
|
`io`.`dued` AS `Vencimiento`,
|
||
|
`io`.`booked` AS `booked`,
|
||
|
`io`.`bankFk` AS `Id_Banco`,
|
||
|
`io`.`siiTypeInvoiceOutFk` AS `siiTypeInvoiceOutFk`,
|
||
|
`io`.`cplusTaxBreakFk` AS `cplusTaxBreakFk`,
|
||
|
`io`.`cplusSubjectOpFk` AS `cplusSubjectOpFk`,
|
||
|
`io`.`siiTrascendencyInvoiceOutFk` AS `siiTrascendencyInvoiceOutFk`,
|
||
|
`io`.`hasPdf` AS `pdf`
|
||
|
FROM `vn`.`invoiceOut` `io`
|