From d1ce85c81e290f536b84579edfb50a641f5dc148 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 13:46:33 +0100 Subject: [PATCH] taxclass field temporally removed as it slows the query --- modules/item/back/methods/item/filter.js | 3 +-- modules/item/front/index/index.html | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/item/back/methods/item/filter.js b/modules/item/back/methods/item/filter.js index f92248037..0bea205e3 100644 --- a/modules/item/back/methods/item/filter.js +++ b/modules/item/back/methods/item/filter.js @@ -105,7 +105,7 @@ module.exports = Self => { t.name type, u.id userId, intr.description AS intrastat, i.stems, ori.code AS origin, t.name AS type, - ic.name AS category, i.density, tc.description AS taxClass, + ic.name AS category, i.density, b.grouping, b.packing, itn.code AS niche FROM item i LEFT JOIN itemType t ON t.id = i.typeFk @@ -115,7 +115,6 @@ module.exports = Self => { LEFT JOIN intrastat intr ON intr.id = i.intrastatFk LEFT JOIN producer pr ON pr.id = i.producerFk LEFT JOIN origin ori ON ori.id = i.originFk - LEFT JOIN taxClass tc ON tc.id = i.taxClassFk LEFT JOIN cache.last_buy lb ON lb.item_id = i.id AND lb.warehouse_id = t.warehouseFk LEFT JOIN vn.buy b ON b.id = lb.buy_id LEFT JOIN itemPlacement itn ON itn.itemFk = i.id AND itn.warehouseFk = t.warehouseFk` diff --git a/modules/item/front/index/index.html b/modules/item/front/index/index.html index 88f8fb5bc..76bb017f2 100644 --- a/modules/item/front/index/index.html +++ b/modules/item/front/index/index.html @@ -34,7 +34,6 @@ Origin Buyer Density - Tax class Active @@ -81,7 +80,6 @@ {{::item.density}} - {{::item.taxClass}}