This commit is contained in:
parent
3e2e0ccadb
commit
8e2770aa56
|
@ -78,7 +78,8 @@ BEGIN
|
||||||
|
|
||||||
SELECT price INTO vNewPrice
|
SELECT price INTO vNewPrice
|
||||||
FROM tmp.ticketComponentPrice
|
FROM tmp.ticketComponentPrice
|
||||||
WHERE (vQuantity % `grouping` = 0);
|
ORDER BY (vQuantity % `grouping`) ASC
|
||||||
|
LIMIT 1;
|
||||||
|
|
||||||
IF vNewPrice IS NULL THEN
|
IF vNewPrice IS NULL THEN
|
||||||
CALL util.throw('price retrieval failed');
|
CALL util.throw('price retrieval failed');
|
||||||
|
|
Loading…
Reference in New Issue