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

25 lines
776 B
MySQL
Raw Permalink Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Cajas`
AS SELECT `t`.`id` AS `Id_Caja`,
`t`.`dated` AS `Cajafecha`,
`t`.`serie` AS `Serie`,
`t`.`concept` AS `Concepto`,
`t`.`in` AS `Entrada`,
`t`.`out` AS `Salida`,
`t`.`bankFk` AS `Id_Banco`,
`t`.`companyFk` AS `empresa_id`,
`t`.`isAccountable` AS `Partida`,
`t`.`InForeignValue` AS `InForeignValue`,
`t`.`OutForeignValue` AS `OutForeignValue`,
`t`.`workerFk` AS `Id_Trabajador`,
`t`.`calculatedCode` AS `id_calculated`,
`t`.`number` AS `Numero`,
`t`.`isLinked` AS `linked`,
`t`.`created` AS `odbc_date`,
`t`.`isOk` AS `ok`,
`t`.`warehouseFk` AS `warehouse_id`,
`t`.`isConciliate` AS `conciliado`,
`t`.`supplierAccountFk` AS `Proveedores_account_Id`
FROM `vn`.`till` `t`