|
|
@@ -578,71 +578,46 @@ export class TIT implements InstrumentComponent {
|
|
|
this.fecha_inicio_vigencia =
|
|
|
ans["result"]["instrumento_compra"]["fecha_inicio_vigencia"];
|
|
|
|
|
|
- // Instrumento de venta
|
|
|
- this.comision_casa_venta =
|
|
|
- ans["result"]["instrumento_venta"]["comision_casa_venta"];
|
|
|
- this.comision_bolsa_venta =
|
|
|
- ans["result"]["instrumento_venta"]["comision_bolsa_venta"];
|
|
|
-
|
|
|
- this.fecha_siguiente_cupon_venta =
|
|
|
- ans["result"]["instrumento_venta"]["fecha_siguiente_cupon_venta"];
|
|
|
- this.dias_vencimiento_venta =
|
|
|
- ans["result"]["instrumento_venta"]["dias_vencimiento_venta"];
|
|
|
- this.dias_acumulados_venta =
|
|
|
- ans["result"]["instrumento_venta"]["dias_acumulados_venta"];
|
|
|
- this.ytm_vencimiento_comision_porcentaje_venta =
|
|
|
- ans["result"]["instrumento_venta"][
|
|
|
- "ytm_vencimiento_comision_porcentaje_venta"
|
|
|
- ];
|
|
|
- this.ytm_vencimiento_porcentaje_venta =
|
|
|
- ans["result"]["instrumento_venta"][
|
|
|
- "ytm_vencimiento_porcentaje_venta"
|
|
|
- ];
|
|
|
- this.interes_acumulado_venta =
|
|
|
- ans["result"]["instrumento_venta"]["interes_acumulado_venta"];
|
|
|
- this.interes_acumulado_porcentaje_venta =
|
|
|
- ans["result"]["instrumento_venta"][
|
|
|
- "interes_acumulado_porcentaje_venta"
|
|
|
- ];
|
|
|
- this.precio_sucio_porcentaje_venta =
|
|
|
- ans["result"]["instrumento_venta"]["precio_sucio_porcentaje_venta"];
|
|
|
- this.valor_transado_venta =
|
|
|
- ans["result"]["instrumento_venta"]["valor_transado_venta"];
|
|
|
- this.monto_recibir =
|
|
|
- ans["result"]["instrumento_venta"]["monto_recibir"];
|
|
|
-
|
|
|
- // // Resultado de la operacion
|
|
|
- // this.operation_result = true;
|
|
|
- // this.valor_transado_compra =
|
|
|
- // ans["result"]["resultado_operacion"]["valor_transado_compra"];
|
|
|
- // this.precio_compra =
|
|
|
- // ans["result"]["resultado_operacion"]["precio_compra"];
|
|
|
- // this.precio_venta =
|
|
|
- // ans["result"]["resultado_operacion"]["precio_venta"];
|
|
|
- // this.dias_tenencia_total =
|
|
|
- // ans["result"]["resultado_operacion"]["dias_tenencia_total"];
|
|
|
- // this.ganancia_perdida_capital =
|
|
|
- // ans["result"]["resultado_operacion"]["ganancia_perdida_capital"];
|
|
|
- // this.ingresos_intereses =
|
|
|
- // ans["result"]["resultado_operacion"]["ingresos_intereses"];
|
|
|
- // this.costos_totales =
|
|
|
- // ans["result"]["resultado_operacion"]["costos_totales"];
|
|
|
- // this.ganancia_perdida_total =
|
|
|
- // ans["result"]["resultado_operacion"]["ganancia_perdida_total_neto"];
|
|
|
- // this.ganancia_perdida_capital_porcentaje =
|
|
|
- // ans["result"]["resultado_operacion"][
|
|
|
- // "ganancia_perdida_capital_porcentaje"
|
|
|
- // ];
|
|
|
- // this.intereses_porcentaje =
|
|
|
- // ans["result"]["resultado_operacion"]["intereses_porcentaje"];
|
|
|
- // this.neto_antes_impuesto_porcentaje =
|
|
|
- // ans["result"]["resultado_operacion"]["neto_antes_renta_porcentaje"];
|
|
|
- // this.neto_despues_impuesto_porcentaje =
|
|
|
- // ans["result"]["resultado_operacion"][
|
|
|
- // "neto_despues_renta_porcentaje"
|
|
|
- // ];
|
|
|
- // this.total_ingresos_recibidos =
|
|
|
- // ans["result"]["resultado_operacion"]["total_interes_recibidos"];
|
|
|
+ if (this.tipoEjecucion == 1) {
|
|
|
+ // Instrumento de venta
|
|
|
+ this.comision_casa_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["comision_casa_venta"];
|
|
|
+ this.comision_bolsa_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["comision_bolsa_venta"];
|
|
|
+
|
|
|
+ this.fecha_siguiente_cupon_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["fecha_siguiente_cupon_venta"];
|
|
|
+ this.dias_vencimiento_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["dias_vencimiento_venta"];
|
|
|
+ this.dias_acumulados_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["dias_acumulados_venta"];
|
|
|
+ this.ytm_vencimiento_comision_porcentaje_venta =
|
|
|
+ ans["result"]["instrumento_venta"][
|
|
|
+ "ytm_vencimiento_comision_porcentaje_venta"
|
|
|
+ ];
|
|
|
+ this.ytm_vencimiento_porcentaje_venta =
|
|
|
+ ans["result"]["instrumento_venta"][
|
|
|
+ "ytm_vencimiento_porcentaje_venta"
|
|
|
+ ];
|
|
|
+ this.interes_acumulado_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["interes_acumulado_venta"];
|
|
|
+ this.interes_acumulado_porcentaje_venta =
|
|
|
+ ans["result"]["instrumento_venta"][
|
|
|
+ "interes_acumulado_porcentaje_venta"
|
|
|
+ ];
|
|
|
+ this.precio_sucio_porcentaje_venta =
|
|
|
+ ans["result"]["instrumento_venta"][
|
|
|
+ "precio_sucio_porcentaje_venta"
|
|
|
+ ];
|
|
|
+ this.valor_transado_venta =
|
|
|
+ ans["result"]["instrumento_venta"]["valor_transado_venta"];
|
|
|
+ this.monto_recibir =
|
|
|
+ ans["result"]["instrumento_venta"]["monto_recibir"];
|
|
|
+
|
|
|
+ // // Resultado de la operacion
|
|
|
+ this.operation_result = true;
|
|
|
+ this.operation_results_work = ans["result"]["resultado_operacion"];
|
|
|
+ }
|
|
|
|
|
|
// Proyecciones
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
@@ -796,10 +771,7 @@ export class TIT implements InstrumentComponent {
|
|
|
"valor_transado_venta"
|
|
|
] = this.valor_transado_venta;
|
|
|
|
|
|
- this.titulosObject[
|
|
|
- "monto_recibir"
|
|
|
- ] = this.monto_recibir;
|
|
|
-
|
|
|
+ this.titulosObject["monto_recibir"] = this.monto_recibir;
|
|
|
}
|
|
|
|
|
|
this.formDataService.setWork(this.titulosObject);
|