7013-solunionRiskRequest #2190
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2190
Loading…
Reference in New Issue
No description provided.
Delete Branch "7013-solunionRiskRequest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -1,31 +1,40 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`solunionRiskRequest`()
Si hay posibilidad de cambiar el nombre seria conveniente
@ -28,0 +14,4 @@
LIMIT 10000000000000000000) t1
GROUP BY Id_Cliente;
CALL vn2008.risk_vs_client_list(util.VN_CURDATE());
@deprecated usar vn.client_getDebt
https://redmine.verdnatura.es/issues/6500 ja esta en esta tarea i hi ha que mirar que donen el mateix resultat.
@ -0,0 +34,4 @@
LEFT JOIN tmp.risk r ON r.Id_Cliente = ci.Id_Cliente
JOIN client c ON c.id = ci.Id_Cliente
JOIN bs.clientAnnualConsumption cac ON c.id = cac.clientFk
JOIN vn.country c2 ON c2.id = c.countryFk
vn. no es necesario
@ -0,0 +1,43 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditInsurance_getRisk`()
BEGIN
/**
Comentarios sin tabular
fet
@ -0,0 +2,4 @@
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditInsurance_getRisk`()
BEGIN
/**
* Devuelve el riesgo de los clientes que estan asegurados
Falta un espacio al principio de comentario
@ -0,0 +23,4 @@
c.name,
c.credit clientCredit,
c.creditInsurance solunion,
cast(r.risk as DECIMAL(10,0)) risk,
Funciones en mayúsculas