57 lines
1.6 KiB
SQL
57 lines
1.6 KiB
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`XDiario`
|
|
AS SELECT `d`.`id` AS `id`,
|
|
`d`.`ASIEN` AS `ASIEN`,
|
|
`d`.`FECHA` AS `FECHA`,
|
|
`d`.`SUBCTA` AS `SUBCTA`,
|
|
`d`.`CONTRA` AS `CONTRA`,
|
|
`d`.`CONCEPTO` AS `CONCEPTO`,
|
|
`d`.`EURODEBE` AS `EURODEBE`,
|
|
`d`.`EUROHABER` AS `EUROHABER`,
|
|
`d`.`BASEEURO` AS `BASEEURO`,
|
|
`d`.`SERIE` AS `SERIE`,
|
|
`d`.`FACTURA` AS `FACTURA`,
|
|
`d`.`IVA` AS `IVA`,
|
|
`d`.`RECEQUIV` AS `RECEQUIV`,
|
|
`d`.`CLAVE` AS `CLAVE`,
|
|
`d`.`CAMBIO` AS `CAMBIO`,
|
|
`d`.`DEBEME` AS `DEBEME`,
|
|
`d`.`HABERME` AS `HABERME`,
|
|
`d`.`AUXILIAR` AS `AUXILIAR`,
|
|
`d`.`MONEDAUSO` AS `MONEDAUSO`,
|
|
`d`.`TIPOOPE` AS `TIPOOPE`,
|
|
`d`.`NFACTICK` AS `NFACTICK`,
|
|
`d`.`TERIDNIF` AS `TERIDNIF`,
|
|
`d`.`TERNIF` AS `TERNIF`,
|
|
`d`.`TERNOM` AS `TERNOM`,
|
|
`d`.`OPBIENES` AS `OPBIENES`,
|
|
`d`.`L340` AS `L340`,
|
|
`d`.`enlazado` AS `enlazado`,
|
|
`d`.`FECHA_EX` AS `FECHA_EX`,
|
|
`d`.`LRECT349` AS `LRECT349`,
|
|
`d`.`empresa_id` AS `empresa_id`,
|
|
`d`.`LDIFADUAN` AS `LDIFADUAN`,
|
|
`d`.`METAL` AS `METAL`,
|
|
`d`.`METALIMP` AS `METALIMP`,
|
|
`d`.`CLIENTE` AS `CLIENTE`,
|
|
`d`.`METALEJE` AS `METALEJE`,
|
|
`d`.`FECHA_OP` AS `FECHA_OP`,
|
|
`d`.`FACTURAEX` AS `FACTURAEX`,
|
|
`d`.`TIPOCLAVE` AS `TIPOCLAVE`,
|
|
`d`.`TIPOEXENCI` AS `TIPOEXENCI`,
|
|
`d`.`TIPONOSUJE` AS `TIPONOSUJE`,
|
|
`d`.`TIPOFACT` AS `TIPOFACT`,
|
|
`d`.`TIPORECTIF` AS `TIPORECTIF`,
|
|
`d`.`SERIE_RT` AS `SERIE_RT`,
|
|
`d`.`FACTU_RT` AS `FACTU_RT`,
|
|
`d`.`BASEIMP_RT` AS `BASEIMP_RT`,
|
|
`d`.`BASEIMP_RF` AS `BASEIMP_RF`,
|
|
`d`.`RECTIFICA` AS `RECTIFICA`,
|
|
`d`.`FECHA_RT` AS `FECHA_RT`,
|
|
`d`.`created` AS `created`,
|
|
`d`.`updated` AS `updated`,
|
|
`d`.`FECREGCON` AS `FECREGCON`,
|
|
`d`.`enlazadoSage` AS `enlazadoSage`
|
|
FROM `vn`.`XDiario` `d`
|