|
@@ -156,7 +156,9 @@ export class TIT implements InstrumentComponent {
|
|
|
this.instrument_work.proyecciones != ""
|
|
this.instrument_work.proyecciones != ""
|
|
|
) {
|
|
) {
|
|
|
this.hasProjections = true;
|
|
this.hasProjections = true;
|
|
|
- this.consolidado_proyeccion = this.instrument_work.proyecciones.pop();
|
|
|
|
|
|
|
+ this.consolidado_proyeccion = this.instrument_work.proyecciones[
|
|
|
|
|
+ this.instrument_work.proyecciones.length - 1
|
|
|
|
|
+ ];
|
|
|
this.operation_results_work = this.instrument_work["resultado_operacion"];
|
|
this.operation_results_work = this.instrument_work["resultado_operacion"];
|
|
|
|
|
|
|
|
if (this.instrument_work["instrumento"] != undefined) {
|
|
if (this.instrument_work["instrumento"] != undefined) {
|
|
@@ -164,12 +166,13 @@ export class TIT implements InstrumentComponent {
|
|
|
}
|
|
}
|
|
|
this.instrument_work_summary = this.instrument_work;
|
|
this.instrument_work_summary = this.instrument_work;
|
|
|
|
|
|
|
|
- this.dataSource2.data = this.instrument_work.proyecciones;
|
|
|
|
|
|
|
+ this.dataSource2.data = this.instrument_work.proyecciones.slice(0, -1);
|
|
|
this.dataSource2.paginator = this.paginator;
|
|
this.dataSource2.paginator = this.paginator;
|
|
|
this.dataSource2.sort = this.sort;
|
|
this.dataSource2.sort = this.sort;
|
|
|
} else {
|
|
} else {
|
|
|
this.hasProjections = false;
|
|
this.hasProjections = false;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (!this.instrument_exists) {
|
|
if (!this.instrument_exists) {
|
|
|
this.amortizaciones = this.instrument_work.amortizacion_porcentajes;
|
|
this.amortizaciones = this.instrument_work.amortizacion_porcentajes;
|
|
|
}
|
|
}
|
|
@@ -605,13 +608,14 @@ export class TIT implements InstrumentComponent {
|
|
|
// Proyecciones
|
|
// Proyecciones
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
if (this.proyecciones != undefined && this.proyecciones.length > 0) {
|
|
if (this.proyecciones != undefined && this.proyecciones.length > 0) {
|
|
|
- this.hasProjections = true;
|
|
|
|
|
- //this.consolidado_proyeccion = this.proyecciones.pop();
|
|
|
|
|
- this.proyecciones;
|
|
|
|
|
|
|
+ let proyecciones_temp = this.proyecciones;
|
|
|
|
|
+ this.consolidado_proyeccion =
|
|
|
|
|
+ proyecciones_temp[proyecciones_temp.length - 1];
|
|
|
|
|
+ this.proyecciones = ans["result"]["proyecciones"];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- this.dataSource.data = this.proyecciones;
|
|
|
|
|
- this.dataSource2.data = this.proyecciones;
|
|
|
|
|
|
|
+ this.dataSource.data = this.proyecciones.slice(0, -1);
|
|
|
|
|
+ this.dataSource2.data = this.proyecciones.slice(0, -1);
|
|
|
|
|
|
|
|
this.dataSource.paginator = this.paginator;
|
|
this.dataSource.paginator = this.paginator;
|
|
|
this.dataSource.sort = this.sort;
|
|
this.dataSource.sort = this.sort;
|