2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ledger_next`(OUT vNewBookEntry INT)
|
|
|
|
BEGIN
|
2024-05-16 16:48:59 +00:00
|
|
|
UPDATE ledgerCompany
|
|
|
|
SET bookEntry = LAST_INSERT_ID(bookEntry + 1)
|
|
|
|
WHERE fiscalYear = vFiscalYear;
|
|
|
|
|
|
|
|
SET vNewBookEntry = LAST_INSERT_ID();
|
2024-01-15 11:31:03 +00:00
|
|
|
END$$
|
|
|
|
DELIMITER ;
|