chore: refs #7919 delete if ticketRefund
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-10-10 16:30:04 +02:00
parent 9a7aa315e5
commit 770c604d6b
1 changed files with 5 additions and 0 deletions

View File

@ -12,5 +12,10 @@ BEGIN
CALL ticket_doCmr(NEW.id); CALL ticket_doCmr(NEW.id);
END IF; END IF;
END IF; END IF;
IF NEW.isDeleted THEN
DELETE FROM ticketRefund
WHERE refundTicketFk = NEW.id;
END IF;
END$$ END$$
DELIMITER ; DELIMITER ;