bdpformulas 1.0.54 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,6 +199,7 @@ class PrestamoDirectoHandler {
|
|
|
199
199
|
if (!this.prestamo.EsBajoLinea && añoProyectadoInicio >= 1) {
|
|
200
200
|
let value;
|
|
201
201
|
for (let i = 1; i <= this.data.CantidadProyeccion; i++) {
|
|
202
|
+
value = 0;
|
|
202
203
|
const plazo = (0, utils_1.ourParseFloat)(plazos?.[`Gestion${i}`]);
|
|
203
204
|
if (this.prestamo.TipoFacilidad === 'VARIABLE') {
|
|
204
205
|
if (i === 1) {
|
|
@@ -214,7 +215,7 @@ class PrestamoDirectoHandler {
|
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
else {
|
|
217
|
-
if (añoProyectadoInicio <= i) {
|
|
218
|
+
if (plazo && añoProyectadoInicio <= i) {
|
|
218
219
|
if ((0, utils_1.ourParseFloat)(this.prestamo.PlazoRemanenteAños) < (0, utils_1.ourParseFloat)(plazo)) {
|
|
219
220
|
value = this.prestamo.MontoOriginal;
|
|
220
221
|
}
|
|
@@ -268,6 +269,7 @@ class PrestamoDirectoHandler {
|
|
|
268
269
|
if (this.prestamo.EsBajoLinea) {
|
|
269
270
|
let value;
|
|
270
271
|
for (let i = 1; i <= this.data.CantidadProyeccion; i++) {
|
|
272
|
+
value = 0;
|
|
271
273
|
const plazo = plazos?.[`Gestion${i}`];
|
|
272
274
|
if (i === 1) {
|
|
273
275
|
if (plazo && this.prestamo.AnnoProyectadoInicio === 1) {
|
|
@@ -285,8 +285,8 @@ const data = {
|
|
|
285
285
|
};
|
|
286
286
|
console.log(JSON.stringify(strategy.execute({
|
|
287
287
|
CantidadProyeccion: 12,
|
|
288
|
-
InicioProyeccion: '2025-03-
|
|
289
|
-
UltimaGestion: '2024-03-
|
|
288
|
+
InicioProyeccion: '2025-03-01T00:00:00.000Z',
|
|
289
|
+
UltimaGestion: '2024-03-01T00:00:00.000Z',
|
|
290
290
|
PrestamoDirecto: [
|
|
291
291
|
{
|
|
292
292
|
ActividadDeudaId: 65,
|