bdpformulas 1.0.68 → 1.0.69
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.
|
@@ -13,13 +13,12 @@ class SupuestosStrategy {
|
|
|
13
13
|
//@ts-ignore
|
|
14
14
|
const origenRow = origen.find((item) => item.RubroId == rubroOrigen);
|
|
15
15
|
//@ts-ignore
|
|
16
|
-
|
|
16
|
+
let destinoRow = this.data.find((item) => item.RubroId == rubroDestino);
|
|
17
17
|
if (!percent)
|
|
18
18
|
destinoRow.Gestion1 = this.cleanNumber(origenRow[`Gestion${this.cantidadGestiones}`]);
|
|
19
19
|
else {
|
|
20
20
|
destinoRow.Gestion1 = this.cleanNumber(origenRow[`Gestion${this.cantidadGestiones}%`] / 100);
|
|
21
|
-
destinoRow.Gestion1 =
|
|
22
|
-
Math.round(destinoRow.Gestion1 * 100) / 100;
|
|
21
|
+
destinoRow.Gestion1 = Math.round(destinoRow.Gestion1 * 100) / 100;
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -32,21 +31,17 @@ class SupuestosStrategy {
|
|
|
32
31
|
execute(data) {
|
|
33
32
|
this.data = data.Supuestos;
|
|
34
33
|
this.cantidadGestiones = data.CantidadGestiones;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
let rowDeprecCoef = data.Supuestos.find((item) => item.RubroId == 'ACT_SUP_10402');
|
|
35
|
+
let rowDeprecValue = data.Supuestos.find((item) => item.RubroId == 'ACT_SUP_10403');
|
|
36
|
+
let rowDeprecCoefLeasing = data.Supuestos.find((item) => item.RubroId == 'ACT_SUP_10404');
|
|
37
|
+
let rowDeprecValueLeasing = data.Supuestos.find((item) => item.RubroId == 'ACT_SUP_10405');
|
|
39
38
|
for (let i = 1; i <= data.CantidadProyeccion; i++) {
|
|
40
39
|
const activosFijosNetos = data.BalanceProyectado.find((item) => item.Correlativo == i && item.RubroId == 'BP_ACT_EF_12003');
|
|
41
40
|
const activosPorArrendamiento = data.BalanceProyectado.find((item) => item.Correlativo == i && item.RubroId == 'BP_ACT_EF_12004');
|
|
42
41
|
if (rowDeprecValue != null)
|
|
43
|
-
rowDeprecValue[`Gestion${i}`] =
|
|
44
|
-
this.cleanNumber(rowDeprecCoef[`Gestion${i}`]) *
|
|
45
|
-
this.cleanNumber(activosFijosNetos.Monto);
|
|
42
|
+
rowDeprecValue[`Gestion${i}`] = this.cleanNumber(rowDeprecCoef[`Gestion${i}`]) * this.cleanNumber(activosFijosNetos.Monto);
|
|
46
43
|
if (rowDeprecValueLeasing != null)
|
|
47
|
-
rowDeprecValueLeasing[`Gestion${i}`] =
|
|
48
|
-
this.cleanNumber(rowDeprecCoefLeasing[`Gestion${i}`]) *
|
|
49
|
-
this.cleanNumber(activosPorArrendamiento.Monto);
|
|
44
|
+
rowDeprecValueLeasing[`Gestion${i}`] = this.cleanNumber(rowDeprecCoefLeasing[`Gestion${i}`]) * this.cleanNumber(activosPorArrendamiento.Monto);
|
|
50
45
|
}
|
|
51
46
|
this.anadirPrecalculo(data.EEFF.eerr, 'ACT_EF_42000', 'ACT_SUP_10101');
|
|
52
47
|
this.anadirPrecalculo(data.EEFF.eerr, 'ACT_EF_44003', 'ACT_SUP_10104');
|