bdpformulas 1.0.96 → 1.0.99
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.
- package/build/models/eeff/admFinanciera/index.d.ts +27 -0
- package/build/models/eeff/balanceProyectado.d.ts +75 -0
- package/build/models/eeff/balanceProyectado.js +34 -0
- package/build/models/eeff/supuestos.d.ts +15 -0
- package/build/models/eeff/supuestos.js +17 -1
- package/build/strategies/balance.strategy.js +6 -5
- package/build/strategies/eeff/admFinanciera/lineasMixtasHandler.d.ts +3 -0
- package/build/strategies/eeff/admFinanciera/lineasMixtasHandler.js +23 -2
- package/build/strategies/eeff/admFinanciera/prestamoBajoLineaHandler.d.ts +4 -2
- package/build/strategies/eeff/admFinanciera/prestamoBajoLineaHandler.js +9 -0
- package/build/strategies/eeff/admFinanciera/prestamoDirectoHandler.d.ts +8 -2
- package/build/strategies/eeff/admFinanciera/prestamoDirectoHandler.js +38 -0
- package/build/strategies/eeff/admFinanciera/prestamoLeasingHandler.d.ts +10 -2
- package/build/strategies/eeff/admFinanciera/prestamoLeasingHandler.js +89 -3
- package/build/strategies/eeff/admFinanciera.strategy.d.ts +2 -0
- package/build/strategies/eeff/admFinanciera.strategy.js +37 -1
- package/build/strategies/eeff/balanceProyectado/balanceHandler.d.ts +77 -0
- package/build/strategies/eeff/balanceProyectado/balanceHandler.js +760 -0
- package/build/strategies/eeff/balanceProyectado/balanceProyectado.strategy.d.ts +15 -4
- package/build/strategies/eeff/balanceProyectado/balanceProyectado.strategy.js +165 -3
- package/build/strategies/eeff/balanceProyectado/eerrHandler.d.ts +33 -0
- package/build/strategies/eeff/balanceProyectado/eerrHandler.js +284 -0
- package/build/strategies/eeff/balanceProyectado/flujoCajaHandler.d.ts +46 -0
- package/build/strategies/eeff/balanceProyectado/flujoCajaHandler.js +294 -0
- package/build/strategies/eeff/balanceProyectado/map.d.ts +10 -0
- package/build/strategies/eeff/balanceProyectado/map.js +24 -0
- package/build/strategies/eeff/index.d.ts +1 -0
- package/build/strategies/eeff/index.js +9240 -0
- package/build/strategies/eeff/mappings/balance.d.ts +5 -1
- package/build/strategies/eeff/mappings/balance.js +481 -66
- package/build/strategies/eeff/mappings/balanceProyectado.d.ts +2 -0
- package/build/strategies/eeff/mappings/balanceProyectado.js +774 -0
- package/build/strategies/eeff/mappings/indices.d.ts +4 -0
- package/build/strategies/eeff/mappings/indices.js +262 -0
- package/build/strategies/eeff/mappings/supuestos.d.ts +4 -0
- package/build/strategies/eeff/mappings/supuestos.js +476 -0
- package/build/strategies/eeff/supuestos.strategy.d.ts +19 -0
- package/build/strategies/eeff/supuestos.strategy.js +130 -0
- package/build/strategies/utils.d.ts +1 -0
- package/build/strategies/utils.js +9 -1
- package/package.json +1 -1
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { BalanceProyectadoCalcData, BalanceProyectadoStrategyData } from '../../../models/eeff/balanceProyectado';
|
|
2
|
+
import { Strategy } from '../../../strategy.interface';
|
|
3
|
+
export default class BalanceProyectadoStrategy implements Strategy {
|
|
4
|
+
private data;
|
|
5
|
+
private proyectado;
|
|
6
|
+
private balanceData;
|
|
7
|
+
private supuestosData;
|
|
8
|
+
private indicesData;
|
|
4
9
|
constructor();
|
|
5
|
-
execute(data:
|
|
10
|
+
execute(data: BalanceProyectadoStrategyData): BalanceProyectadoCalcData;
|
|
11
|
+
private generarFilasConfiguracion;
|
|
12
|
+
private setBalanceData;
|
|
13
|
+
private setSupuestosData;
|
|
14
|
+
private setIndicesData;
|
|
15
|
+
private setearAnhoBase;
|
|
16
|
+
private getCalcData;
|
|
6
17
|
}
|
|
@@ -1,11 +1,173 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
const utils_1 = require("../admFinanciera/utils");
|
|
4
|
+
const balanceProyectado_1 = require("../mappings/balanceProyectado");
|
|
5
|
+
const balance_1 = require("../mappings/balance");
|
|
6
|
+
const supuestos_1 = require("../mappings/supuestos");
|
|
7
|
+
const map_1 = require("./map");
|
|
8
|
+
const eerrHandler_1 = require("./eerrHandler");
|
|
9
|
+
const indices_1 = require("../mappings/indices");
|
|
10
|
+
const balanceHandler_1 = require("./balanceHandler");
|
|
11
|
+
const flujoCajaHandler_1 = require("./flujoCajaHandler");
|
|
12
|
+
class BalanceProyectadoStrategy {
|
|
4
13
|
data;
|
|
14
|
+
proyectado;
|
|
15
|
+
balanceData;
|
|
16
|
+
supuestosData;
|
|
17
|
+
indicesData;
|
|
5
18
|
constructor() {
|
|
6
|
-
this.data =
|
|
19
|
+
this.data = null;
|
|
20
|
+
this.proyectado = new map_1.BalanceProyectadoMap();
|
|
21
|
+
this.balanceData = new Map();
|
|
22
|
+
this.supuestosData = new Map();
|
|
23
|
+
this.indicesData = new Map();
|
|
7
24
|
}
|
|
8
25
|
execute(data) {
|
|
26
|
+
this.data = data;
|
|
27
|
+
this.setBalanceData();
|
|
28
|
+
this.setSupuestosData();
|
|
29
|
+
this.setIndicesData();
|
|
30
|
+
this.generarFilasConfiguracion();
|
|
31
|
+
const handlersData = {
|
|
32
|
+
balanceData: this.balanceData,
|
|
33
|
+
supuestosData: this.supuestosData,
|
|
34
|
+
proyectado: this.proyectado,
|
|
35
|
+
indicesData: this.indicesData,
|
|
36
|
+
data: this.data
|
|
37
|
+
};
|
|
38
|
+
const balanceHandler = new balanceHandler_1.BalanceHandler(handlersData);
|
|
39
|
+
const eerrHandler = new eerrHandler_1.EERRHandler(handlersData);
|
|
40
|
+
const flujoCajaHandler = new flujoCajaHandler_1.FlujoCajaHandler(handlersData);
|
|
41
|
+
balanceHandler.setEERRHandler(eerrHandler);
|
|
42
|
+
eerrHandler.setBalanceHandler(balanceHandler);
|
|
43
|
+
flujoCajaHandler.setBalanceHandler(balanceHandler);
|
|
44
|
+
this.setearAnhoBase();
|
|
45
|
+
balanceHandler.calcular();
|
|
46
|
+
eerrHandler.calcular();
|
|
47
|
+
flujoCajaHandler.calcular();
|
|
48
|
+
balanceHandler.setTotales();
|
|
49
|
+
console.log(JSON.stringify(Array.from(this.supuestosData.entries()).reduce((acc, [key, value]) => {
|
|
50
|
+
const splitKey = key.split('_');
|
|
51
|
+
const fila = splitKey[0];
|
|
52
|
+
const gestion = splitKey[1];
|
|
53
|
+
let el = acc.find((el) => el.Fila == fila);
|
|
54
|
+
if (!el) {
|
|
55
|
+
el = {
|
|
56
|
+
Fila: fila
|
|
57
|
+
};
|
|
58
|
+
acc.push(el);
|
|
59
|
+
}
|
|
60
|
+
el[`Gestion${gestion}`] = value;
|
|
61
|
+
return acc;
|
|
62
|
+
}, [])));
|
|
63
|
+
return this.getCalcData();
|
|
64
|
+
}
|
|
65
|
+
generarFilasConfiguracion() {
|
|
66
|
+
for (const [key] of balanceProyectado_1.balanceProyectadoMapping) {
|
|
67
|
+
for (let i = 1; i <= (this.data?.CantidadProyeccion ?? 0); i++) {
|
|
68
|
+
this.proyectado.set(`${key}_${i}`, 0);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
setBalanceData() {
|
|
73
|
+
const balanceArray = [
|
|
74
|
+
...(this.data?.Balance.Balance || []),
|
|
75
|
+
...(this.data?.Balance.EstadoResultados || []),
|
|
76
|
+
...(this.data?.Balance.FlujoCaja || [])
|
|
77
|
+
];
|
|
78
|
+
for (const [key, val] of balance_1.balanceMappings) {
|
|
79
|
+
const element = balanceArray.find((el) => el.RubroId === val.rubroId);
|
|
80
|
+
for (let i = 1; i <= (this.data?.CantidadGestiones ?? 0); i++) {
|
|
81
|
+
this.balanceData.set(`${key}_${i}`, (0, utils_1.ourParseFloat)(element?.[`Gestion${i}`]));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
setSupuestosData() {
|
|
86
|
+
for (const [key, val] of supuestos_1.supuestosMapping) {
|
|
87
|
+
const element = this.data?.Supuestos.find((el) => el.RubroId === val.rubroId);
|
|
88
|
+
for (let i = 1; i <= (this.data?.CantidadProyeccion ?? 0); i++) {
|
|
89
|
+
this.supuestosData.set(`${key}_${i}`, {
|
|
90
|
+
Clasificacion: element?.Clasificacion,
|
|
91
|
+
Monto: (0, utils_1.ourParseFloat)(element?.[`Gestion${i}`])
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
setIndicesData() {
|
|
97
|
+
for (const [key, val] of indices_1.indicesMapping) {
|
|
98
|
+
const element = this.data?.Indices.find((el) => el.RubroId === val.rubroId);
|
|
99
|
+
for (let i = 1; i <= (this.data?.CantidadGestiones ?? 0); i++) {
|
|
100
|
+
let num = String(element?.[`Gestion${i}`]).replaceAll('%', '');
|
|
101
|
+
num = num.replaceAll('.', '');
|
|
102
|
+
num = num.replaceAll(',', '.');
|
|
103
|
+
num = num.replace('(', '-');
|
|
104
|
+
num = num.replace(')', '');
|
|
105
|
+
this.indicesData.set(`${key}_${i}`, (0, utils_1.ourParseFloat)(num));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
setearAnhoBase() {
|
|
110
|
+
//BALANCE
|
|
111
|
+
//de Disponibles a Otras Cuentas Activos No Circulantes (N.Op)
|
|
112
|
+
for (let i = 20; i <= 42; i++) {
|
|
113
|
+
this.proyectado.set(`X${i}_0`, this.balanceData.get(`X${i}_${this.data?.InicioProyeccionGestion}`));
|
|
114
|
+
}
|
|
115
|
+
//Deuda Financiera de Corto Plazo
|
|
116
|
+
this.proyectado.set('X46_0', this.balanceData.get(`X47_${this.data?.InicioProyeccionGestion}`));
|
|
117
|
+
// de Vencimiento Corriente de Deuda de Largo Plazo BDP a Reserva Legal
|
|
118
|
+
for (let i = 48; i <= 76; i++) {
|
|
119
|
+
this.proyectado.set(`X${i}_0`, this.balanceData.get(`X${i}_${this.data?.InicioProyeccionGestion}`));
|
|
120
|
+
}
|
|
121
|
+
// Otras Reservas
|
|
122
|
+
this.proyectado.set('X77_0', (0, utils_1.ourParseFloat)(this.balanceData.get(`X77_${this.data?.InicioProyeccionGestion}`)) +
|
|
123
|
+
(0, utils_1.ourParseFloat)(this.balanceData.get(`X78_${this.data?.InicioProyeccionGestion}`)));
|
|
124
|
+
// de Otra Cuenta de Patrimonio (Ajuste de Gestión Anterior + Ajuste Capital) Corriente de Deuda de Largo Plazo BDP a Resultado de la Gestión
|
|
125
|
+
for (let i = 78; i <= 81; i++) {
|
|
126
|
+
this.proyectado.set(`X${i}_0`, this.balanceData.get(`X${i + 1}_${this.data?.InicioProyeccionGestion}`));
|
|
127
|
+
}
|
|
128
|
+
//EERR
|
|
129
|
+
// de venta de productos a Gastos Financieros Op. Leasing
|
|
130
|
+
for (let i = 101; i <= 111; i++) {
|
|
131
|
+
this.proyectado.set(`X${i}_0`, this.balanceData.get(`X${i - 1}_${this.data?.InicioProyeccionGestion}`));
|
|
132
|
+
}
|
|
133
|
+
// de Ingresos No Operacionales a Ingresos o Gastos Diferidos
|
|
134
|
+
for (let i = 113; i <= 115; i++) {
|
|
135
|
+
this.proyectado.set(`X${i}_0`, this.balanceData.get(`X${i - 2}_${this.data?.InicioProyeccionGestion}`));
|
|
136
|
+
}
|
|
137
|
+
// de Ingreso por Ajuste por Inflación y Tenencia de Bienes a Impuestos sobre Utilidades
|
|
138
|
+
for (let i = 117; i <= 120; i++) {
|
|
139
|
+
this.proyectado.set(`X${i}_0`, this.balanceData.get(`X${i - 3}_${this.data?.InicioProyeccionGestion}`));
|
|
140
|
+
}
|
|
141
|
+
//Impuestos sobre Utilidades (2)
|
|
142
|
+
this.proyectado.set('X121_0', this.balanceData.get(`X117_${this.data?.CantidadGestiones}`));
|
|
143
|
+
// pago de dividendos
|
|
144
|
+
this.proyectado.set('X124_0', this.indicesData.get(`X62_${this.data?.CantidadGestiones}`));
|
|
145
|
+
}
|
|
146
|
+
getCalcData() {
|
|
147
|
+
const calcData = {
|
|
148
|
+
Balance: [],
|
|
149
|
+
EERR: [],
|
|
150
|
+
FlujoCaja: []
|
|
151
|
+
};
|
|
152
|
+
for (const [key, value] of balanceProyectado_1.balanceProyectadoMapping) {
|
|
153
|
+
const fila = {
|
|
154
|
+
...value
|
|
155
|
+
};
|
|
156
|
+
for (let i = 0; i <= (this.data?.CantidadProyeccion ?? -1); i++) {
|
|
157
|
+
fila[`Gestion${i}`] = this.proyectado.get(`${key}_${i}`);
|
|
158
|
+
}
|
|
159
|
+
const nroFila = parseInt(key.split('X')[1]);
|
|
160
|
+
if (nroFila >= 100 && nroFila <= 124) {
|
|
161
|
+
calcData.EERR.push(fila);
|
|
162
|
+
}
|
|
163
|
+
else if (nroFila >= 138 && nroFila <= 176) {
|
|
164
|
+
calcData.FlujoCaja.push(fila);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
calcData.Balance.push(fila);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return calcData;
|
|
9
171
|
}
|
|
10
172
|
}
|
|
11
|
-
exports.default =
|
|
173
|
+
exports.default = BalanceProyectadoStrategy;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BalanceProyectadoHandlerData } from '../../../models/eeff/balanceProyectado';
|
|
2
|
+
import { BalanceHandler } from './balanceHandler';
|
|
3
|
+
export declare class EERRHandler {
|
|
4
|
+
protected data: BalanceProyectadoHandlerData;
|
|
5
|
+
protected balanceHandler: BalanceHandler | null;
|
|
6
|
+
constructor(data: BalanceProyectadoHandlerData);
|
|
7
|
+
setBalanceHandler(balanceHandler: BalanceHandler): void;
|
|
8
|
+
calcular(): void;
|
|
9
|
+
private set100;
|
|
10
|
+
private set101;
|
|
11
|
+
private set102;
|
|
12
|
+
private set103;
|
|
13
|
+
private set104;
|
|
14
|
+
private set105;
|
|
15
|
+
private set106;
|
|
16
|
+
private set107;
|
|
17
|
+
private set108;
|
|
18
|
+
private set109;
|
|
19
|
+
private set110;
|
|
20
|
+
private set111;
|
|
21
|
+
private set112;
|
|
22
|
+
private set113;
|
|
23
|
+
private set114;
|
|
24
|
+
private set115;
|
|
25
|
+
private set116;
|
|
26
|
+
private set117;
|
|
27
|
+
private set118;
|
|
28
|
+
private set119;
|
|
29
|
+
private set120;
|
|
30
|
+
private set121;
|
|
31
|
+
private set122;
|
|
32
|
+
private set124;
|
|
33
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EERRHandler = void 0;
|
|
4
|
+
const balanceProyectado_1 = require("../../../models/eeff/balanceProyectado");
|
|
5
|
+
const proyeccionPrestamosDirectosHandler_1 = require("../admFinanciera/proyeccionPrestamosDirectosHandler");
|
|
6
|
+
const utils_1 = require("../admFinanciera/utils");
|
|
7
|
+
class EERRHandler {
|
|
8
|
+
data;
|
|
9
|
+
balanceHandler = null;
|
|
10
|
+
constructor(data) {
|
|
11
|
+
this.data = data;
|
|
12
|
+
}
|
|
13
|
+
setBalanceHandler(balanceHandler) {
|
|
14
|
+
this.balanceHandler = balanceHandler;
|
|
15
|
+
}
|
|
16
|
+
calcular() {
|
|
17
|
+
for (let i = 1; i <= this.data.data.CantidadProyeccion; i++) {
|
|
18
|
+
this.set101(i);
|
|
19
|
+
this.set102(i);
|
|
20
|
+
this.set100(i);
|
|
21
|
+
this.set103(i);
|
|
22
|
+
this.set104(i);
|
|
23
|
+
this.balanceHandler?.set21(i);
|
|
24
|
+
this.set105(i);
|
|
25
|
+
this.balanceHandler?.set23(i);
|
|
26
|
+
this.balanceHandler?.set51(i);
|
|
27
|
+
this.set106(i);
|
|
28
|
+
this.set107(i);
|
|
29
|
+
this.set108(i);
|
|
30
|
+
this.set109(i);
|
|
31
|
+
this.set110(i);
|
|
32
|
+
this.set111(i);
|
|
33
|
+
this.set112(i);
|
|
34
|
+
this.set113(i);
|
|
35
|
+
this.set114(i);
|
|
36
|
+
this.set115(i);
|
|
37
|
+
this.set116(i);
|
|
38
|
+
this.set117(i);
|
|
39
|
+
this.set118(i);
|
|
40
|
+
this.set119(i);
|
|
41
|
+
this.set121(i);
|
|
42
|
+
this.set120(i);
|
|
43
|
+
this.set122(i);
|
|
44
|
+
this.balanceHandler?.set76(i);
|
|
45
|
+
this.balanceHandler?.set81(i);
|
|
46
|
+
this.set124(i);
|
|
47
|
+
this.balanceHandler?.set80(i);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
set100(gestion) {
|
|
51
|
+
const val = this.data.proyectado.get(`X101_${gestion}`) +
|
|
52
|
+
this.data.proyectado.get(`X102_${gestion}`);
|
|
53
|
+
this.data.proyectado.set(`X100_${gestion}`, val);
|
|
54
|
+
}
|
|
55
|
+
set101(gestion) {
|
|
56
|
+
const sup20 = this.data.supuestosData.get(`X20_${gestion}`);
|
|
57
|
+
const anterior = this.data.proyectado.get(`X101_${gestion - 1}`);
|
|
58
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
59
|
+
supuesto: sup20,
|
|
60
|
+
value: anterior
|
|
61
|
+
});
|
|
62
|
+
this.data.proyectado.set(`X101_${gestion}`, val);
|
|
63
|
+
}
|
|
64
|
+
set102(gestion) {
|
|
65
|
+
const sup21 = this.data.supuestosData.get(`X21_${gestion}`);
|
|
66
|
+
const anterior = this.data.proyectado.get(`X102_${gestion - 1}`);
|
|
67
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
68
|
+
supuesto: sup21,
|
|
69
|
+
value: anterior
|
|
70
|
+
});
|
|
71
|
+
this.data.proyectado.set(`X102_${gestion}`, val);
|
|
72
|
+
}
|
|
73
|
+
set103(gestion) {
|
|
74
|
+
const sup22 = this.data.supuestosData.get(`X22_${gestion}`);
|
|
75
|
+
const anterior = this.data.proyectado.get(`X103_${gestion - 1}`);
|
|
76
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
77
|
+
supuesto: sup22,
|
|
78
|
+
value: anterior,
|
|
79
|
+
valueForPv: this.data.proyectado.get(`X100_${gestion}`)
|
|
80
|
+
});
|
|
81
|
+
this.data.proyectado.set(`X103_${gestion}`, val);
|
|
82
|
+
}
|
|
83
|
+
set104(gestion) {
|
|
84
|
+
const val = this.data.proyectado.get(`X100_${gestion}`) -
|
|
85
|
+
this.data.proyectado.get(`X103_${gestion}`);
|
|
86
|
+
this.data.proyectado.set(`X104_${gestion}`, val);
|
|
87
|
+
}
|
|
88
|
+
set105(gestion) {
|
|
89
|
+
const sup26 = this.data.supuestosData.get(`X26_${gestion}`);
|
|
90
|
+
const anterior = this.data.proyectado.get(`X105_${gestion - 1}`);
|
|
91
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
92
|
+
supuesto: sup26,
|
|
93
|
+
value: anterior,
|
|
94
|
+
valueForPv: this.data.proyectado.get(`X104_${gestion}`)
|
|
95
|
+
});
|
|
96
|
+
this.data.proyectado.set(`X105_${gestion}`, val);
|
|
97
|
+
}
|
|
98
|
+
set106(gestion) {
|
|
99
|
+
const val = this.data.proyectado.get(`X104_${gestion}`) -
|
|
100
|
+
this.data.proyectado.get(`X105_${gestion}`);
|
|
101
|
+
this.data.proyectado.set(`X106_${gestion}`, val);
|
|
102
|
+
}
|
|
103
|
+
set107(gestion) {
|
|
104
|
+
const sup27 = this.data.supuestosData.get(`X27_${gestion}`);
|
|
105
|
+
const anterior = this.data.proyectado.get(`X107_${gestion - 1}`);
|
|
106
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
107
|
+
supuesto: sup27,
|
|
108
|
+
value: anterior,
|
|
109
|
+
valueForPv: this.data.proyectado.get(`X104_${gestion}`)
|
|
110
|
+
});
|
|
111
|
+
this.data.proyectado.set(`X107_${gestion}`, val);
|
|
112
|
+
}
|
|
113
|
+
set108(gestion) {
|
|
114
|
+
const sup43 = this.data.supuestosData.get(`X43_${gestion}`);
|
|
115
|
+
const sup45 = this.data.supuestosData.get(`X45_${gestion}`);
|
|
116
|
+
this.data.proyectado.set(`X107_${gestion}`, (0, utils_1.ourParseFloat)(sup43?.Monto) + (0, utils_1.ourParseFloat)(sup45?.Monto));
|
|
117
|
+
}
|
|
118
|
+
set109(gestion) {
|
|
119
|
+
const proy106 = this.data.proyectado.get(`X106_${gestion}`);
|
|
120
|
+
const proy107 = this.data.proyectado.get(`X107_${gestion}`);
|
|
121
|
+
const proy108 = this.data.proyectado.get(`X108_${gestion}`);
|
|
122
|
+
this.data.proyectado.set(`X107_${gestion}`, proy106 + proy107 + proy108);
|
|
123
|
+
}
|
|
124
|
+
set110(gestion) {
|
|
125
|
+
const sup101 = this.data.supuestosData.get(`X101_${gestion}`);
|
|
126
|
+
const admFinanciera839 = (0, utils_1.ourParseFloat)(this.data.data.AdmFinancieraData.Totales.General
|
|
127
|
+
.CuadroCostosFinancierosComisiones[`Gestion${gestion}`]);
|
|
128
|
+
const admFinanciera982 = (0, utils_1.ourParseFloat)(this.data.data.AdmFinancieraData.ProyeccionPrestamosDirectos[proyeccionPrestamosDirectosHandler_1.FILAS_PROYECCION_PRESTAMOS_DIRECTOS['Interes - MANUAL']]?.[`Gestion${gestion}`]);
|
|
129
|
+
let val = admFinanciera839 + admFinanciera982;
|
|
130
|
+
if (sup101?.Clasificacion === 'A') {
|
|
131
|
+
val += (0, utils_1.ourParseFloat)(sup101?.Monto);
|
|
132
|
+
}
|
|
133
|
+
this.data.proyectado.set(`X110_${gestion}`, val);
|
|
134
|
+
}
|
|
135
|
+
set111(gestion) {
|
|
136
|
+
const sup106 = this.data.supuestosData.get(`X106_${gestion}`);
|
|
137
|
+
const admFinanciera666 = (0, utils_1.ourParseFloat)(this.data.data.AdmFinancieraData.Totales.PrestamosLeasing
|
|
138
|
+
.AmortizacionesInteres[`Gestion${gestion}`]);
|
|
139
|
+
const admFinanciera987 = (0, utils_1.ourParseFloat)(this.data.data.AdmFinancieraData.ProyeccionPrestamosDirectos[proyeccionPrestamosDirectosHandler_1.FILAS_PROYECCION_PRESTAMOS_DIRECTOS['Interes Leasing - MANUAL']]?.[`Gestion${gestion}`]);
|
|
140
|
+
let val = admFinanciera666 + admFinanciera987;
|
|
141
|
+
if (sup106?.Clasificacion === 'A') {
|
|
142
|
+
val += (0, utils_1.ourParseFloat)(sup106?.Monto);
|
|
143
|
+
}
|
|
144
|
+
this.data.proyectado.set(`X110_${gestion}`, val);
|
|
145
|
+
}
|
|
146
|
+
set112(gestion) {
|
|
147
|
+
const sup48 = this.data.supuestosData.get(`X48_${gestion}`);
|
|
148
|
+
const proy35 = this.data.proyectado.get(`X35_${gestion}`);
|
|
149
|
+
let val = 0;
|
|
150
|
+
const montoSup48 = (0, utils_1.ourParseFloat)(sup48?.Monto);
|
|
151
|
+
if (sup48?.Clasificacion === 'P') {
|
|
152
|
+
val = montoSup48 * proy35;
|
|
153
|
+
}
|
|
154
|
+
else if (sup48?.Clasificacion === 'A') {
|
|
155
|
+
val = montoSup48;
|
|
156
|
+
}
|
|
157
|
+
this.data.proyectado.set(`X112_${gestion}`, val);
|
|
158
|
+
}
|
|
159
|
+
set113(gestion) {
|
|
160
|
+
const sup23 = this.data.supuestosData.get(`X23_${gestion}`);
|
|
161
|
+
const anterior = this.data.proyectado.get(`X113_${gestion - 1}`);
|
|
162
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
163
|
+
supuesto: sup23,
|
|
164
|
+
value: anterior,
|
|
165
|
+
valueForPv: sup23?.Monto
|
|
166
|
+
});
|
|
167
|
+
this.data.proyectado.set(`X113_${gestion}`, val);
|
|
168
|
+
}
|
|
169
|
+
set114(gestion) {
|
|
170
|
+
const sup28 = this.data.supuestosData.get(`X28_${gestion}`);
|
|
171
|
+
const anterior = this.data.proyectado.get(`X114_${gestion - 1}`);
|
|
172
|
+
const proy104 = this.data.proyectado.get(`X104_${gestion}`);
|
|
173
|
+
const admFinanciera694 = (0, utils_1.ourParseFloat)(this.data.data.AdmFinancieraData.Totales.PrestamosLeasing
|
|
174
|
+
.EfectoPerdidaLeaseback[`Gestion${gestion}`]);
|
|
175
|
+
let val = 0;
|
|
176
|
+
const montoSupuesto = (0, utils_1.ourParseFloat)(sup28?.Monto);
|
|
177
|
+
if (sup28?.Clasificacion === 'C') {
|
|
178
|
+
val = anterior * (1 + montoSupuesto) + admFinanciera694;
|
|
179
|
+
}
|
|
180
|
+
else if (sup28?.Clasificacion === 'A') {
|
|
181
|
+
val = montoSupuesto + admFinanciera694;
|
|
182
|
+
}
|
|
183
|
+
else if (sup28?.Clasificacion === 'CA') {
|
|
184
|
+
val = anterior + montoSupuesto + admFinanciera694;
|
|
185
|
+
}
|
|
186
|
+
else if (sup28?.Clasificacion === 'PV') {
|
|
187
|
+
val = proy104 * montoSupuesto + admFinanciera694;
|
|
188
|
+
}
|
|
189
|
+
this.data.proyectado.set(`X114_${gestion}`, val);
|
|
190
|
+
}
|
|
191
|
+
set115(gestion) {
|
|
192
|
+
this.data.proyectado.set(`X115_${gestion}`, this.data.proyectado.get(`X28_${gestion - 1}`) -
|
|
193
|
+
this.data.proyectado.get(`X28_${gestion}`) +
|
|
194
|
+
this.data.proyectado.get(`X41_${gestion - 1}`) -
|
|
195
|
+
this.data.proyectado.get(`X41_${gestion}`) +
|
|
196
|
+
this.data.proyectado.get(`X58_${gestion}`) -
|
|
197
|
+
this.data.proyectado.get(`X58_${gestion - 1}`) +
|
|
198
|
+
this.data.proyectado.get(`X69_${gestion}`) -
|
|
199
|
+
this.data.proyectado.get(`X69_${gestion - 1}`));
|
|
200
|
+
}
|
|
201
|
+
set116(gestion) {
|
|
202
|
+
const sup52 = (0, utils_1.ourParseFloat)(this.data.supuestosData.get(`X52_${gestion}`)?.Monto);
|
|
203
|
+
const sup53 = (0, utils_1.ourParseFloat)(this.data.supuestosData.get(`X53_${gestion}`)?.Monto);
|
|
204
|
+
const proyAnt121 = this.data.proyectado.get(`X121_${gestion - 1}`);
|
|
205
|
+
const proy104 = this.data.proyectado.get(`X104_${gestion}`);
|
|
206
|
+
let val;
|
|
207
|
+
if (sup52 * proy104 + sup53 * proy104 - proyAnt121 < sup52 * proy104) {
|
|
208
|
+
val = sup52 * proy104;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
val = sup52 * proy104 + sup53 * proy104 - proyAnt121;
|
|
212
|
+
}
|
|
213
|
+
this.data.proyectado.set(`X116_${gestion}`, val);
|
|
214
|
+
}
|
|
215
|
+
set117(gestion) {
|
|
216
|
+
const sup24 = this.data.supuestosData.get(`X24_${gestion}`);
|
|
217
|
+
const anterior = this.data.proyectado.get(`X117_${gestion - 1}`);
|
|
218
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
219
|
+
supuesto: sup24,
|
|
220
|
+
value: anterior,
|
|
221
|
+
valueForPv: this.data.proyectado.get(`X104_${gestion}`)
|
|
222
|
+
});
|
|
223
|
+
this.data.proyectado.set(`X117_${gestion}`, val);
|
|
224
|
+
}
|
|
225
|
+
set118(gestion) {
|
|
226
|
+
const sup29 = this.data.supuestosData.get(`X29_${gestion}`);
|
|
227
|
+
const anterior = this.data.proyectado.get(`X118_${gestion - 1}`);
|
|
228
|
+
const val = (0, balanceProyectado_1.getValueWithSupuestoByClasificacion)({
|
|
229
|
+
supuesto: sup29,
|
|
230
|
+
value: anterior,
|
|
231
|
+
valueForPv: this.data.proyectado.get(`X104_${gestion}`)
|
|
232
|
+
});
|
|
233
|
+
this.data.proyectado.set(`X118_${gestion}`, val);
|
|
234
|
+
}
|
|
235
|
+
set119(gestion) {
|
|
236
|
+
const val = this.data.proyectado.get(`X109_${gestion}`) -
|
|
237
|
+
this.data.proyectado.get(`X110_${gestion}`) -
|
|
238
|
+
this.data.proyectado.get(`X111_${gestion}`) +
|
|
239
|
+
this.data.proyectado.get(`X112_${gestion}`) +
|
|
240
|
+
this.data.proyectado.get(`X113_${gestion}`) -
|
|
241
|
+
this.data.proyectado.get(`X114_${gestion}`) +
|
|
242
|
+
this.data.proyectado.get(`X115_${gestion}`) -
|
|
243
|
+
this.data.proyectado.get(`X116_${gestion}`) +
|
|
244
|
+
this.data.proyectado.get(`X117_${gestion}`) -
|
|
245
|
+
this.data.proyectado.get(`X118_${gestion}`);
|
|
246
|
+
this.data.proyectado.set(`X118_${gestion}`, val);
|
|
247
|
+
}
|
|
248
|
+
set120(gestion) {
|
|
249
|
+
const proy121 = this.data.proyectado.get(`X121_${gestion}`);
|
|
250
|
+
let val = 0;
|
|
251
|
+
if (proy121 >= 0) {
|
|
252
|
+
val = proy121;
|
|
253
|
+
}
|
|
254
|
+
this.data.proyectado.set(`X120_${gestion}`, val);
|
|
255
|
+
}
|
|
256
|
+
set121(gestion) {
|
|
257
|
+
const sup45 = this.data.supuestosData.get(`X45_${gestion}`);
|
|
258
|
+
const sup51 = this.data.supuestosData.get(`X51_${gestion}`);
|
|
259
|
+
const proy119 = this.data.proyectado.get(`X119_${gestion}`);
|
|
260
|
+
const admFinanciera636 = (0, utils_1.ourParseFloat)(this.data.data.AdmFinancieraData.Totales.PrestamosLeasing
|
|
261
|
+
.AmortizacionesCapital[`Gestion${gestion}`]);
|
|
262
|
+
const val = (proy119 + (0, utils_1.ourParseFloat)(sup45?.Monto) - admFinanciera636) *
|
|
263
|
+
(0, utils_1.ourParseFloat)(sup51?.Monto);
|
|
264
|
+
this.data.proyectado.set(`X121_${gestion}`, val);
|
|
265
|
+
}
|
|
266
|
+
set122(gestion) {
|
|
267
|
+
const val = this.data.proyectado.get(`X119_${gestion}`) -
|
|
268
|
+
this.data.proyectado.get(`X120_${gestion}`);
|
|
269
|
+
this.data.proyectado.set(`X122_${gestion}`, val);
|
|
270
|
+
}
|
|
271
|
+
set124(gestion) {
|
|
272
|
+
const proy119 = this.data.proyectado.get(`X119_${gestion}`);
|
|
273
|
+
if (proy119 > 0) {
|
|
274
|
+
const proy122 = this.data.proyectado.get(`X122_${gestion}`);
|
|
275
|
+
const sup57 = this.data.supuestosData.get(`X57_${gestion}`);
|
|
276
|
+
const sup66 = this.data.supuestosData.get(`X66_${gestion}`);
|
|
277
|
+
const val = proy122 *
|
|
278
|
+
((1 - (0, utils_1.ourParseFloat)(sup57?.Monto)) *
|
|
279
|
+
(0, utils_1.ourParseFloat)(sup66?.Monto));
|
|
280
|
+
this.data.proyectado.set(`X124_${gestion}`, val);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
exports.EERRHandler = EERRHandler;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BalanceProyectadoHandlerData } from '../../../models/eeff/balanceProyectado';
|
|
2
|
+
import { BalanceHandler } from './balanceHandler';
|
|
3
|
+
export declare class FlujoCajaHandler {
|
|
4
|
+
protected data: BalanceProyectadoHandlerData;
|
|
5
|
+
protected balanceHandler: BalanceHandler | null;
|
|
6
|
+
constructor(data: BalanceProyectadoHandlerData);
|
|
7
|
+
setBalanceHandler(balanceHandler: BalanceHandler): void;
|
|
8
|
+
calcular(): void;
|
|
9
|
+
private set138_1;
|
|
10
|
+
private set138;
|
|
11
|
+
private set139;
|
|
12
|
+
private set140;
|
|
13
|
+
private set141;
|
|
14
|
+
private set142;
|
|
15
|
+
private set143;
|
|
16
|
+
private set144;
|
|
17
|
+
private set145;
|
|
18
|
+
private set146;
|
|
19
|
+
private set147;
|
|
20
|
+
private set148;
|
|
21
|
+
private set149;
|
|
22
|
+
private set150;
|
|
23
|
+
private set151;
|
|
24
|
+
private set152;
|
|
25
|
+
private set153;
|
|
26
|
+
private set154;
|
|
27
|
+
private set155;
|
|
28
|
+
private set156;
|
|
29
|
+
private set157;
|
|
30
|
+
private set158;
|
|
31
|
+
private set159;
|
|
32
|
+
private set160;
|
|
33
|
+
private set161;
|
|
34
|
+
private set162;
|
|
35
|
+
private set163;
|
|
36
|
+
private set164;
|
|
37
|
+
private set165;
|
|
38
|
+
private set166;
|
|
39
|
+
private set167;
|
|
40
|
+
private set169;
|
|
41
|
+
private set170;
|
|
42
|
+
private set171;
|
|
43
|
+
private set172;
|
|
44
|
+
private set174;
|
|
45
|
+
private set176;
|
|
46
|
+
}
|