fix: refs #6492 boxes alias
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-03-14 09:42:54 +01:00
parent 7a94ae3551
commit 3e458281e6
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ BEGIN
JOIN agency ag ON ag.id = am.agencyFk JOIN agency ag ON ag.id = am.agencyFk
JOIN ( JOIN (
SELECT sv.ticketFk, SELECT sv.ticketFk,
CEIL(1000 * SUM(sv.volume) / vc.standardFlowerBox) CEIL(1000 * SUM(sv.volume) / vc.standardFlowerBox) boxes
FROM ticket t FROM ticket t
JOIN saleVolume sv ON sv.ticketFk = t.id JOIN saleVolume sv ON sv.ticketFk = t.id
JOIN volumeConfig vc JOIN volumeConfig vc