This commit is contained in:
parent
7a94ae3551
commit
3e458281e6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue