iptdevs-design-system 3.1.322 → 3.1.324

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.
@@ -3203,6 +3203,7 @@ class CodFormStepOneComponent extends CodFormSteps {
3203
3203
  codFormStepOne.controls['english_level'].setValue(data.english_level?.code);
3204
3204
  codFormStepOne.controls['agreement_by_category'].setValue(data.agreement?.code);
3205
3205
  codFormStepOne.controls['course_type'].setValue(data.course_type?.code);
3206
+ codFormStepOne.controls['academic_plan'].setValue(data.course_type?.academic_plan.code);
3206
3207
  this.getAvailibleCourses();
3207
3208
  if (this.isEditCod) {
3208
3209
  this.setDataFromEditCodHistory();
@@ -4365,7 +4366,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4365
4366
  this.codFormStepFour.controls['total_price'].setValue(null);
4366
4367
  }
4367
4368
  setDataFromPreviusCodPrices() {
4368
- this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_payment?.length == 1 ? 2 : 1);
4369
+ this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_payment ? ((this.initialData.cod_payment.length == 1) ? 2 : 1) : 2);
4369
4370
  if (this.codFormStepFour.get('payment_method')?.value == 1) {
4370
4371
  this.codFormStepFour.controls['quota_times'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.code : 0);
4371
4372
  this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.enrollment : 0);
@@ -4373,7 +4374,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4373
4374
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4374
4375
  this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment ? this.initialData.cod_payment?.length : 0);
4375
4376
  this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.quota_price : 0);
4376
- this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment ? this.initialData.cod_payment[0]?.timely_date : null);
4377
+ this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment ? this.initialData.cod_payment[0]?.timely_date : new Date());
4377
4378
  this.updateValueAndValidity();
4378
4379
  }
4379
4380
  else if (this.codFormStepFour.get('payment_method')?.value == 2) {
@@ -4383,7 +4384,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4383
4384
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4384
4385
  this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment ? 1 : 0);
4385
4386
  this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.normal_price : 0);
4386
- this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment ? this.initialData.cod_payment[0]?.timely_date : null);
4387
+ this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment ? this.initialData.cod_payment[0]?.timely_date : new Date());
4387
4388
  this.updateValueAndValidity();
4388
4389
  }
4389
4390
  // this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);