feat: refs #8119 Minor change
gitea/salix/pipeline/pr-master There was a failure building this commit
Details
gitea/salix/pipeline/pr-master There was a failure building this commit
Details
This commit is contained in:
parent
41d078aaf1
commit
8ca69d3574
|
@ -68,9 +68,9 @@ proc: BEGIN
|
|||
INSERT INTO itemCampaignQuantity(dated, itemFk, quantity, campaign)
|
||||
SELECT DATE(s.created),
|
||||
s.itemFk,
|
||||
CASE WHEN t.shipped BETWEEN vDateSumFrom AND vDateSumTo
|
||||
THEN SUM(s.quantity)
|
||||
END quantity,
|
||||
SUM(CASE WHEN t.shipped BETWEEN vDateSumFrom AND vDateSumTo
|
||||
THEN s.quantity
|
||||
END) quantity,
|
||||
vCampaign
|
||||
FROM sale s
|
||||
JOIN ticket t ON t.id = s.ticketFk
|
||||
|
|
Loading…
Reference in New Issue