iptdevs-design-system 3.1.889 → 3.1.891
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 +12 -6
- package/fesm2015/iptdevs-design-system.mjs +11 -5
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +11 -5
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4740,8 +4740,9 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4740
4740
|
this.isDisabledSel = true;
|
|
4741
4741
|
}
|
|
4742
4742
|
if (this.initialData.cod_price != null) {
|
|
4743
|
-
this.setDataFromPreviusCodPrices();
|
|
4744
|
-
this.
|
|
4743
|
+
// this.setDataFromPreviusCodPrices();
|
|
4744
|
+
this.resetForm();
|
|
4745
|
+
// this.showTable();
|
|
4745
4746
|
}
|
|
4746
4747
|
}
|
|
4747
4748
|
}
|
|
@@ -4752,6 +4753,10 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4752
4753
|
this.codFormStepFour.controls['payment_date'].enable();
|
|
4753
4754
|
}
|
|
4754
4755
|
}
|
|
4756
|
+
resetForm() {
|
|
4757
|
+
// this.resetLocalStorage(this.controls);
|
|
4758
|
+
this.codFormStepFour.reset();
|
|
4759
|
+
}
|
|
4755
4760
|
// ngOnInit(): void {
|
|
4756
4761
|
// // this.cleanComponent();
|
|
4757
4762
|
// this.initForm();
|
|
@@ -4970,10 +4975,11 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4970
4975
|
this.dataPrices = response.data;
|
|
4971
4976
|
if (technicalCourses.includes(course_type)) {
|
|
4972
4977
|
// Calculamos los paid_levels permitidos basado en el english_level
|
|
4973
|
-
const
|
|
4974
|
-
const
|
|
4978
|
+
const techEnglishLevels = [8, 9, 10, 11];
|
|
4979
|
+
const levelIndex = techEnglishLevels.indexOf(english_level);
|
|
4980
|
+
const levelsToShow = techEnglishLevels.length - levelIndex;
|
|
4975
4981
|
this.dataPrices = this.dataPrices.filter((item) => {
|
|
4976
|
-
item.paid_level <=
|
|
4982
|
+
return item.paid_level <= levelsToShow;
|
|
4977
4983
|
});
|
|
4978
4984
|
}
|
|
4979
4985
|
this.feeResponse = false;
|