iptdevs-design-system 3.1.155 → 3.1.157

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.
@@ -3301,29 +3301,29 @@ class CodFormStepTwoComponent extends CodFormSteps {
3301
3301
  this.getParameters();
3302
3302
  if (changes['initialData']) {
3303
3303
  if (this.initialData != null) {
3304
- if (this.initialData.userStudent != null) {
3305
- this.setDataFromUserHistory();
3304
+ if (this.initialData.student != null) {
3305
+ this.setDataFromPreviusCod();
3306
3306
  }
3307
3307
  else {
3308
- this.setDataFromPreviusCod();
3308
+ this.setDataFromUserHistory();
3309
3309
  }
3310
3310
  }
3311
3311
  }
3312
3312
  }
3313
3313
  setDataFromUserHistory() {
3314
- this.codFormStepTwo.controls['student_name'].setValue(this.initialData.student.name);
3315
- this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.student.last_name);
3316
- this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.student.id_card_type);
3317
- this.codFormStepTwo.controls['student_id_card'].setValue(this.initialData.student.id_card);
3318
- this.codFormStepTwo.controls['country'].setValue(this.initialData.student.city[0].country);
3319
- this.codFormStepTwo.controls['state'].setValue(this.initialData.student.city[0].state);
3320
- this.codFormStepTwo.controls['city'].setValue(this.initialData.student.city[0].code);
3321
- this.codFormStepTwo.controls['gender'].setValue(this.initialData.student.gender);
3322
- this.codFormStepTwo.controls['nickname'].setValue(this.initialData.student.nick_name);
3323
- this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.student.phone_indicative);
3324
- this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.student.phone_number);
3325
- this.codFormStepTwo.controls['birthdate'].setValue(this.initialData.student.birthdate);
3326
- this.codFormStepTwo.controls['student_email'].setValue(this.initialData.student.email);
3314
+ this.codFormStepTwo.controls['student_name'].setValue(this.initialData.name);
3315
+ this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.last_name);
3316
+ this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.id_card_type);
3317
+ this.codFormStepTwo.controls['student_id_card'].setValue(this.initialData.id_card);
3318
+ this.codFormStepTwo.controls['country'].setValue(this.initialData.city[0].country);
3319
+ this.codFormStepTwo.controls['state'].setValue(this.initialData.city[0].state);
3320
+ this.codFormStepTwo.controls['city'].setValue(this.initialData.city[0].code);
3321
+ this.codFormStepTwo.controls['gender'].setValue(this.initialData.gender);
3322
+ this.codFormStepTwo.controls['nickname'].setValue(this.initialData.nick_name);
3323
+ this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.phone_indicative);
3324
+ this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.phone_number);
3325
+ this.codFormStepTwo.controls['birthdate'].setValue(this.initialData.birthdate);
3326
+ this.codFormStepTwo.controls['student_email'].setValue(this.initialData.email);
3327
3327
  }
3328
3328
  setDataFromPreviusCod() {
3329
3329
  this.codFormStepTwo.controls['student_name'].setValue(this.initialData.student.name);
@@ -3602,11 +3602,11 @@ class CodFormStepThreeComponent extends CodFormSteps {
3602
3602
  if (this.initialData != null) {
3603
3603
  if (this.initialData.parent != null) {
3604
3604
  this.selectNeedAtendant(1);
3605
- if (this.initialData.userStudent != null) {
3606
- this.setDataFromUserHistory();
3605
+ if (this.initialData.student != null) {
3606
+ this.setValueStepThree();
3607
3607
  }
3608
3608
  else {
3609
- this.setValueStepThree();
3609
+ this.setDataFromUserHistory();
3610
3610
  }
3611
3611
  }
3612
3612
  else {
@@ -4316,11 +4316,11 @@ class CodFormStepFiveComponent extends CodFormSteps {
4316
4316
  this.sendFormMsg = 'Crear COD'; // Roles comerciales
4317
4317
  if (changes['initialData']) {
4318
4318
  if (this.initialData != null) {
4319
- if (this.initialData.userStudent != null) {
4320
- this.setDataFromUserHistory();
4319
+ if (this.initialData.student != null) {
4320
+ this.setDataFromPreviusCod();
4321
4321
  }
4322
4322
  else {
4323
- this.setDataFromPreviusCod();
4323
+ this.setDataFromUserHistory();
4324
4324
  }
4325
4325
  }
4326
4326
  }