Merge pull request 'feat: refs #7266 buyFkForPrint' (!3159) from 7266-ItemShelvingBuy into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #3159
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Sergio De la torre 2024-11-06 14:55:55 +00:00
commit 3b87cf0c69
1 changed files with 5 additions and 3 deletions

View File

@ -7,9 +7,10 @@ BEGIN
* @param vSelf matrícula del carro * @param vSelf matrícula del carro
**/ **/
SELECT ish.itemFk item, SELECT ish.itemFk item,
IFNULL(i.longName, CONCAT(i.name, ' ', i.size)) description, i.name,
i.longName,
i.size,
ish.visible, ish.visible,
CEIL(ish.visible/ish.packing) stickers,
ish.packing, ish.packing,
ish.grouping, ish.grouping,
p.code, p.code,
@ -17,7 +18,8 @@ BEGIN
s.priority, s.priority,
ish.isChecked, ish.isChecked,
ic.url, ic.url,
ish.available ish.available,
ish.buyFk
FROM itemShelving ish FROM itemShelving ish
JOIN item i ON i.id = ish.itemFk JOIN item i ON i.id = ish.itemFk
JOIN shelving s ON vSelf = s.code COLLATE utf8_unicode_ci JOIN shelving s ON vSelf = s.code COLLATE utf8_unicode_ci