iptdevs-design-system 2.7.138 → 2.7.140
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 +22 -12
- package/fesm2015/iptdevs-design-system.mjs +21 -11
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +21 -11
- 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 -1
- package/package.json +1 -1
|
@@ -3581,18 +3581,28 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3581
3581
|
agreementSelected = this.localStorageCOD.getCodFormData(1, 'agreement_by_category');
|
|
3582
3582
|
}
|
|
3583
3583
|
if (this.codFormStepFour.controls['payment_method'].value === '1') {
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3584
|
+
let request = {
|
|
3585
|
+
agreement: Number(agreementSelected),
|
|
3586
|
+
payment_method: 'conta'
|
|
3587
|
+
};
|
|
3588
|
+
this.commercialService.getCodPricesByAgreementTypePayment(request).subscribe((response) => {
|
|
3589
|
+
this.codPrices = response.data;
|
|
3590
|
+
this.codFormStepFour.controls['quota_times'].setValue(this.codPrices[0].code);
|
|
3591
|
+
this.codFormStepFour.controls['program_price'].setValue(this.codPrices[0].normal_price);
|
|
3592
|
+
});
|
|
3588
3593
|
}
|
|
3589
3594
|
else {
|
|
3590
3595
|
if (this.codFormStepFour.controls['payment_method'].value === '2') {
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
this.
|
|
3596
|
+
let request = {
|
|
3597
|
+
agreement: Number(agreementSelected),
|
|
3598
|
+
payment_method: 'cuota'
|
|
3599
|
+
};
|
|
3600
|
+
this.commercialService.getCodPricesByAgreementTypePayment(request).subscribe((response) => {
|
|
3601
|
+
this.codPrices = response.data;
|
|
3602
|
+
this.codFormStepFour.controls['quota_times'].setValue(this.codPrices[0].code);
|
|
3603
|
+
this.codFormStepFour.controls['program_price'].setValue(this.codPrices[0].normal_price);
|
|
3604
|
+
this.codFormStepFour.controls['total_price'].setValue(this.codPrices[0].enrollment);
|
|
3605
|
+
});
|
|
3596
3606
|
}
|
|
3597
3607
|
}
|
|
3598
3608
|
// this.commercialService.getCodPricesByAgreement(Number(agreementSelected)).subscribe({
|
|
@@ -3631,14 +3641,14 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3631
3641
|
}
|
|
3632
3642
|
});
|
|
3633
3643
|
}
|
|
3634
|
-
searchPriceByTypePayment(agreementSelected, type) {
|
|
3644
|
+
searchPriceByTypePayment(agreementSelected, type, change) {
|
|
3635
3645
|
let request = {
|
|
3636
3646
|
agreement: Number(agreementSelected),
|
|
3637
3647
|
payment_method: type
|
|
3638
3648
|
};
|
|
3639
3649
|
this.commercialService.getCodPricesByAgreementTypePayment(request).subscribe((response) => {
|
|
3640
3650
|
this.codPrices = response.data;
|
|
3641
|
-
this.
|
|
3651
|
+
console.log(this.codPrices);
|
|
3642
3652
|
});
|
|
3643
3653
|
}
|
|
3644
3654
|
initForm() {
|