ahernandez 5 năm trước cách đây
mục cha
commit
ccaf1c1c56

+ 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;