refs #169673 item_getSimilar #2252

Merged
robert merged 1 commits from 169673-item_getSimilar into dev 2024-04-04 12:43:27 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit 9801279370 - Show all commits

View File

@ -60,7 +60,11 @@ BEGIN
(i.value8 <=> its.value8) match8,
a.available,
IFNULL(ip.counter, 0) `counter`,
IF(b.groupingMode = 1, b.grouping, b.packing) minQuantity,
CASE
WHEN b.groupingMode = 1 THEN b.grouping
WHEN b.groupingMode = 2 THEN b.packing
ELSE 1
END AS minQuantity,
iss.visible located
FROM vn.item i
JOIN cache.available a ON a.item_id = i.id