Jelajahi Sumber

Merge branch 'features-o' of onunez/frontend-inversiones into test

Oscar José Nuñez Chávez 5 tahun lalu
induk
melakukan
8287779299

+ 1 - 1
src/app/components/instruments/bonos/bonos.component.ts

@@ -646,7 +646,7 @@ export class BONO implements InstrumentComponent {
             total_ingresos_recibidos: this.total_ingresos_recibidos,
             */
             // Proyecciones
-            proyecciones: this.proyecciones.slice(0, -1)
+            proyecciones: this.proyecciones
           };
 
           this.formDataService.setWork(this.bonosObject);

+ 1 - 1
src/app/components/instruments/certificados/certificados.component.ts

@@ -649,7 +649,7 @@ export class CINV implements InstrumentComponent {
             total_ingresos_recibidos: this.total_ingresos_recibidos,
 
             // Proyecciones
-            proyecciones: this.proyecciones.slice(0, -1)
+            proyecciones: this.proyecciones
           };
 
           this.formDataService.setWork(this.bonosObject);

+ 1 - 1
src/app/components/instruments/cete/cete.component.ts

@@ -334,7 +334,7 @@ export class CETE implements InstrumentComponent {
             total_pagar: this.total_pagar,
             comision_bolsa: this.comision_bolsa,
             comision_casa: this.comision_casa,
-            proyecciones: this.proyecciones.slice(0, -1)
+            proyecciones: this.proyecciones
           };
 
           this.formDataService.setWork(this.ceteObject);

+ 1 - 1
src/app/components/instruments/dap/dap.component.ts

@@ -261,7 +261,7 @@ export class DAP implements InstrumentComponent {
             renta: this.renta,
             numero_certificado: this.investmentProposalForm.value
               .numero_certificado,
-            proyecciones: this.proyecciones.slice(0, -1),
+            proyecciones: this.proyecciones,
 
             fecha_operacion: this.investmentProposalForm.value.fecha_operacion
               .singleDate.formatted,

+ 1 - 1
src/app/components/instruments/eurobonos/eurobonos.component.ts

@@ -646,7 +646,7 @@ export class EURB implements InstrumentComponent {
             total_ingresos_recibidos: this.total_ingresos_recibidos,
 
             // Proyecciones
-            proyecciones: this.proyecciones.slice(0, -1)
+            proyecciones: this.proyecciones
           };
 
           this.formDataService.setWork(this.bonosObject);

+ 1 - 1
src/app/components/instruments/fondos/fondos.component.ts

@@ -364,7 +364,7 @@ export class FINV implements InstrumentComponent {
             fecha_vencimiento: this.fecha_vencimiento,
 
             // Proyecciones
-            proyecciones: this.proyecciones.slice(0, -1)
+            proyecciones: this.proyecciones
           };
 
           this.formDataService.setWork(this.fondosObject);

+ 1 - 1
src/app/components/instruments/pbur/pbur.component.ts

@@ -352,7 +352,7 @@ export class PBUR implements InstrumentComponent {
             total_pagar: this.total_pagar,
             interes_acumulado: this.interes_acumulado,
             fecha_inicio_vigencia: this.fecha_inicio_vigencia,
-            proyecciones: this.proyecciones.slice(0, -1),
+            proyecciones: this.proyecciones,
             plazo: this.investmentProposalForm.value.plazo,
             //id_formato_ingreso: this.investmentProposalForm.value.id_formato_ingreso,
 

+ 1 - 1
src/app/components/instruments/titulos/titulos.component.ts

@@ -716,7 +716,7 @@ export class TIT implements InstrumentComponent {
             amortizacion_porcentajes: this.amortizaciones,-**/
             // Proyecciones
             costo_cedeval: this.f.costo_cedeval.value,
-            proyecciones: this.proyecciones.slice(0, -1)
+            proyecciones: this.proyecciones
           };
 
           this.formDataService.setWork(this.titulosObject);

+ 1 - 1
src/app/components/instruments/vcn/vcn.component.ts

@@ -361,7 +361,7 @@ export class VCN implements InstrumentComponent {
             total_pagar: this.total_pagar,
             interes_acumulado: this.interes_acumulado,
             fecha_inicio_vigencia: this.fecha_inicio_vigencia,
-            proyecciones: this.proyecciones.slice(0, -1),
+            proyecciones: this.proyecciones,
             plazo: this.plazo,
             //id_formato_ingreso: this.investmentProposalForm.value.id_formato_ingreso,
 

+ 4 - 1
src/app/components/investment-proposals/result/result.component.ts

@@ -254,7 +254,10 @@ export class ResultComponent implements OnInit {
       (this.instrument["proyecciones"] != undefined ||
         this.instrument["proyecciones"] != "")
     ) {
-      this.inversion["proyecciones"] = this.instrument["proyecciones"];
+      this.inversion["proyecciones"] = this.instrument["proyecciones"].slice(
+        0,
+        -1
+      );
     }
   }