|
@@ -78,6 +78,7 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
payment_check: boolean;
|
|
payment_check: boolean;
|
|
|
payment_transfer: boolean;
|
|
payment_transfer: boolean;
|
|
|
accounts_destination: any;
|
|
accounts_destination: any;
|
|
|
|
|
+ accounts_origin: any;
|
|
|
|
|
|
|
|
constructor(
|
|
constructor(
|
|
|
private router: Router,
|
|
private router: Router,
|
|
@@ -107,12 +108,6 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- this.catalogService
|
|
|
|
|
- .getBankAccounts("origen", this.investmentProposalID)
|
|
|
|
|
- .subscribe(res => {
|
|
|
|
|
- console.log(res);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
this.investmentsService
|
|
this.investmentsService
|
|
|
.getProposalInvestment(this.investmentProposalID)
|
|
.getProposalInvestment(this.investmentProposalID)
|
|
|
.subscribe(
|
|
.subscribe(
|
|
@@ -166,6 +161,22 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+ this.catalogService
|
|
|
|
|
+ .getBankAccounts("origen", this.investmentProposalID)
|
|
|
|
|
+ .subscribe(res => {
|
|
|
|
|
+ this.accounts_origin = res["result"];
|
|
|
|
|
+ console.log("origen");
|
|
|
|
|
+ console.log(this.accounts_origin);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ this.catalogService
|
|
|
|
|
+ .getBankAccounts("destino", this.investmentProposalID)
|
|
|
|
|
+ .subscribe(res => {
|
|
|
|
|
+ this.accounts_destination = res["result"];
|
|
|
|
|
+ console.log("destino");
|
|
|
|
|
+ console.log(this.accounts_destination);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
this.catalogService.getPaymentTypes().subscribe(res => {
|
|
this.catalogService.getPaymentTypes().subscribe(res => {
|
|
|
this.payment_types = res;
|
|
this.payment_types = res;
|
|
|
});
|
|
});
|
|
@@ -173,20 +184,20 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
this.funds = res;
|
|
this.funds = res;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- this.catalogService.getCatalogInfo("bancos").subscribe(res => {
|
|
|
|
|
|
|
+ /*this.catalogService.getCatalogInfo("bancos").subscribe(res => {
|
|
|
this.banks = res;
|
|
this.banks = res;
|
|
|
this.catalogService.getCatalogInfo("cuentas-bancarias").subscribe(res => {
|
|
this.catalogService.getCatalogInfo("cuentas-bancarias").subscribe(res => {
|
|
|
this.accounts = res;
|
|
this.accounts = res;
|
|
|
});
|
|
});
|
|
|
//this.payment_types = res;
|
|
//this.payment_types = res;
|
|
|
- });
|
|
|
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
- this.catalogService
|
|
|
|
|
|
|
+ /*this.catalogService
|
|
|
.getCatalogInfo("cuentas-bancaria-destino")
|
|
.getCatalogInfo("cuentas-bancaria-destino")
|
|
|
.subscribe(res => {
|
|
.subscribe(res => {
|
|
|
this.accounts_destination = res;
|
|
this.accounts_destination = res;
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ */
|
|
|
this.investmentProposalForm = this.formBuilder.group({
|
|
this.investmentProposalForm = this.formBuilder.group({
|
|
|
monto: [
|
|
monto: [
|
|
|
this.inversionAmount,
|
|
this.inversionAmount,
|