7167-testToMaster_2414 #2244

Merged
alexm merged 643 commits from 7167-testToMaster_2414 into master 2024-04-04 05:32:41 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 4b41ac68aa - Show all commits

View File

@ -2,8 +2,8 @@ DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditInsurance_getRisk`() CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditInsurance_getRisk`()
BEGIN BEGIN
/** /**
* Devuelve el riesgo de los clientes que estan asegurados * Devuelve el riesgo de los clientes que estan asegurados
*/ */
CREATE OR REPLACE TEMPORARY TABLE tmp.client_list CREATE OR REPLACE TEMPORARY TABLE tmp.client_list
(PRIMARY KEY (Id_Cliente)) (PRIMARY KEY (Id_Cliente))
ENGINE = MEMORY ENGINE = MEMORY
@ -23,8 +23,8 @@ BEGIN
c.name, c.name,
c.credit clientCredit, c.credit clientCredit,
c.creditInsurance solunion, c.creditInsurance solunion,
cast(r.risk as DECIMAL(10,0)) risk, CAST(r.risk AS DECIMAL(10,0)) risk,
cast(c.creditInsurance - r.risk as decimal(10,0)) riskAlive, CAST(c.creditInsurance - r.risk AS DECIMAL(10,0)) riskAlive,
cac.invoiced billedAnnually, cac.invoiced billedAnnually,
c.dueDay, c.dueDay,
ci.grade, ci.grade,