diff --git a/modules/item/back/methods/item/filter.js b/modules/item/back/methods/item/filter.js index 0abb3ceb6..0aa8808b1 100644 --- a/modules/item/back/methods/item/filter.js +++ b/modules/item/back/methods/item/filter.js @@ -99,7 +99,7 @@ module.exports = Self => { intr.description AS intrastat, i.stems, ori.code AS origin, t.name AS type, ic.name AS category, i.density, tc.description AS taxClass, - b.grouping, b.packing + b.grouping, b.packing, itn.code AS niche FROM item i LEFT JOIN itemType t ON t.id = i.typeFk LEFT JOIN itemCategory ic ON ic.id = t.categoryFk @@ -110,7 +110,8 @@ module.exports = Self => { 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 vn.buy b ON b.id = lb.buy_id + LEFT JOIN itemPlacement itn ON itn.itemFk = i.id AND itn.warehouseFk = t.warehouseFk` ); if (ctx.args.hasVisible === true) { diff --git a/modules/item/front/index/index.html b/modules/item/front/index/index.html index 5a2988537..6f748a752 100644 --- a/modules/item/front/index/index.html +++ b/modules/item/front/index/index.html @@ -26,6 +26,8 @@ Packing Description Stems + Size + Niche Type Category Intrastat @@ -65,6 +67,8 @@ {{::item.stems}} + {{::item.size}} + {{::item.niche}} {{::item.type}} {{::item.category}} {{::item.intrastat}}