salix/db/routines/vn/procedures/invoiceInDueDay_recalc.sql

12 lines
270 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` PROCEDURE `vn`.`invoiceInDueDay_recalc`(vInvoiceInFk INT)
BEGIN
DELETE FROM invoiceInDueDay
WHERE invoiceInFk = vInvoiceInFk;
CALL invoiceInDueDay_calculate(vInvoiceInFk);
END$$
DELIMITER ;