salix/db/routines/vn/triggers/invoiceInTax_beforeDelete.sql

9 lines
218 B
SQL

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`invoiceInTax_beforeDelete`
BEFORE DELETE ON `invoiceInTax`
FOR EACH ROW
BEGIN
CALL invoiceIn_checkIsBooked(OLD.invoiceInFk);
END$$
DELIMITER ;