feat: refs #8119 itemCampaignQuantity #3117

Merged
guillermo merged 20 commits from 8119-itemCampaignQuantity into master 2024-10-23 10:40:43 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 31c89538bc - Show all commits

View File

@ -44,7 +44,7 @@ proc: BEGIN
FROM sale s FROM sale s
JOIN ticket t ON t.id = s.ticketFk JOIN ticket t ON t.id = s.ticketFk
JOIN client c ON c.id = t.clientFk JOIN client c ON c.id = t.clientFk
WHERE t.shipped BETWEEN vDateSumFrom AND util.dayEnd(vDateSumTo) WHERE t.shipped BETWEEN vDateSumFrom AND vDateSumTo
AND c.typeFk = 'normal' AND c.typeFk = 'normal'
AND NOT t.isDeleted AND NOT t.isDeleted
GROUP BY s.itemFk GROUP BY s.itemFk