18 lines
463 B
SQL
18 lines
463 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_afterInsert`
|
|
AFTER INSERT ON `order`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
IF NEW.address_id = 2850 THEN
|
|
-- Fallo que se insertan no se sabe como tickets en este cliente
|
|
CALL vn.mail_insert(
|
|
'jgallego@verdnatura.es',
|
|
'noreply@verdnatura.es',
|
|
'Creada order al address 2850',
|
|
CONCAT(account.myUser_getName(), ' ha creado la order ',NEW.id)
|
|
);
|
|
|
|
END IF;
|
|
END$$
|
|
DELIMITER ;
|