7299_testToMaster #2411

Merged
alexm merged 342 commits from 7299_testToMaster into master 2024-05-07 05:30:42 +00:00
1 changed files with 9 additions and 2 deletions
Showing only changes of commit 7b3472aa0b - Show all commits

View File

@ -1,6 +1,13 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`riskAllClients`(maxRiskDate DATE)
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`riskAllClients`(
vDate DATE
)
BEGIN
/**
* Retorna el riesgo de los clientes activos.
*
* @param vDate Fecha a calcular
*/
CREATE OR REPLACE TEMPORARY TABLE tmp.clientGetDebt
(PRIMARY KEY (clientFk))
ENGINE = MEMORY
@ -8,7 +15,7 @@ BEGIN
FROM client
WHERE isActive;
CALL client_getDebt(maxRiskDate);
CALL client_getDebt(vDate);
SELECT c.socialName,
r.clientFk,