feat: ref#7902 Triggers vn.ticketRefund to control deleted tickets
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
08c7bd2c42
commit
41af809917
|
@ -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