salix/db/routines/sage/triggers/movConta_beforeUpdate.sql

11 lines
281 B
MySQL
Raw Normal View History

DELIMITER $$
2024-01-25 16:33:54 +00:00
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `sage`.`movConta_beforeUpdate`
BEFORE UPDATE ON `movConta`
FOR EACH ROW
BEGIN
IF NEW.enlazadoSage = TRUE THEN
UPDATE vn.XDiario SET enlazadoSage = TRUE WHERE ASIEN = NEW.Asiento;
END IF;
END$$
DELIMITER ;