|
|
@@ -70,6 +70,7 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
banks: any;
|
|
|
accounts: any;
|
|
|
paymentObject: Object;
|
|
|
+ inversionAmount: any;
|
|
|
|
|
|
constructor(
|
|
|
private router: Router,
|
|
|
@@ -92,6 +93,16 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
.subscribe(
|
|
|
res => {
|
|
|
this.inversionCode = res["result"]["codigo_inversion"];
|
|
|
+ this.inversionAmount =
|
|
|
+ res["result"]["id_inversion_instrumento"]["instrumento"][
|
|
|
+ "valor_nominal"
|
|
|
+ ];
|
|
|
+ this.investmentProposalForm.setValue({
|
|
|
+ monto: this.inversionAmount,
|
|
|
+ tipo_pago: "",
|
|
|
+ cuenta_bancaria: "",
|
|
|
+ fecha_vencimiento: ""
|
|
|
+ });
|
|
|
},
|
|
|
err => {
|
|
|
Swal.fire({
|
|
|
@@ -118,7 +129,7 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
|
|
|
this.investmentProposalForm = this.formBuilder.group({
|
|
|
monto: [
|
|
|
- "",
|
|
|
+ this.inversionAmount,
|
|
|
[
|
|
|
Validators.required,
|
|
|
Validators.pattern(/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/)
|