|
|
@@ -94,6 +94,7 @@ export class PBUR implements InstrumentComponent {
|
|
|
dataSource2 = new MatTableDataSource(this.proyecciones);
|
|
|
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
|
|
@ViewChild(MatSort, { static: true }) sort: MatSort;
|
|
|
+ fecha_vencimiento: any;
|
|
|
constructor(
|
|
|
private formBuilder: FormBuilder,
|
|
|
private router: Router,
|
|
|
@@ -140,7 +141,7 @@ export class PBUR implements InstrumentComponent {
|
|
|
[Validators.pattern(/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/)]
|
|
|
],
|
|
|
renta_porcentaje: [
|
|
|
- this.instrument_exists ? "" : this.instrument_work.renta_porcentaje,
|
|
|
+ this.instrument_exists ? 10 : this.instrument_work.renta_porcentaje,
|
|
|
[Validators.required]
|
|
|
],
|
|
|
comision_casa_porcentaje: [
|
|
|
@@ -267,7 +268,7 @@ export class PBUR implements InstrumentComponent {
|
|
|
Swal.showLoading();
|
|
|
|
|
|
this.instrumentCalcService
|
|
|
- .vcnCalc(
|
|
|
+ .pburCalc(
|
|
|
"PBUR", // Codigo del instrumento
|
|
|
{
|
|
|
id_tipo_base: +this.general.base_anual,
|
|
|
@@ -288,8 +289,7 @@ export class PBUR implements InstrumentComponent {
|
|
|
fecha_liquidacion: this.f.fecha_liquidacion.value.singleDate
|
|
|
.formatted,
|
|
|
fecha_ultima_cupon: this.f.fecha_ultima_cupon.value.singleDate
|
|
|
- .formatted,
|
|
|
- fecha_vencimiento: this.f.fecha_vencimiento.value.singleDate.formatted
|
|
|
+ .formatted
|
|
|
}
|
|
|
)
|
|
|
.subscribe(
|
|
|
@@ -302,10 +302,10 @@ export class PBUR implements InstrumentComponent {
|
|
|
this.total_pagar = ans["result"]["total_pagar"];
|
|
|
this.comision_bolsa = ans["result"]["comision_bolsa"];
|
|
|
this.comision_casa = ans["result"]["comision_casa"];
|
|
|
- this.plazo = ans["result"]["plazo"];
|
|
|
this.interes_acumulado = ans["result"]["interes_acumulado"];
|
|
|
this.fecha_inicio_vigencia = ans["result"]["fecha_inicio_vigencia"];
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
+ this.fecha_vencimiento = ans["result"]["fecha_vencimiento"];
|
|
|
|
|
|
if (this.f.valor_par.value == true) {
|
|
|
this.hasProjections = true;
|
|
|
@@ -353,11 +353,6 @@ export class PBUR implements InstrumentComponent {
|
|
|
this.investmentProposalForm.value.fecha_ultima_cupon != undefined
|
|
|
? this.investmentProposalForm.value.fecha_ultima_cupon
|
|
|
.singleDate.formatted
|
|
|
- : "",
|
|
|
- fecha_vencimiento:
|
|
|
- this.investmentProposalForm.value.fecha_vencimiento != undefined
|
|
|
- ? this.investmentProposalForm.value.fecha_vencimiento.singleDate
|
|
|
- .formatted
|
|
|
: ""
|
|
|
};
|
|
|
this.formDataService.setWork(this.pburObject);
|