feat: refs #7173 Added restrictions in invoiceIn structure

This commit is contained in:
Guillermo Bonet 2024-04-16 08:58:26 +02:00
parent 91d5f51e73
commit 45fac06c6b
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`invoiceInCorrection_beforeInsert`
BEFORE INSERT ON `invoiceInCorrection`
FOR EACH ROW
BEGIN
CALL invoiceIn_checkBooked(NEW.correctingFk);
END$$
DELIMITER ;