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

35 lines
1.1 KiB
MySQL
Raw Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`Proveedores`
AS SELECT `s`.`id` AS `Id_Proveedor`,
`s`.`name` AS `Proveedor`,
`s`.`account` AS `cuenta`,
`s`.`countryFk` AS `pais_id`,
`s`.`nif` AS `NIF`,
`s`.`phone` AS `Telefono`,
`s`.`retAccount` AS `cuentaret`,
`s`.`commission` AS `ComisionProveedor`,
`s`.`created` AS `odbc_time`,
`s`.`postcodeFk` AS `postcode_id`,
`s`.`isActive` AS `active`,
`s`.`street` AS `Domicilio`,
`s`.`city` AS `Localidad`,
`s`.`provinceFk` AS `province_id`,
`s`.`postCode` AS `codpos`,
`s`.`payMethodFk` AS `pay_met_id`,
`s`.`payDemFk` AS `pay_dem_id`,
`s`.`nickname` AS `Alias`,
`s`.`isOfficial` AS `oficial`,
`s`.`workerFk` AS `workerFk`,
`s`.`payDay` AS `pay_day`,
2024-04-10 11:55:25 +00:00
`s`.`isReal` AS `serious`,
`s`.`note` AS `notas`,
`s`.`taxTypeSageFk` AS `taxTypeSageFk`,
`s`.`withholdingSageFk` AS `withholdingSageFk`,
`s`.`isTrucker` AS `isTrucker`,
`s`.`transactionTypeSageFk` AS `transactionTypeSageFk`,
`s`.`supplierActivityFk` AS `supplierActivityFk`,
`s`.`healthRegister` AS `healthRegister`,
`s`.`isPayMethodChecked` AS `isPayMethodChecked`
FROM `vn`.`supplier` `s`