feat: refs #7956 sin AS
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javi Gallego 2024-09-11 11:22:22 +02:00
parent ed8cf628a5
commit 10f7583587
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ BEGIN
GROUP BY itemFk
),
sold AS (
SELECT SUM(s.quantity) AS quantity, s.itemFk
SELECT SUM(s.quantity) quantity, s.itemFk
FROM vn.sale s
JOIN vn.ticket t ON t.id = s.ticketFk
LEFT JOIN vn.itemShelvingSale iss ON iss.saleFk = s.id