Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Ferrús efcb7a9d50 Merge pull request 'refs #169673 item_getSimilar' (!2252) from 169673-item_getSimilar into dev
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #2252
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
2024-04-04 12:43:26 +00:00
Robert Ferrús 9801279370 refs #169673 item_getSimilar
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-04-04 13:28:29 +02:00
1 changed files with 5 additions and 1 deletions

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