feat itemShelving_filterBuyer refs #7023
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
9b0913e439
commit
3fa7eb1d2a
|
@ -15,13 +15,14 @@ proc:BEGIN
|
||||||
SELECT * FROM
|
SELECT * FROM
|
||||||
(SELECT sub.itemFk,
|
(SELECT sub.itemFk,
|
||||||
sub.longName,
|
sub.longName,
|
||||||
CONCAT('Hoy quedan por sacar ', CAST(sub2.pendiente AS DECIMAL(10,0)), ' unidades.') `size`,
|
CONCAT('Hoy saldrán ', CAST(sub2.pendiente AS DECIMAL(10,0)), ' unidades.') `size`,
|
||||||
CONCAT(IF(sub2.itemFk, IF(sub2.pendiente > (sub.upstairs + sub.downstairs),'(1) ','(2) '),'(3) ' ),sub.producer) producer,
|
CONCAT(IF(sub2.itemFk, IF(sub2.pendiente > (sub.upstairs + sub.downstairs),'(1) ','(2) '),'(3) ' ),sub.producer) producer,
|
||||||
sub.upstairs,
|
sub.upstairs,
|
||||||
sub.downstairs,
|
sub.downstairs,
|
||||||
sub.visible,
|
sub.visible,
|
||||||
CAST(visible - upstairs - downstairs AS DECIMAL(10,0)) nicho,
|
CAST(visible - upstairs - downstairs AS DECIMAL(10,0)) nicho,
|
||||||
sub.name itemColour
|
sub.name itemColour,
|
||||||
|
CAST(sub2.pendiente AS DECIMAL(10,0)) pendingAmount
|
||||||
FROM (SELECT iss.itemFk,
|
FROM (SELECT iss.itemFk,
|
||||||
CONCAT(i.longName, ' ', IFNULL(i.size, ''),' ', IFNULL(i.subName, '') ) longName,
|
CONCAT(i.longName, ' ', IFNULL(i.size, ''),' ', IFNULL(i.subName, '') ) longName,
|
||||||
'' size,
|
'' size,
|
||||||
|
@ -52,13 +53,14 @@ proc:BEGIN
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT v.item_id,
|
SELECT v.item_id,
|
||||||
i.longName,
|
i.longName,
|
||||||
CONCAT('Hoy quedan por sacar ', CAST(sub5.pendiente AS DECIMAL(10,0)), ' unidades.') `size`,
|
CONCAT('Hoy saldrán ', CAST(sub5.pendiente AS DECIMAL(10,0)), ' unidades.') `size`,
|
||||||
CONCAT(IF(sub5.pendiente,'(0) ','(3) ')) producer,
|
CONCAT(IF(sub5.pendiente,'(0) ','(3) ')) producer,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
v.visible,
|
v.visible,
|
||||||
v.visible nicho,
|
v.visible nicho,
|
||||||
ik.name itemColour
|
ik.name itemColour,
|
||||||
|
CAST(sub5.pendiente AS DECIMAL(10,0) pendingAmount
|
||||||
FROM cache.visible v
|
FROM cache.visible v
|
||||||
JOIN item i ON i.id = v.item_id
|
JOIN item i ON i.id = v.item_id
|
||||||
LEFT JOIN ink ik ON ik.id = i.inkFk
|
LEFT JOIN ink ik ON ik.id = i.inkFk
|
||||||
|
|
Loading…
Reference in New Issue