salix/db/routines/vn2008/views/recibida_vencimiento.sql

12 lines
347 B
MySQL
Raw Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`recibida_vencimiento`
AS SELECT `r`.`id` AS `id`,
`r`.`invoiceInFk` AS `recibida_id`,
`r`.`dueDated` AS `fecha`,
`r`.`bankFk` AS `banco_id`,
`r`.`amount` AS `cantidad`,
`r`.`foreignValue` AS `divisa`,
`r`.`created` AS `stamp`
FROM `vn`.`invoiceInDueDay` `r`