refs #7400 feat: book ledger with counters #2467

Merged
carlosap merged 3 commits from 7400-Contador-para-los-asientos-contables into dev 2024-05-16 18:13:40 +00:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 8d8cfa24de - Show all commits

View File

@ -1,5 +1,8 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ledger_next`(OUT vNewBookEntry INT)
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ledger_next`(
IN vFiscalYear INT,
OUT vNewBookEntry INT
)
BEGIN
UPDATE ledgerCompany
SET bookEntry = LAST_INSERT_ID(bookEntry + 1)