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