iptdevs-design-system 3.1.231 → 3.1.232

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.
@@ -3984,7 +3984,7 @@ class CodFormStepFourComponent extends CodFormSteps {
3984
3984
  if (this.initialData != null) {
3985
3985
  if (this.initialData.cod_price != null) {
3986
3986
  this.setDataFromPreviusCodPrices();
3987
- this.getValuesOfStepOneComponent();
3987
+ // this.getValuesOfStepOneComponent();
3988
3988
  this.showTable();
3989
3989
  }
3990
3990
  }
@@ -4291,24 +4291,24 @@ class CodFormStepFourComponent extends CodFormSteps {
4291
4291
  this.codFormStepFour.controls['total_price'].setValue(null);
4292
4292
  }
4293
4293
  setDataFromPreviusCodPrices() {
4294
- this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_payment.lenght == 1 ? 2 : 1);
4294
+ this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_payment.length == 1 ? 2 : 1);
4295
4295
  if (this.codFormStepFour.get('payment_method')?.value == 1) {
4296
4296
  this.codFormStepFour.controls['quota_times'].setValue(this.initialData.cod_price.code);
4297
4297
  this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
4298
4298
  this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_price.financed_price);
4299
4299
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4300
- this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_price.fee_number);
4301
- this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_payment.lenght);
4300
+ this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment.length);
4301
+ this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.quota_price);
4302
4302
  this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment[0].timely_date);
4303
4303
  this.updateValueAndValidity();
4304
4304
  }
4305
4305
  else if (this.codFormStepFour.get('payment_method')?.value == 2) {
4306
4306
  this.codFormStepFour.controls['quota_times'].setValue(this.initialData.cod_price.code);
4307
- this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
4307
+ this.codFormStepFour.controls['total_price'].setValue(0);
4308
4308
  this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_price.normal_price);
4309
4309
  this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
4310
4310
  this.codFormStepFour.controls['fee_number'].setValue(1);
4311
- this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.quota_price);
4311
+ this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.normal_price);
4312
4312
  this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment[0].timely_date);
4313
4313
  this.updateValueAndValidity();
4314
4314
  }