#7864 - 7864_testToMaster_2434 #2867
|
@ -97,18 +97,17 @@ BEGIN
|
||||||
CALL order_checkEditable(vSelf);
|
CALL order_checkEditable(vSelf);
|
||||||
|
|
||||||
-- Check order is not empty
|
-- Check order is not empty
|
||||||
|
|
||||||
SELECT COUNT(*) > 0 INTO vOk
|
SELECT COUNT(*) > 0 INTO vOk
|
||||||
FROM order_row WHERE order_id = vSelf AND amount > 0;
|
FROM order_row
|
||||||
|
WHERE order_id = vSelf
|
||||||
|
AND amount > 0;
|
||||||
|
|
||||||
IF NOT vOk THEN
|
IF NOT vOk THEN
|
||||||
CALL util.throw('ORDER_EMPTY');
|
CALL util.throw('ORDER_EMPTY');
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
-- Crea los tickets del pedido
|
-- Crea los tickets del pedido
|
||||||
|
|
||||||
OPEN cDates;
|
OPEN cDates;
|
||||||
|
|
||||||
lDates:
|
lDates:
|
||||||
LOOP
|
LOOP
|
||||||
SET vTicket = NULL;
|
SET vTicket = NULL;
|
||||||
|
|
Loading…
Reference in New Issue