iptdevs-design-system 2.7.125 → 2.7.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3577,15 +3577,18 @@ class CodFormStepFourComponent extends CodFormSteps {
3577
3577
  const codPrices = response.data;
3578
3578
  this.codPrices = codPrices;
3579
3579
  console.log(this.codPrices);
3580
- if (this.codFormStepFour.controls['payment_method'].value === '2') {
3581
- const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
3582
- this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
3583
- }
3584
3580
  if (this.codFormStepFour.controls['payment_method'].value === '1') {
3585
3581
  const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
3586
3582
  this.codFormStepFour.controls['quota_times'].setValue(aux.code);
3587
3583
  this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
3588
3584
  }
3585
+ else {
3586
+ if (this.codFormStepFour.controls['payment_method'].value === '2') {
3587
+ // const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
3588
+ const aux = this.codPrices.filter(codPrice => codPrice.fee_number === 1)[0];
3589
+ this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
3590
+ }
3591
+ }
3589
3592
  }
3590
3593
  },
3591
3594
  error: (err) => console.log(err)