iptdevs-design-system 3.1.216 → 3.1.218

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.
@@ -3173,7 +3173,7 @@ class CodFormStepOneComponent extends CodFormSteps {
3173
3173
  this.codFormStepOne.controls['agreement_by_category'].setValue(this.dataPreviusCodData.agreement.code);
3174
3174
  this.codFormStepOne.controls['english_level'].setValue(this.dataPreviusCodData.english_level.code);
3175
3175
  this.codFormStepOne.controls['availible_courses'].setValue(this.dataPreviusCodData.course.code);
3176
- this.codFormStepOne.controls['course_modality'].setValue(this.dataPreviusCodData.course_modality.code);
3176
+ this.codFormStepOne.controls['course_modality'].setValue(this.dataPreviusCodData.course.course_modality.code);
3177
3177
  }
3178
3178
  startLocalStorageWork() {
3179
3179
  this.controls.forEach(control => {
@@ -3975,6 +3975,11 @@ class CodFormStepFourComponent extends CodFormSteps {
3975
3975
  this.controls = new CodFormControls().controls[3];
3976
3976
  }
3977
3977
  ngOnChanges(changes) {
3978
+ this.initForm();
3979
+ this.startLocalStorageWork();
3980
+ this.validateErrors();
3981
+ // this.getCodPricesByAgreement();
3982
+ this.getValuesOfStepOneComponent();
3978
3983
  if (changes['initialData']) {
3979
3984
  if (this.initialData != null) {
3980
3985
  if (this.initialData.cod_price != null) {
@@ -3984,14 +3989,14 @@ class CodFormStepFourComponent extends CodFormSteps {
3984
3989
  }
3985
3990
  }
3986
3991
  }
3987
- ngOnInit() {
3988
- // this.cleanComponent();
3989
- this.initForm();
3990
- this.startLocalStorageWork();
3991
- this.validateErrors();
3992
- // this.getCodPricesByAgreement();
3993
- this.getValuesOfStepOneComponent();
3994
- }
3992
+ // ngOnInit(): void {
3993
+ // // this.cleanComponent();
3994
+ // this.initForm();
3995
+ // this.startLocalStorageWork();
3996
+ // this.validateErrors();
3997
+ // // this.getCodPricesByAgreement();
3998
+ // this.getValuesOfStepOneComponent();
3999
+ // }
3995
4000
  getValuesOfStepOneComponent() {
3996
4001
  // Tipo de curso seleccionado
3997
4002
  this.communicatorService.getSelectedCourseType().subscribe(value => {
@@ -4285,9 +4290,9 @@ class CodFormStepFourComponent extends CodFormSteps {
4285
4290
  this.codFormStepFour.controls['total_price'].setValue(null);
4286
4291
  }
4287
4292
  setDataFromPreviusCodPrices() {
4288
- this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_price.fee_number == 1 ? 1 : 2);
4293
+ this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_price.fee_number == 1 ? 2 : 1);
4289
4294
  this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
4290
- this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_price.fee_number == 1 ? this.initialData.financed_price : this.initialData.normal_price);
4295
+ this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_price.fee_number == 1 ? this.initialData.normal_price : this.initialData.financed_price);
4291
4296
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4292
4297
  this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_price.fee_number);
4293
4298
  this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.quota_price);