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.
- package/esm2020/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.mjs +7 -7
- package/fesm2015/iptdevs-design-system.mjs +6 -6
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -6
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
4301
|
-
this.codFormStepFour.controls['quota_price'].setValue(this.initialData.
|
|
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(
|
|
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.
|
|
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
|
}
|