iptdevs-design-system 3.1.219 → 3.1.221
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 +5 -4
- package/fesm2015/iptdevs-design-system.mjs +4 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +4 -3
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4290,12 +4290,13 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4290
4290
|
this.codFormStepFour.controls['total_price'].setValue(null);
|
|
4291
4291
|
}
|
|
4292
4292
|
setDataFromPreviusCodPrices() {
|
|
4293
|
-
this.codFormStepFour.controls['payment_method'].setValue(this.initialData.
|
|
4293
|
+
this.codFormStepFour.controls['payment_method'].setValue(this.initialData.cod_payment.lenght == 1 ? 2 : 1);
|
|
4294
4294
|
this.codFormStepFour.controls['total_price'].setValue(this.initialData.cod_price.enrollment);
|
|
4295
|
-
this.codFormStepFour.controls['program_price'].setValue(this.initialData.
|
|
4295
|
+
this.codFormStepFour.controls['program_price'].setValue(this.initialData.cod_payment.lenght == 1 ? this.initialData.cod_price.normal_price : this.initialData.cod_price.financed_price);
|
|
4296
4296
|
this.codFormStepFour.controls['paid_level'].setValue(this.initialData.cod_price.paid_level);
|
|
4297
|
-
this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_price.fee_number);
|
|
4297
|
+
this.codFormStepFour.controls['fee_number'].setValue(this.initialData.cod_payment.lenght == 1 ? 1 : this.initialData.cod_price.fee_number);
|
|
4298
4298
|
this.codFormStepFour.controls['quota_price'].setValue(this.initialData.cod_price.quota_price);
|
|
4299
|
+
this.codFormStepFour.controls['payment_date'].setValue(this.initialData.cod_payment[0].timely_date);
|
|
4299
4300
|
}
|
|
4300
4301
|
}
|
|
4301
4302
|
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 });
|