소스 검색

Merge branch 'feature-formato' of onunez/frontend-inversiones into development

ahernandez 5 년 전
부모
커밋
fa1aaa6119
2개의 변경된 파일1개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 10
      src/app/components/instruments/pper/pper.component.ts
  2. 0 1
      src/app/services/instrument-calculations.service.ts

+ 1 - 10
src/app/components/instruments/pper/pper.component.ts

@@ -144,13 +144,7 @@ export class PPER implements InstrumentComponent {
     }
 
     this.investmentProposalForm = this.formBuilder.group({
-      renta_porcentaje: [
-        this.instrument_exists ? "" : this.instrument_work.renta_porcentaje,
-        [
-          Validators.required,
-          Validators.pattern(/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/)
-        ]
-      ],
+
 
       monto_prestamo: [
         this.instrument_exists ? "" : this.instrument_work.monto_prestamo,
@@ -263,7 +257,6 @@ export class PPER implements InstrumentComponent {
         },
         {
           monto_prestamo: this.f.monto_prestamo.value,
-          renta_porcentaje: +this.f.renta_porcentaje.value,
           fecha_otorgamiento: this.f.fecha_otorgamiento.value.singleDate
             .formatted,
           plazo_gracia: this.f.plazo_gracia.value,
@@ -308,8 +301,6 @@ export class PPER implements InstrumentComponent {
           this.dataSource.sort = this.sort;
 
           this.pperObject = {
-            renta_porcentaje: this.investmentProposalForm.value
-              .renta_porcentaje,
             monto_prestamo: this.investmentProposalForm.value.monto_prestamo,
             plazo_gracia: this.investmentProposalForm.value.plazo_gracia,
             tasa_porcentaje: this.investmentProposalForm.value.tasa_porcentaje,

+ 0 - 1
src/app/services/instrument-calculations.service.ts

@@ -373,7 +373,6 @@ export class InstrumentCalculations {
       plazo_gracia: number;
       tasa_porcentaje: number;
       iva_porcentaje: number;
-      renta_porcentaje: number;
       pago_seguro_dano: number;
       pago_seguro_vivienda: number;
       total_cuotas_mensuales: number;