refactor: refs #6453 Minor changes
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
15f580508b
commit
6dc464d26b
|
@ -162,6 +162,8 @@ BEGIN
|
||||||
FROM tTicketByItemPackingType;
|
FROM tTicketByItemPackingType;
|
||||||
|
|
||||||
CASE
|
CASE
|
||||||
|
WHEN NOT vCountDistinctItemPackingTypeFk THEN
|
||||||
|
-- Code
|
||||||
WHEN vCountDistinctItemPackingTypeFk = 1 THEN
|
WHEN vCountDistinctItemPackingTypeFk = 1 THEN
|
||||||
INSERT INTO tTicketByItemPackingType
|
INSERT INTO tTicketByItemPackingType
|
||||||
SET itemPackingTypeFk = vItemPackingTypeFk,
|
SET itemPackingTypeFk = vItemPackingTypeFk,
|
||||||
|
@ -196,6 +198,7 @@ BEGIN
|
||||||
JOIN sale s ON s.ticketFk = t.id
|
JOIN sale s ON s.ticketFk = t.id
|
||||||
JOIN item i ON i.id = s.itemFk
|
JOIN item i ON i.id = s.itemFk
|
||||||
WHERE t.shipped = vShipment
|
WHERE t.shipped = vShipment
|
||||||
|
AND t.warehouseFk= vWarehouseFk
|
||||||
GROUP BY t.id
|
GROUP BY t.id
|
||||||
HAVING hasSameItemPackingType
|
HAVING hasSameItemPackingType
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue