iptdevs-design-system 3.1.148 → 3.1.149

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.
@@ -3971,6 +3971,8 @@ class CodFormStepFourComponent extends CodFormSteps {
3971
3971
  quota_times: ['', [Validators.required]],
3972
3972
  total_price: [{ value: '', disabled: true }, [Validators.required]],
3973
3973
  paid_level: ['', [Validators.required]],
3974
+ quota_price: ['', [Validators.required]],
3975
+ fee_number: ['', [Validators.required]],
3974
3976
  });
3975
3977
  this.listenPaymentMethodField();
3976
3978
  }
@@ -4047,11 +4049,10 @@ class CodFormStepFourComponent extends CodFormSteps {
4047
4049
  // quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
4048
4050
  // totalPrice: this.codFormStepFour.controls['total_price'].value,
4049
4051
  // }
4050
- const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].quota_price;
4051
4052
  let params = {
4052
4053
  date: new Date(this.codFormStepFour.controls['payment_date'].value),
4053
- quotaValues,
4054
- quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
4054
+ quotaValues: Number(this.codFormStepFour.controls['quota_price'].value),
4055
+ quotaTimes: Number(this.codFormStepFour.controls['fee_number'].value),
4055
4056
  totalPrice: this.codFormStepFour.controls['total_price'].value,
4056
4057
  };
4057
4058
  console.log(params);
@@ -4136,6 +4137,8 @@ class CodFormStepFourComponent extends CodFormSteps {
4136
4137
  this.codFormStepFour.controls['total_price'].setValue(dataPayment.enrollment);
4137
4138
  this.codFormStepFour.controls['program_price'].setValue(dataPayment.financed_price);
4138
4139
  this.codFormStepFour.controls['paid_level'].setValue(dataPayment.paid_level - 1);
4140
+ this.codFormStepFour.controls['fee_number'].setValue(dataPayment.fee_number);
4141
+ this.codFormStepFour.controls['quota_price'].setValue(dataPayment.quota_price);
4139
4142
  this.updateValueAndValidity();
4140
4143
  }
4141
4144
  else if (this.codFormStepFour.get('payment_method')?.value == 2) {
@@ -4143,6 +4146,8 @@ class CodFormStepFourComponent extends CodFormSteps {
4143
4146
  this.codFormStepFour.controls['total_price'].setValue(dataPayment.enrollment);
4144
4147
  this.codFormStepFour.controls['program_price'].setValue(dataPayment.normal_price);
4145
4148
  this.codFormStepFour.controls['paid_level'].setValue(dataPayment.paid_level - 1);
4149
+ this.codFormStepFour.controls['fee_number'].setValue(dataPayment.fee_number);
4150
+ this.codFormStepFour.controls['quota_price'].setValue(dataPayment.quota_price);
4146
4151
  this.updateValueAndValidity();
4147
4152
  }
4148
4153
  }