iptdevs-design-system 3.1.147 → 3.1.148

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.
@@ -4040,6 +4040,13 @@ class CodFormStepFourComponent extends CodFormSteps {
4040
4040
  }
4041
4041
  // Calcular cuotas
4042
4042
  this.dataFinancing = [];
4043
+ // const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].quota_price;
4044
+ // let params: CalculateQuotesParams = {
4045
+ // date: new Date(this.codFormStepFour.controls['payment_date'].value),
4046
+ // quotaValues,
4047
+ // quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
4048
+ // totalPrice: this.codFormStepFour.controls['total_price'].value,
4049
+ // }
4043
4050
  const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].quota_price;
4044
4051
  let params = {
4045
4052
  date: new Date(this.codFormStepFour.controls['payment_date'].value),
@@ -4047,6 +4054,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4047
4054
  quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
4048
4055
  totalPrice: this.codFormStepFour.controls['total_price'].value,
4049
4056
  };
4057
+ console.log(params);
4050
4058
  this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
4051
4059
  this.isFinancing = true;
4052
4060
  this.financingData.emit(this.dataFinancing);
@@ -4122,6 +4130,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4122
4130
  this.resetLocalStorage(this.controls);
4123
4131
  }
4124
4132
  selectLevels(dataPayment) {
4133
+ console.log(dataPayment);
4125
4134
  if (this.codFormStepFour.get('payment_method')?.value == 1) {
4126
4135
  this.codFormStepFour.controls['quota_times'].setValue(dataPayment.code);
4127
4136
  this.codFormStepFour.controls['total_price'].setValue(dataPayment.enrollment);