feat: refs #7335 Added call ticket_afterUpdate #2415
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2415
Loading…
Reference in New Issue
No description provided.
Delete Branch "7335-modifyCmr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -76,3 +70,3 @@
IF vPreviousCmrFk <> vCurrentCmrFk THEN
IF (SELECT EXISTS(SELECT * FROM tTicket)) THEN
UPDATE ticket
SET cmrFk = vCurrentCmrFk
SQL Error [1054] [42S22]: Unknown column 'vCurrentCmrFk' in 'field list'
@ -8,2 +8,4 @@
SET hasNewRoute = TRUE
WHERE ticketFk = NEW.id;
CALL ticket_doCmr(NEW.id);
tal com esta el if de dalt, si es posa una ruta a null o una ruta te null y se li asigna valor, en entra en este if...valora si això es correcte.
Es correcto, ya que si es uno de los dos (NEW.id o OLD.id) es null, no queremos que entre.
Ya que el CMR se genera cuando se le cambia el estado al ticket.
feat: refs #6585 Added call ticket_afterUpdateto feat: refs #7335 Added call ticket_afterUpdate