Quellcode durchsuchen

Correcciones en resumen para revision / aprobacion

Oscar José Nuñez Chávez vor 5 Jahren
Ursprung
Commit
17f0ae2e79

+ 2 - 2
src/app/components/investment-proposals/approve/approve.component.ts

@@ -277,7 +277,7 @@ export class InvestmentProposalApproveComponent implements OnInit {
 
             this.catalogService.getPaymentTerms().subscribe(res => {
               this.payment_terms = res.find(
-                e => e.codigo == this.complement.calificadora_riesgo
+                e => e.id_plazo == this.complement.plazo
               );
               this.payment_terms =
                 this.payment_terms != undefined
@@ -286,7 +286,7 @@ export class InvestmentProposalApproveComponent implements OnInit {
             });
             this.catalogService.getOperationTypes().subscribe(res => {
               this.operations = res.find(
-                e => e.codigo == this.complement.operaciones
+                e => e.id_tipo_operacion == this.complement.operaciones
               );
               this.operations =
                 this.operations != undefined ? this.operations.nombre : "-";

+ 2 - 2
src/app/components/investment-proposals/review/review.component.ts

@@ -278,7 +278,7 @@ export class InvestmentProposalReviewComponent implements OnInit {
 
             this.catalogService.getPaymentTerms().subscribe(res => {
               this.payment_terms = res.find(
-                e => e.codigo == this.complement.calificadora_riesgo
+                e => e.id_plazo == this.complement.plazo
               );
               this.payment_terms =
                 this.payment_terms != undefined
@@ -287,7 +287,7 @@ export class InvestmentProposalReviewComponent implements OnInit {
             });
             this.catalogService.getOperationTypes().subscribe(res => {
               this.operations = res.find(
-                e => e.codigo == this.complement.operaciones
+                e => e.id_tipo_operacion == this.complement.operaciones
               );
               this.operations =
                 this.operations != undefined ? this.operations.nombre : "-";