8179-testToMaster #3176
|
@ -13,9 +13,10 @@ BEGIN
|
|||
*/
|
||||
DECLARE vIsDeleted BOOL;
|
||||
|
||||
SELECT SUM(ABS(isDeleted)) INTO vIsDeleted
|
||||
SELECT COUNT(*) INTO vIsDeleted
|
||||
FROM ticket
|
||||
WHERE id IN (vRefundTicketFk, vOriginalTicketFk);
|
||||
WHERE id IN (vRefundTicketFk, vOriginalTicketFk)
|
||||
AND isDeleted;
|
||||
|
||||
IF vIsDeleted THEN
|
||||
CALL util.throw('The refund ticket can not be deleted tickets');
|
||||
|
|
Loading…
Reference in New Issue