iptdevs-design-system 2.7.126 → 2.7.128
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 -2
- package/fesm2015/iptdevs-design-system.mjs +6 -1
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -1
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3564,6 +3564,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3564
3564
|
});
|
|
3565
3565
|
}
|
|
3566
3566
|
getCodPricesByAgreement(agreement) {
|
|
3567
|
+
console.log(agreement);
|
|
3567
3568
|
let agreementSelected;
|
|
3568
3569
|
if (agreement) {
|
|
3569
3570
|
agreementSelected = agreement;
|
|
@@ -3578,7 +3579,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3578
3579
|
this.codPrices = codPrices;
|
|
3579
3580
|
console.log(this.codPrices);
|
|
3580
3581
|
if (this.codFormStepFour.controls['payment_method'].value === '1') {
|
|
3581
|
-
const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
|
|
3582
|
+
const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected) || codPrice.fee_number > 1)[0];
|
|
3582
3583
|
this.codFormStepFour.controls['quota_times'].setValue(aux.code);
|
|
3583
3584
|
this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
|
|
3584
3585
|
}
|
|
@@ -3586,7 +3587,9 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3586
3587
|
if (this.codFormStepFour.controls['payment_method'].value === '2') {
|
|
3587
3588
|
// const aux = this.codPrices.filter(codPrice => codPrice.agreement === Number(agreementSelected))[0];
|
|
3588
3589
|
const aux = this.codPrices.filter(codPrice => codPrice.fee_number === 1)[0];
|
|
3590
|
+
this.codFormStepFour.controls['quota_times'].setValue(aux.code);
|
|
3589
3591
|
this.codFormStepFour.controls['program_price'].setValue(aux.normal_price);
|
|
3592
|
+
this.codFormStepFour.controls['total_price'].setValue(aux.enrollment);
|
|
3590
3593
|
}
|
|
3591
3594
|
}
|
|
3592
3595
|
}
|
|
@@ -3711,6 +3714,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3711
3714
|
}
|
|
3712
3715
|
// Eventos del select
|
|
3713
3716
|
selectPaymentMethod(paymentMethod) {
|
|
3717
|
+
console.log(paymentMethod);
|
|
3714
3718
|
if (paymentMethod !== '') {
|
|
3715
3719
|
this.codFormStepFour.controls['payment_method'].setValue(paymentMethod);
|
|
3716
3720
|
this.getCodPricesByAgreement();
|
|
@@ -3720,6 +3724,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3720
3724
|
}
|
|
3721
3725
|
}
|
|
3722
3726
|
selectQuotas(quotas) {
|
|
3727
|
+
console.log(quotas);
|
|
3723
3728
|
if (quotas !== 'Número de cuotas') {
|
|
3724
3729
|
const codPrice = this.codPrices.filter(codPrice => codPrice.code === Number(quotas));
|
|
3725
3730
|
console.log(codPrice[0].code);
|