iptdevs-design-system 2.7.122 → 2.7.124

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.
@@ -3393,8 +3393,8 @@ class CodFormStepThreeComponent extends CodFormSteps {
3393
3393
  this.codFormStepThree.controls['needAtendant'].setValue(needAtendant);
3394
3394
  }
3395
3395
  else {
3396
- this.codFormStepThree.controls['needAtendant'].setValue(null);
3397
3396
  this.cleanComponent();
3397
+ this.codFormStepThree.controls['needAtendant'].setValue(null);
3398
3398
  }
3399
3399
  }
3400
3400
  selectIdTypeParents(value) {
@@ -3978,7 +3978,7 @@ class CodFormComponent {
3978
3978
  description: control.description
3979
3979
  });
3980
3980
  }
3981
- else if (value === 'false' && control.description === 'Multiculturalismo') {
3981
+ else if (value === 'true' && control.description === 'Multiculturalismo') {
3982
3982
  totalData.push({
3983
3983
  control: control.name,
3984
3984
  isRequired: control.required,
@@ -4022,29 +4022,50 @@ class CodFormComponent {
4022
4022
  console.log(totalData);
4023
4023
  this.isLoading = true;
4024
4024
  this.loaderMessage = 'Creando COD, espere un momento';
4025
- let request = this.getCreateCODRq(totalData);
4025
+ let request = this.getCreateCOD(totalData);
4026
4026
  console.log(request);
4027
- this.commercialService.createCOD(request).subscribe({
4028
- next: (response) => {
4029
- console.log(response);
4030
- if (response.message.code === 1) {
4031
- this.isLoading = false;
4032
- this.loaderMessage = '';
4033
- Swal.fire({
4034
- title: 'Perfecto!',
4035
- text: 'El COD ha sido creado exitosamente.',
4036
- icon: 'success'
4037
- });
4038
- this.cleanStorage();
4039
- }
4040
- },
4041
- error: (err) => {
4042
- console.log(err);
4027
+ // this.commercialService.createCOD(request).subscribe({
4028
+ // next: (response: any) => {
4029
+ // console.log(response);
4030
+ // if (response.message.code === 1) {
4031
+ // this.isLoading = false;
4032
+ // this.loaderMessage = '';
4033
+ // Swal.fire({
4034
+ // title: 'Perfecto!',
4035
+ // text: 'El COD ha sido creado exitosamente.',
4036
+ // icon: 'success'
4037
+ // })
4038
+ // this.cleanStorage();
4039
+ // }
4040
+ // },
4041
+ // error: (err: any) => {
4042
+ // console.log(err);
4043
+ // this.isLoading = false;
4044
+ // this.loaderMessage = '';
4045
+ // Swal.fire({
4046
+ // title: 'Error in cod creation',
4047
+ // text: err.message,
4048
+ // icon: 'error'
4049
+ // })
4050
+ // }
4051
+ // })
4052
+ this.commercialService.createCOD(request).subscribe((response) => {
4053
+ if (response.message.code === 1) {
4054
+ this.isLoading = false;
4055
+ this.loaderMessage = '';
4056
+ Swal.fire({
4057
+ title: 'Perfecto!',
4058
+ text: 'El COD ha sido creado exitosamente.',
4059
+ icon: 'success'
4060
+ });
4061
+ this.cleanStorage();
4062
+ }
4063
+ else {
4043
4064
  this.isLoading = false;
4044
4065
  this.loaderMessage = '';
4045
4066
  Swal.fire({
4046
4067
  title: 'Error in cod creation',
4047
- text: err.message,
4068
+ text: 'Ops Algo salio mal',
4048
4069
  icon: 'error'
4049
4070
  });
4050
4071
  }
@@ -4053,7 +4074,7 @@ class CodFormComponent {
4053
4074
  cleanStorage() {
4054
4075
  sessionStorage.clear();
4055
4076
  }
4056
- getCreateCODRq(data) {
4077
+ getCreateCOD(data) {
4057
4078
  let request = {
4058
4079
  token: this.baseService.getUserToken(),
4059
4080
  student_name: data.filter(data => data.control === 'student_name')[0].value,