|
|
@@ -95,7 +95,7 @@ export class FINV implements InstrumentComponent {
|
|
|
operation_results_work: any = [];
|
|
|
instrument_work_summary: any = [];
|
|
|
cuota_participacion: any;
|
|
|
- valor_participacion: any;
|
|
|
+ valor_participacion_porcentaje: any;
|
|
|
dias_liquidacion: any;
|
|
|
dias_vencimiento: any;
|
|
|
valor_nominal: any;
|
|
|
@@ -156,8 +156,10 @@ export class FINV implements InstrumentComponent {
|
|
|
Validators.pattern(/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/)
|
|
|
]
|
|
|
],
|
|
|
- valor_participacion: [
|
|
|
- this.instrument_exists ? "" : this.instrument_work.valor_participacion,
|
|
|
+ valor_participacion_porcentaje: [
|
|
|
+ this.instrument_exists
|
|
|
+ ? ""
|
|
|
+ : this.instrument_work.valor_participacion_porcentaje,
|
|
|
[
|
|
|
Validators.required,
|
|
|
Validators.pattern(/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/)
|
|
|
@@ -271,7 +273,8 @@ export class FINV implements InstrumentComponent {
|
|
|
},
|
|
|
{
|
|
|
cuota_participacion: +this.f.cuota_participacion.value,
|
|
|
- valor_participacion: +this.f.valor_participacion.value,
|
|
|
+ valor_participacion_porcentaje: +this.f.valor_participacion_porcentaje
|
|
|
+ .value,
|
|
|
comision_bolsa_porcentaje: +this.f.comision_bolsa_porcentaje.value,
|
|
|
comision_casa_porcentaje: +this.f.comision_casa_porcentaje.value,
|
|
|
dividendo_porcentaje: +this.f.dividendo_porcentaje.value,
|
|
|
@@ -283,23 +286,32 @@ export class FINV implements InstrumentComponent {
|
|
|
)
|
|
|
.subscribe(
|
|
|
ans => {
|
|
|
- this.cuota_participacion = ans["result"]["cuota_participacion"];
|
|
|
- this.valor_participacion = ans["result"]["valor_participacion"];
|
|
|
- this.dias_liquidacion = ans["result"]["dias_liquidacion"];
|
|
|
- this.dias_vencimiento = ans["result"]["dias_vencimiento"];
|
|
|
- this.valor_nominal = ans["result"]["valor_nominal"];
|
|
|
- this.valor_transado = ans["result"]["valor_transado"];
|
|
|
+ this.cuota_participacion =
|
|
|
+ ans["result"]["instrumento"]["cuota_participacion"];
|
|
|
+ this.valor_participacion_porcentaje =
|
|
|
+ ans["result"]["instrumento"]["valor_participacion_porcentaje"];
|
|
|
+ this.dias_liquidacion =
|
|
|
+ ans["result"]["instrumento"]["dias_liquidacion"];
|
|
|
+ this.dias_vencimiento =
|
|
|
+ ans["result"]["instrumento"]["dias_vencimiento"];
|
|
|
+ this.valor_nominal = ans["result"]["instrumento"]["valor_nominal"];
|
|
|
+ this.valor_transado = ans["result"]["instrumento"]["valor_transado"];
|
|
|
this.comision_casa_porcentaje =
|
|
|
- ans["result"]["comision_casa_porcentaje"];
|
|
|
- this.comision_casa = ans["result"]["comision_casa"];
|
|
|
+ ans["result"]["instrumento"]["comision_casa_porcentaje"];
|
|
|
+ this.comision_casa = ans["result"]["instrumento"]["comision_casa"];
|
|
|
this.comision_bolsa_porcentaje =
|
|
|
- ans["result"]["comision_bolsa_porcentaje"];
|
|
|
- this.comision_bolsa = ans["result"]["comision_bolsa"];
|
|
|
- this.rendimiento_porcentaje = ans["result"]["rendimiento_porcentaje"];
|
|
|
- this.dividendo_porcentaje = ans["result"]["dividendo_porcentaje"];
|
|
|
- this.fecha_operacion = ans["result"]["fecha_operacion"];
|
|
|
- this.fecha_liquidacion = ans["result"]["fecha_liquidacion"];
|
|
|
- this.fecha_vencimiento = ans["result"]["fecha_vencimiento"];
|
|
|
+ ans["result"]["instrumento"]["comision_bolsa_porcentaje"];
|
|
|
+ this.comision_bolsa = ans["result"]["instrumento"]["comision_bolsa"];
|
|
|
+ this.rendimiento_porcentaje =
|
|
|
+ ans["result"]["instrumento"]["rendimiento_porcentaje"];
|
|
|
+ this.dividendo_porcentaje =
|
|
|
+ ans["result"]["instrumento"]["dividendo_porcentaje"];
|
|
|
+ this.fecha_operacion =
|
|
|
+ ans["result"]["instrumento"]["fecha_operacion"];
|
|
|
+ this.fecha_liquidacion =
|
|
|
+ ans["result"]["instrumento"]["fecha_liquidacion"];
|
|
|
+ this.fecha_vencimiento =
|
|
|
+ ans["result"]["instrumento"]["fecha_vencimiento"];
|
|
|
|
|
|
// Proyecciones
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
@@ -313,8 +325,8 @@ export class FINV implements InstrumentComponent {
|
|
|
this.fondosObject = {
|
|
|
cuota_participacion: this.investmentProposalForm.value
|
|
|
.cuota_participacion,
|
|
|
- valor_participacion: this.investmentProposalForm.value
|
|
|
- .valor_participacion,
|
|
|
+ valor_participacion_porcentaje: this.investmentProposalForm.value
|
|
|
+ .valor_participacion_porcentaje,
|
|
|
comision_bolsa_porcentaje: this.investmentProposalForm.value
|
|
|
.comision_bolsa_porcentaje,
|
|
|
comision_casa_porcentaje: this.investmentProposalForm.value
|