iptdevs-design-system 2.7.47 → 2.7.49
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/logic/calculate-quotes.service.mjs +4 -1
- package/esm2020/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.mjs +2 -1
- package/esm2020/lib/cod/steps/cod-form-step-one/cod-form-step-one.component.mjs +4 -1
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +2 -2
- package/fesm2015/iptdevs-design-system.mjs +8 -1
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +8 -1
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2884,6 +2884,7 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
2884
2884
|
}
|
|
2885
2885
|
getAvailibleCourses() {
|
|
2886
2886
|
this.availibleCourses = [];
|
|
2887
|
+
console.log(this.validRequest());
|
|
2887
2888
|
if (this.validRequest()) {
|
|
2888
2889
|
let request_availibleCourses = {
|
|
2889
2890
|
token: this.baseService.getUserToken(),
|
|
@@ -2891,9 +2892,11 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
2891
2892
|
agreement: this.codFormStepOne.controls['agreement_by_category'].value,
|
|
2892
2893
|
course_type: this.codFormStepOne.controls['course_type'].value,
|
|
2893
2894
|
};
|
|
2895
|
+
console.log(request_availibleCourses);
|
|
2894
2896
|
this.courseService
|
|
2895
2897
|
.getAvailibleCourses(request_availibleCourses)
|
|
2896
2898
|
.subscribe((response) => {
|
|
2899
|
+
console.log(response);
|
|
2897
2900
|
if (response.data) {
|
|
2898
2901
|
let courses = response.data;
|
|
2899
2902
|
this.hasAvailableCourse = true;
|
|
@@ -3076,7 +3079,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3076
3079
|
this.codFormStepTwo.controls['country'].setValue(country);
|
|
3077
3080
|
let iso = '';
|
|
3078
3081
|
if (country === '1')
|
|
3079
|
-
iso = '
|
|
3082
|
+
iso = 'nul';
|
|
3080
3083
|
if (country === '2')
|
|
3081
3084
|
iso = 'col';
|
|
3082
3085
|
if (country === '3')
|
|
@@ -3330,9 +3333,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
3330
3333
|
class CalculateQuotesService {
|
|
3331
3334
|
constructor() { }
|
|
3332
3335
|
calculateQuotes(params) {
|
|
3336
|
+
console.log('service calculate qotes');
|
|
3337
|
+
console.log(params);
|
|
3333
3338
|
let dataFinancing = [];
|
|
3334
3339
|
let index = 1; // Indicador de cant. de cuotas
|
|
3335
3340
|
let momentJs = moment(params.date).add('1', 'days');
|
|
3341
|
+
console.log(momentJs);
|
|
3336
3342
|
if (this.validateSunday(momentJs.toDate())) {
|
|
3337
3343
|
Swal.fire({
|
|
3338
3344
|
title: 'Fecha inválida',
|
|
@@ -3573,6 +3579,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3573
3579
|
quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
|
|
3574
3580
|
totalPrice: this.codFormStepFour.controls['total_price'].value
|
|
3575
3581
|
};
|
|
3582
|
+
console.log(params);
|
|
3576
3583
|
this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
|
|
3577
3584
|
this.isFinancing = true;
|
|
3578
3585
|
this.financingData.emit(this.dataFinancing);
|