iptdevs-design-system 3.1.227 → 3.1.229
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 +28 -8
- package/fesm2015/iptdevs-design-system.mjs +28 -7
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +27 -7
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4292,13 +4292,33 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4292
4292
|
}
|
|
4293
4293
|
setDataFromPreviusCodPrices() {
|
|
4294
4294
|
this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_payment.lenght == 1 ? 2 : 1);
|
|
4295
|
-
this.codFormStepFour.
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4295
|
+
if (this.codFormStepFour.get('payment_method')?.value == 1) {
|
|
4296
|
+
this.codFormStepFour.controls['quota_times'].setValue(this.initialData.cod_price.fee_number);
|
|
4297
|
+
this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
|
|
4298
|
+
this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_price.financed_price);
|
|
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_price.quota_price);
|
|
4302
|
+
this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment[0].timely_date);
|
|
4303
|
+
this.updateValueAndValidity();
|
|
4304
|
+
}
|
|
4305
|
+
else if (this.codFormStepFour.get('payment_method')?.value == 2) {
|
|
4306
|
+
this.codFormStepFour.controls['quota_times'].setValue(1);
|
|
4307
|
+
this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
|
|
4308
|
+
this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_price.normal_price);
|
|
4309
|
+
this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
|
|
4310
|
+
this.codFormStepFour.controls['fee_number'].setValue(1);
|
|
4311
|
+
this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.quota_price);
|
|
4312
|
+
this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment[0].timely_date);
|
|
4313
|
+
this.updateValueAndValidity();
|
|
4314
|
+
}
|
|
4315
|
+
// this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
|
|
4316
|
+
// this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_payment.lenght == 1 ? this.initialData.cod_price.normal_price : this.initialData.cod_price.financed_price);
|
|
4317
|
+
// this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
|
|
4318
|
+
// this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment.lenght == 1 ? 1 : this.initialData.cod_price.fee_number);
|
|
4319
|
+
// this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.quota_price);
|
|
4320
|
+
// this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment[0].timely_date);
|
|
4321
|
+
// this.codFormStepFour.controls['quota_times'].setValue(this.initialData.cod_payment.lenght == 1 ? 1 : this.initialData.cod_price.fee_number);
|
|
4302
4322
|
}
|
|
4303
4323
|
}
|
|
4304
4324
|
CodFormStepFourComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepFourComponent, deps: [{ token: i1$1.FormBuilder }, { token: CalculateQuotesService }, { token: CommunicatorService }, { token: ParameterService }, { token: CodFormControls }, { token: CommercialService }, { token: BaseService }], target: i0.ɵɵFactoryTarget.Component });
|