refactor: refs #7181 Minor change
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-04-10 14:23:24 +02:00
parent 5044cd454d
commit 7b3472aa0b
1 changed files with 9 additions and 2 deletions

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,