iptdevs-design-system 3.1.146 → 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.
@@ -3261,6 +3261,8 @@ class CodFormStepOneComponent extends CodFormSteps {
3261
3261
  }
3262
3262
  setValueStepFour() {
3263
3263
  this.setDataInLocalStorage(4, 'program_price', null);
3264
+ this.setDataInLocalStorage(4, 'quota_times', null);
3265
+ this.setDataInLocalStorage(4, 'total_price', null);
3264
3266
  }
3265
3267
  }
3266
3268
  CodFormStepOneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepOneComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }, { token: CopiesService }, { token: BaseService }, { token: CourseService }, { token: CommunicatorService }], target: i0.ɵɵFactoryTarget.Component });
@@ -3857,6 +3859,7 @@ class CodFormStepFourComponent extends CodFormSteps {
3857
3859
  this.validateErrors();
3858
3860
  // this.getCodPricesByAgreement();
3859
3861
  this.getValuesOfStepOneComponent();
3862
+ console.log('changes step one');
3860
3863
  }
3861
3864
  getValuesOfStepOneComponent() {
3862
3865
  // Tipo de curso seleccionado
@@ -4037,6 +4040,13 @@ class CodFormStepFourComponent extends CodFormSteps {
4037
4040
  }
4038
4041
  // Calcular cuotas
4039
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
+ // }
4040
4050
  const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].quota_price;
4041
4051
  let params = {
4042
4052
  date: new Date(this.codFormStepFour.controls['payment_date'].value),
@@ -4044,6 +4054,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4044
4054
  quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
4045
4055
  totalPrice: this.codFormStepFour.controls['total_price'].value,
4046
4056
  };
4057
+ console.log(params);
4047
4058
  this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
4048
4059
  this.isFinancing = true;
4049
4060
  this.financingData.emit(this.dataFinancing);
@@ -4119,6 +4130,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4119
4130
  this.resetLocalStorage(this.controls);
4120
4131
  }
4121
4132
  selectLevels(dataPayment) {
4133
+ console.log(dataPayment);
4122
4134
  if (this.codFormStepFour.get('payment_method')?.value == 1) {
4123
4135
  this.codFormStepFour.controls['quota_times'].setValue(dataPayment.code);
4124
4136
  this.codFormStepFour.controls['total_price'].setValue(dataPayment.enrollment);