iptdevs-design-system 2.7.126 → 2.7.127

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.
@@ -3578,7 +3578,7 @@ class CodFormStepFourComponent extends CodFormSteps {
3578
3578
  this.codPrices = codPrices;
3579
3579
  console.log(this.codPrices);
3580
3580
  if (this.codFormStepFour.controls['payment_method'].value === '1') {
3581
- const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
3581
+ const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected) || codPrice.fee_number > 1)[0];
3582
3582
  this.codFormStepFour.controls['quota_times'].setValue(aux.code);
3583
3583
  this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
3584
3584
  }
@@ -3586,7 +3586,9 @@ class CodFormStepFourComponent extends CodFormSteps {
3586
3586
  if (this.codFormStepFour.controls['payment_method'].value === '2') {
3587
3587
  // const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
3588
3588
  const aux = this.codPrices.filter(codPrice => codPrice.fee_number === 1)[0];
3589
+ this.codFormStepFour.controls['quota_times'].setValue(aux.code);
3589
3590
  this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
3591
+ this.codFormStepFour.controls['total_price'].setValue(aux.enrollment);
3590
3592
  }
3591
3593
  }
3592
3594
  }