Przeglądaj źródła

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

Oscar José Nuñez Chávez 5 lat temu
rodzic
commit
60a5395778

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

+ 1 - 2
src/app/components/investment-proposals/change-history/change-history.component.ts

@@ -54,9 +54,8 @@ export class ChangeHistoryComponent implements OnInit {
       .getProposalInvestment(this.investmentProposalID)
       .subscribe(
         res => {
-          this.fileDownload = environment.productionApiUrl;
+          this.fileDownload = environment.productionMediaUrl;
           this.investmentCode = res["result"]["codigo_inversion"];
-          console.log(this.fileDownload);
         },
         err => {}
       );

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

+ 2 - 1
src/environments/environment.prod.ts

@@ -1,4 +1,5 @@
 export const environment = {
   production: true,
-  productionApiUrl: "http://192.168.98.146:8000/api"
+  productionApiUrl: "http://192.168.98.146:8000/api",
+  productioMediaUrl: "http://192.168.98.146:8000"
 };

+ 2 - 1
src/environments/environment.ts

@@ -4,7 +4,8 @@
 
 export const environment = {
   production: false,
-  productionApiUrl: "http://192.168.98.140:8000/api"
+  productionApiUrl: "http://192.168.98.140:8000/api",
+  productionMediaUrl: "http://192.168.98.140:8000"
   //productionApiUrl: "https://denmark.inverlec.solar/api/v1"
 };