#7864 - 7864_testToMaster_2434 #2867

Merged
jsegarra merged 139 commits from 7864_testToMaster_2434 into master 2024-08-20 06:33:22 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 6dc464d26b - Show all commits

View File

@ -162,6 +162,8 @@ BEGIN
FROM tTicketByItemPackingType;
CASE
WHEN NOT vCountDistinctItemPackingTypeFk THEN
-- Code
WHEN vCountDistinctItemPackingTypeFk = 1 THEN
INSERT INTO tTicketByItemPackingType
SET itemPackingTypeFk = vItemPackingTypeFk,
@ -196,6 +198,7 @@ BEGIN
JOIN sale s ON s.ticketFk = t.id
JOIN item i ON i.id = s.itemFk
WHERE t.shipped = vShipment
AND t.warehouseFk= vWarehouseFk
GROUP BY t.id
HAVING hasSameItemPackingType
)