8032-devToTest_2440 #3009

Merged
alexm merged 262 commits from 8032-devToTest_2440 into test 2024-09-24 09:34:49 +00:00
3 changed files with 105 additions and 157 deletions
Showing only changes of commit 63dde3dd78 - Show all commits

View File

@ -41,7 +41,6 @@ AS SELECT `i`.`id` AS `Id_Article`,
`i`.`hasKgPrice` AS `hasKgPrice`, `i`.`hasKgPrice` AS `hasKgPrice`,
`i`.`equivalent` AS `Equivalente`, `i`.`equivalent` AS `Equivalente`,
`i`.`isToPrint` AS `Imprimir`, `i`.`isToPrint` AS `Imprimir`,
`i`.`family` AS `Familia__`,
`i`.`doPhoto` AS `do_photo`, `i`.`doPhoto` AS `do_photo`,
`i`.`created` AS `odbc_date`, `i`.`created` AS `odbc_date`,
`i`.`isFloramondo` AS `isFloramondo`, `i`.`isFloramondo` AS `isFloramondo`,

View File

@ -1,21 +1,84 @@
DROP TABLE IF EXISTS account.mailClientAccess__; ALTER TABLE bi.rutasBoard DROP COLUMN coste_bulto__;
DROP TABLE IF EXISTS account.mailSenderAccess__; ALTER TABLE bi.rutasBoard DROP COLUMN Dia__;
DROP TABLE IF EXISTS bi.analisis_ventas_familia_evolution__; ALTER TABLE bi.rutasBoard DROP COLUMN km__;
DROP TABLE IF EXISTS bi.live_counter__; ALTER TABLE bi.rutasBoard DROP COLUMN m3__;
DROP TABLE IF EXISTS bi.partitioning_information__; ALTER TABLE bi.rutasBoard DROP COLUMN Matricula__;
DROP TABLE IF EXISTS bi.primer_pedido__; ALTER TABLE bi.rutasBoard DROP COLUMN month__;
DROP TABLE IF EXISTS bi.tarifa_premisas__; ALTER TABLE bi.rutasBoard DROP COLUMN Terceros__;
DROP TABLE IF EXISTS bi.tarifa_warehouse__; ALTER TABLE bi.rutasBoard DROP COLUMN Tipo__;
DROP TABLE IF EXISTS bs.compradores__; ALTER TABLE bi.rutasBoard DROP COLUMN warehouse_id__;
DROP TABLE IF EXISTS bs.salesMonthlySnapshot___; ALTER TABLE bi.rutasBoard DROP COLUMN year__;
DROP TABLE IF EXISTS bs.salesPerson__;
DROP TABLE IF EXISTS bs.vendedores_evolution__; ALTER TABLE bs.clientDied DROP COLUMN Boss__;
DROP TABLE IF EXISTS vn.botanicExport__; ALTER TABLE bs.clientDied DROP COLUMN clientName__;
DROP TABLE IF EXISTS vn.claimRma__; ALTER TABLE bs.clientDied DROP COLUMN workerCode__;
DROP TABLE IF EXISTS vn.coolerPathDetail__;
DROP TABLE IF EXISTS vn.forecastedBalance__; ALTER TABLE bs.salesByItemTypeDay DROP COLUMN netSale__;
DROP TABLE IF EXISTS vn.routeLoadWorker__;
DROP TABLE IF EXISTS vn.routeUserPercentage__; ALTER TABLE vn.agency DROP FOREIGN KEY agency_FK;
DROP TABLE IF EXISTS vn.ticketSms__; ALTER TABLE vn.agency DROP COLUMN warehouseAliasFk__;
DROP TABLE IF EXISTS vn.ticketTrackingState__;
DROP TABLE IF EXISTS vn.warehouseAlias__; ALTER TABLE vn.awbComponent DROP COLUMN dated__;
ALTER TABLE vn.buy DROP COLUMN containerFk__;
ALTER TABLE vn.chat DROP COLUMN status__;
ALTER TABLE vn.claim DROP COLUMN rma__;
ALTER TABLE vn.client DROP COLUMN clientTypeFk__;
ALTER TABLE vn.client DROP COLUMN hasIncoterms__;
ALTER TABLE vn.clientType DROP COLUMN id__;
ALTER TABLE vn.cmr DROP FOREIGN KEY cmr_fk1;
ALTER TABLE vn.cmr DROP COLUMN ticketFk__;
ALTER TABLE vn.company DROP COLUMN sage200Company__;
ALTER TABLE vn.country DROP FOREIGN KEY country_FK;
ALTER TABLE vn.country DROP COLUMN politicalCountryFk__;
ALTER TABLE vn.deliveryNote DROP FOREIGN KEY albaran_FK;
ALTER TABLE vn.deliveryNote DROP COLUMN farmingFk__;
ALTER TABLE vn.dmsType DROP COLUMN path__;
ALTER TABLE vn.dua DROP COLUMN awbFk__;
ALTER TABLE vn.entry DROP COLUMN isBlocked__;
ALTER TABLE vn.expedition DROP COLUMN itemFk__;
ALTER TABLE vn.item DROP COLUMN minQuantity__;
ALTER TABLE vn.item DROP COLUMN packingShelve__;
ALTER TABLE vn.itemType DROP COLUMN compression__;
ALTER TABLE vn.itemType DROP COLUMN density__;
ALTER TABLE vn.itemType DROP COLUMN hasComponents__;
ALTER TABLE vn.itemType DROP COLUMN location__;
ALTER TABLE vn.itemType DROP COLUMN maneuver__;
ALTER TABLE vn.itemType DROP COLUMN profit__;
ALTER TABLE vn.itemType DROP COLUMN target__;
ALTER TABLE vn.itemType DROP COLUMN topMargin__;
ALTER TABLE vn.itemType DROP COLUMN transaction__;
ALTER TABLE vn.itemType DROP FOREIGN KEY warehouseFk5;
ALTER TABLE vn.itemType DROP COLUMN warehouseFk__;
ALTER TABLE vn.ledgerConfig DROP COLUMN lastBookEntry__;
ALTER TABLE vn.saleTracking DROP FOREIGN KEY saleTracking_FK_1;
ALTER TABLE vn.saleTracking DROP COLUMN actionFk__;
ALTER TABLE vn.supplier DROP COLUMN isFarmer__;
ALTER TABLE vn.supplierAccount DROP COLUMN description__;
ALTER TABLE vn.ticketRequest DROP COLUMN buyerCode__;
ALTER TABLE vn.travel DROP COLUMN agencyFk__;
ALTER TABLE vn.warehouse DROP FOREIGN KEY warehouse_ibfk_2;
ALTER TABLE vn.warehouse DROP COLUMN aliasFk__;
ALTER TABLE vn.worker DROP COLUMN labelerFk__;

View File

@ -1,135 +1,21 @@
ALTER TABLE bi.rutasBoard DROP COLUMN coste_bulto__; DROP TABLE IF EXISTS account.mailClientAccess__;
ALTER TABLE bi.rutasBoard DROP COLUMN Dia__; DROP TABLE IF EXISTS account.mailSenderAccess__;
ALTER TABLE bi.rutasBoard DROP COLUMN km__; DROP TABLE IF EXISTS bi.analisis_ventas_familia_evolution__;
ALTER TABLE bi.rutasBoard DROP COLUMN m3__; DROP TABLE IF EXISTS bi.live_counter__;
ALTER TABLE bi.rutasBoard DROP COLUMN Matricula__; DROP TABLE IF EXISTS bi.partitioning_information__;
ALTER TABLE bi.rutasBoard DROP COLUMN month__; DROP TABLE IF EXISTS bi.primer_pedido__;
ALTER TABLE bi.rutasBoard DROP COLUMN Terceros__; DROP TABLE IF EXISTS bi.tarifa_premisas__;
ALTER TABLE bi.rutasBoard DROP COLUMN Tipo__; DROP TABLE IF EXISTS bi.tarifa_warehouse__;
ALTER TABLE bi.rutasBoard DROP COLUMN warehouse_id__; DROP TABLE IF EXISTS bs.compradores__;
ALTER TABLE bi.rutasBoard DROP COLUMN year__; DROP TABLE IF EXISTS bs.salesMonthlySnapshot___;
DROP TABLE IF EXISTS bs.salesPerson__;
ALTER TABLE bs.clientDied DROP COLUMN Boss__; DROP TABLE IF EXISTS bs.vendedores_evolution__;
ALTER TABLE bs.clientDied DROP COLUMN clientName__; DROP TABLE IF EXISTS vn.botanicExport__;
ALTER TABLE bs.clientDied DROP COLUMN workerCode__; DROP TABLE IF EXISTS vn.claimRma__;
DROP TABLE IF EXISTS vn.coolerPathDetail__;
ALTER TABLE bs.salesByItemTypeDay DROP COLUMN netSale__; DROP TABLE IF EXISTS vn.forecastedBalance__;
DROP TABLE IF EXISTS vn.routeLoadWorker__;
ALTER TABLE vn.agency DROP FOREIGN KEY agency_FK; DROP TABLE IF EXISTS vn.routeUserPercentage__;
ALTER TABLE vn.agency DROP COLUMN warehouseAliasFk__; DROP TABLE IF EXISTS vn.ticketSms__;
DROP TABLE IF EXISTS vn.ticketTrackingState__;
ALTER TABLE vn.awbComponent DROP COLUMN dated__; DROP TABLE IF EXISTS vn.warehouseAlias__;
ALTER TABLE vn.buy DROP COLUMN containerFk__;
ALTER TABLE vn.chat DROP COLUMN status__;
ALTER TABLE vn.claim DROP COLUMN rma__;
ALTER TABLE vn.client DROP COLUMN clientTypeFk__;
ALTER TABLE vn.client DROP COLUMN hasIncoterms__;
ALTER TABLE vn.clientType DROP COLUMN id__;
ALTER TABLE vn.cmr DROP FOREIGN KEY cmr_fk1;
ALTER TABLE vn.cmr DROP COLUMN ticketFk__;
ALTER TABLE vn.company DROP COLUMN sage200Company__;
ALTER TABLE vn.country DROP FOREIGN KEY country_FK;
ALTER TABLE vn.country DROP COLUMN politicalCountryFk__;
ALTER TABLE vn.deliveryNote DROP FOREIGN KEY albaran_FK;
ALTER TABLE vn.deliveryNote DROP COLUMN farmingFk__;
ALTER TABLE vn.dmsType DROP COLUMN path__;
ALTER TABLE vn.dua DROP COLUMN awbFk__;
ALTER TABLE vn.entry DROP COLUMN isBlocked__;
ALTER TABLE vn.expedition DROP COLUMN itemFk__;
ALTER TABLE vn.item DROP COLUMN minQuantity__;
ALTER TABLE vn.item DROP COLUMN packingShelve__;
ALTER TABLE vn.itemType DROP COLUMN compression__;
ALTER TABLE vn.itemType DROP COLUMN density__;
ALTER TABLE vn.itemType DROP COLUMN hasComponents__;
ALTER TABLE vn.itemType DROP COLUMN location__;
ALTER TABLE vn.itemType DROP COLUMN maneuver__;
ALTER TABLE vn.itemType DROP COLUMN profit__;
ALTER TABLE vn.itemType DROP COLUMN target__;
ALTER TABLE vn.itemType DROP COLUMN topMargin__;
ALTER TABLE vn.itemType DROP COLUMN transaction__;
ALTER TABLE vn.itemType DROP FOREIGN KEY warehouseFk5;
ALTER TABLE vn.itemType DROP COLUMN warehouseFk__;
ALTER TABLE vn.ledgerConfig DROP COLUMN lastBookEntry__;
ALTER TABLE vn.saleTracking DROP FOREIGN KEY saleTracking_FK_1;
ALTER TABLE vn.saleTracking DROP COLUMN actionFk__;
ALTER TABLE vn.supplier DROP COLUMN isFarmer__;
ALTER TABLE vn.supplierAccount DROP COLUMN description__;
ALTER TABLE vn.ticketRequest DROP COLUMN buyerCode__;
ALTER TABLE vn.travel DROP COLUMN agencyFk__;
ALTER TABLE vn.warehouse DROP FOREIGN KEY warehouse_ibfk_2;
ALTER TABLE vn.warehouse DROP COLUMN aliasFk__;
ALTER TABLE vn.worker DROP COLUMN labelerFk__;
CREATE OR REPLACE
ALGORITHM = UNDEFINED VIEW `vn2008`.`Articles` AS
SELECT `i`.`id` AS `Id_Article`,
`i`.`name` AS `Article`,
`i`.`typeFk` AS `tipo_id`,
`i`.`size` AS `Medida`,
`i`.`inkFk` AS `Color`,
`i`.`category` AS `Categoria`,
`i`.`stems` AS `Tallos`,
`i`.`originFk` AS `id_origen`,
`i`.`description` AS `description`,
`i`.`producerFk` AS `producer_id`,
`i`.`intrastatFk` AS `Codintrastat`,
`i`.`box` AS `caja`,
`i`.`expenseFk` AS `expenseFk`,
`i`.`comment` AS `comments`,
`i`.`relevancy` AS `relevancy`,
`i`.`image` AS `Foto`,
`i`.`generic` AS `generic`,
`i`.`density` AS `density`,
`i`.`minPrice` AS `PVP`,
`i`.`hasMinPrice` AS `Min`,
`i`.`isActive` AS `isActive`,
`i`.`longName` AS `longName`,
`i`.`subName` AS `subName`,
`i`.`tag5` AS `tag5`,
`i`.`value5` AS `value5`,
`i`.`tag6` AS `tag6`,
`i`.`value6` AS `value6`,
`i`.`tag7` AS `tag7`,
`i`.`value7` AS `value7`,
`i`.`tag8` AS `tag8`,
`i`.`value8` AS `value8`,
`i`.`tag9` AS `tag9`,
`i`.`value9` AS `value9`,
`i`.`tag10` AS `tag10`,
`i`.`value10` AS `value10`,
`i`.`minimum` AS `minimum`,
`i`.`upToDown` AS `upToDown`,
`i`.`hasKgPrice` AS `hasKgPrice`,
`i`.`equivalent` AS `Equivalente`,
`i`.`isToPrint` AS `Imprimir`,
`i`.`doPhoto` AS `do_photo`,
`i`.`created` AS `odbc_date`,
`i`.`isFloramondo` AS `isFloramondo`,
`i`.`supplyResponseFk` AS `supplyResponseFk`,
`i`.`stemMultiplier` AS `stemMultiplier`,
`i`.`itemPackingTypeFk` AS `itemPackingTypeFk`,
`i`.`packingOut` AS `packingOut`
FROM `vn`.`item` `i`;