2024-01-15 11:31:03 +00:00
|
|
|
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`,
|
2024-01-15 11:31:03 +00:00
|
|
|
`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`
|