iptdevs-design-system 3.1.672 → 3.1.673
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-self-managed/cod-form-self-managed/cod-self-managed.component.mjs +38 -37
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +6 -1
- package/fesm2015/iptdevs-design-system.mjs +42 -36
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +42 -36
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/services/commercial-service/comercial.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3149,6 +3149,11 @@ class CommercialService extends IPTGeneralService {
|
|
|
3149
3149
|
this.generateRequestParams(params);
|
|
3150
3150
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
3151
3151
|
}
|
|
3152
|
+
createCodSelfManaged(params) {
|
|
3153
|
+
let serviceUrl = this.SERVICE_URL + 'post/cod/self/managed';
|
|
3154
|
+
this.generateRequestParams(params);
|
|
3155
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
3156
|
+
}
|
|
3152
3157
|
}
|
|
3153
3158
|
CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3154
3159
|
CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
|
|
@@ -7738,41 +7743,42 @@ class CodSelfManagedComponent {
|
|
|
7738
7743
|
this.loaderMessage = 'Creando COD, espere un momento';
|
|
7739
7744
|
let request = this.getCreateCOD(totalData);
|
|
7740
7745
|
console.log(request);
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7746
|
+
this.commercialService.createCodSelfManaged(request).subscribe({
|
|
7747
|
+
next: (response) => {
|
|
7748
|
+
if (response.message.code === 1) {
|
|
7749
|
+
this.isLoading = false;
|
|
7750
|
+
this.loaderMessage = '';
|
|
7751
|
+
Swal.fire({
|
|
7752
|
+
title: 'Perfecto!',
|
|
7753
|
+
text: 'El COD ha sido creado exitosamente.',
|
|
7754
|
+
icon: 'success'
|
|
7755
|
+
});
|
|
7756
|
+
this.localStorageCodSelfManaged.clearData();
|
|
7757
|
+
this.okCreatedCOD.emit(true);
|
|
7758
|
+
}
|
|
7759
|
+
else {
|
|
7760
|
+
this.isLoading = false;
|
|
7761
|
+
this.loaderMessage = '';
|
|
7762
|
+
Swal.fire({
|
|
7763
|
+
title: 'Warning!',
|
|
7764
|
+
text: response.message.message,
|
|
7765
|
+
icon: 'error'
|
|
7766
|
+
});
|
|
7767
|
+
}
|
|
7768
|
+
},
|
|
7769
|
+
error: (err) => {
|
|
7770
|
+
this.isLoading = false;
|
|
7771
|
+
this.loaderMessage = '';
|
|
7772
|
+
Swal.fire({
|
|
7773
|
+
title: 'Error in cod creation',
|
|
7774
|
+
text: err.message,
|
|
7775
|
+
icon: 'error'
|
|
7776
|
+
});
|
|
7777
|
+
},
|
|
7778
|
+
complete: () => {
|
|
7779
|
+
this.codCreationSubscription = null;
|
|
7780
|
+
}
|
|
7781
|
+
});
|
|
7776
7782
|
}
|
|
7777
7783
|
getCreateCOD(data) {
|
|
7778
7784
|
let request = {
|
|
@@ -7799,11 +7805,11 @@ class CodSelfManagedComponent {
|
|
|
7799
7805
|
course_modality: data.filter(data => data.control === 'course_modality')[0].value,
|
|
7800
7806
|
program_price: data.filter(data => data.control === 'program_price')[0].value,
|
|
7801
7807
|
payment_date: data.filter(data => data.control === 'payment_date')[0].value,
|
|
7808
|
+
payment_dates: this.financingData,
|
|
7802
7809
|
payment_method: data.filter(data => data.control === 'payment_method')[0].value,
|
|
7803
7810
|
quota_times: data.filter(data => data.control === 'quota_times')[0].value,
|
|
7804
7811
|
total_price: data.filter(data => data.control === 'total_price')[0].value,
|
|
7805
7812
|
paid_level: data.filter(data => data.control === 'paid_level')[0].value,
|
|
7806
|
-
payment_dates: this.financingData,
|
|
7807
7813
|
optionsPayments: data.filter(data => data.control === 'optionsPayments')[0].value,
|
|
7808
7814
|
invoicing_name: data.filter(data => data.control === 'invoicing_name')[0].value,
|
|
7809
7815
|
invoicing_Apellido: data.filter(data => data.control === 'invoicing_Apellido')[0].value,
|