|
|
@@ -28,6 +28,7 @@ export class CETE implements InstrumentComponent {
|
|
|
"posicion",
|
|
|
"plazo",
|
|
|
"fecha_pago",
|
|
|
+ "ingreso_bruto",
|
|
|
"ingreso_neto"
|
|
|
];
|
|
|
|
|
|
@@ -93,6 +94,7 @@ export class CETE implements InstrumentComponent {
|
|
|
dataSource = new MatTableDataSource(this.proyecciones);
|
|
|
dataSource2 = new MatTableDataSource(this.proyecciones);
|
|
|
hasProjections: boolean;
|
|
|
+ fecha_vencimiento: any;
|
|
|
|
|
|
constructor(
|
|
|
private formBuilder: FormBuilder,
|
|
|
@@ -176,7 +178,7 @@ export class CETE implements InstrumentComponent {
|
|
|
}
|
|
|
},
|
|
|
Validators.required
|
|
|
- ],
|
|
|
+ ] /*
|
|
|
fecha_vencimiento: [
|
|
|
this.instrument_exists
|
|
|
? ""
|
|
|
@@ -192,7 +194,7 @@ export class CETE implements InstrumentComponent {
|
|
|
}
|
|
|
},
|
|
|
Validators.required
|
|
|
- ],
|
|
|
+ ],*/,
|
|
|
fecha_operacion: [
|
|
|
this.instrument_exists
|
|
|
? ""
|
|
|
@@ -255,9 +257,9 @@ export class CETE implements InstrumentComponent {
|
|
|
.ceteCalc(
|
|
|
"CETE", // Codigo del instrumento
|
|
|
{
|
|
|
- id_tipo_base: this.general.base_anual,
|
|
|
- id_formato_ingreso: this.general.formato_ingreso,
|
|
|
- id_periodicidad: this.general.periodicidad
|
|
|
+ id_tipo_base: +this.general.base_anual,
|
|
|
+ id_formato_ingreso: +this.general.formato_ingreso,
|
|
|
+ id_periodicidad: +this.general.periodicidad
|
|
|
},
|
|
|
{
|
|
|
valor_nominal: +this.f.valor_nominal.value,
|
|
|
@@ -270,13 +272,12 @@ export class CETE 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
|
|
|
+ //fecha_vencimiento: this.f.fecha_vencimiento.value.singleDate.formatted
|
|
|
}
|
|
|
)
|
|
|
.subscribe(
|
|
|
ans => {
|
|
|
- console.log(ans);
|
|
|
this.ingreso_bruto = ans["result"]["ingreso_bruto"];
|
|
|
this.ingreso_neto = ans["result"]["ingreso_neto"];
|
|
|
this.valor_transado = ans["result"]["valor_transado"];
|
|
|
@@ -286,6 +287,7 @@ export class CETE implements InstrumentComponent {
|
|
|
this.comision_bolsa = ans["result"]["comision_bolsa"];
|
|
|
this.comision_casa = ans["result"]["comision_casa"];
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
+ this.fecha_vencimiento = ans["result"]["fecha_vencimiento"];
|
|
|
|
|
|
this.dataSource.data = this.proyecciones;
|
|
|
this.dataSource.paginator = this.paginator;
|
|
|
@@ -308,8 +310,7 @@ export class CETE implements InstrumentComponent {
|
|
|
.formatted,
|
|
|
fecha_ultima_cupon: this.f.fecha_ultima_cupon.value.singleDate
|
|
|
.formatted,
|
|
|
- fecha_vencimiento: this.f.fecha_vencimiento.value.singleDate
|
|
|
- .formatted,
|
|
|
+ fecha_vencimiento: this.fecha_vencimiento,
|
|
|
ingreso_bruto: this.ingreso_bruto,
|
|
|
ingreso_neto: this.ingreso_neto,
|
|
|
valor_transado: this.valor_transado,
|