|
@@ -92,6 +92,7 @@ export class DAP implements InstrumentComponent {
|
|
|
renta: any;
|
|
renta: any;
|
|
|
hasProjections: boolean;
|
|
hasProjections: boolean;
|
|
|
numero_certificado: any;
|
|
numero_certificado: any;
|
|
|
|
|
+ fecha_vencimiento: any;
|
|
|
|
|
|
|
|
constructor(
|
|
constructor(
|
|
|
private formBuilder: FormBuilder,
|
|
private formBuilder: FormBuilder,
|
|
@@ -221,8 +222,7 @@ export class DAP implements InstrumentComponent {
|
|
|
renta_porcentaje: +this.f.renta_porcentaje.value,
|
|
renta_porcentaje: +this.f.renta_porcentaje.value,
|
|
|
plazo: +this.f.plazo.value,
|
|
plazo: +this.f.plazo.value,
|
|
|
//id_formato_ingreso: this.f.formato_ingreso.value,
|
|
//id_formato_ingreso: this.f.formato_ingreso.value,
|
|
|
- fecha_operacion: this.f.fecha_operacion.value.singleDate.formatted,
|
|
|
|
|
- fecha_vencimiento: this.f.fecha_vencimiento.value.singleDate.formatted
|
|
|
|
|
|
|
+ fecha_operacion: this.f.fecha_operacion.value.singleDate.formatted
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
.subscribe(
|
|
.subscribe(
|
|
@@ -237,6 +237,8 @@ export class DAP implements InstrumentComponent {
|
|
|
this.renta = ans["result"]["renta"];
|
|
this.renta = ans["result"]["renta"];
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
this.numero_certificado = ans["result"]["numero_certificado"];
|
|
this.numero_certificado = ans["result"]["numero_certificado"];
|
|
|
|
|
+ this.fecha_vencimiento = ans["result"]["fecha_vencimiento"];
|
|
|
|
|
+
|
|
|
this.dataSource.data = this.proyecciones;
|
|
this.dataSource.data = this.proyecciones;
|
|
|
this.dataSource.paginator = this.paginator;
|
|
this.dataSource.paginator = this.paginator;
|
|
|
this.dataSource.sort = this.sort;
|
|
this.dataSource.sort = this.sort;
|
|
@@ -258,12 +260,7 @@ export class DAP implements InstrumentComponent {
|
|
|
proyecciones: this.proyecciones,
|
|
proyecciones: this.proyecciones,
|
|
|
|
|
|
|
|
fecha_operacion: this.investmentProposalForm.value.fecha_operacion
|
|
fecha_operacion: this.investmentProposalForm.value.fecha_operacion
|
|
|
- .singleDate.formatted,
|
|
|
|
|
- fecha_vencimiento:
|
|
|
|
|
- this.investmentProposalForm.value.fecha_vencimiento != undefined
|
|
|
|
|
- ? this.investmentProposalForm.value.fecha_vencimiento.singleDate
|
|
|
|
|
- .formatted
|
|
|
|
|
- : ""
|
|
|
|
|
|
|
+ .singleDate.formatted
|
|
|
};
|
|
};
|
|
|
this.formDataService.setWork(this.dapObject);
|
|
this.formDataService.setWork(this.dapObject);
|
|
|
Swal.close();
|
|
Swal.close();
|