iptdevs-design-system 3.1.323 → 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.
@@ -4366,7 +4366,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4366
4366
  this.codFormStepFour.controls['total_price'].setValue(null);
4367
4367
  }
4368
4368
  setDataFromPreviusCodPrices() {
4369
- 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);
4370
4370
  if (this.codFormStepFour.get('payment_method')?.value == 1) {
4371
4371
  this.codFormStepFour.controls['quota_times'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.code : 0);
4372
4372
  this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.enrollment : 0);
@@ -4374,7 +4374,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4374
4374
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4375
4375
  this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment ? this.initialData.cod_payment?.length : 0);
4376
4376
  this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.quota_price : 0);
4377
- 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());
4378
4378
  this.updateValueAndValidity();
4379
4379
  }
4380
4380
  else if (this.codFormStepFour.get('payment_method')?.value == 2) {
@@ -4384,7 +4384,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4384
4384
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4385
4385
  this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment ? 1 : 0);
4386
4386
  this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_payment ? this.initialData.cod_price.normal_price : 0);
4387
- 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());
4388
4388
  this.updateValueAndValidity();
4389
4389
  }
4390
4390
  // this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);