7199-devToTest_2316 #2287
|
@ -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