iptdevs-design-system 2.7.50 → 2.7.52

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.
@@ -2903,7 +2903,7 @@ class CodFormStepOneComponent extends CodFormSteps {
2903
2903
  courses.forEach(course => {
2904
2904
  this.availibleCourses.push({
2905
2905
  code: course.code,
2906
- name: `Curso ${course.modality.code === 1 ? 'Presencial' : 'Virtual'} ${course.course_type.name} (${course.english_level}) - Teacher ${course.teacher}, Fecha de inicio: ${course.to_start}`
2906
+ name: `Curso ${course.modality === 1 ? 'Presencial' : 'Virtual'} ${course.course_type.name} (${course.english_level}) - Teacher ${course.teacher}, Fecha de inicio: ${course.to_start}`
2907
2907
  });
2908
2908
  });
2909
2909
  }
@@ -3336,9 +3336,12 @@ class CalculateQuotesService {
3336
3336
  console.log(params);
3337
3337
  let dataFinancing = [];
3338
3338
  let index = 1; // Indicador de cant. de cuotas
3339
- let momentJs = moment(params.date).add(1, 'days');
3339
+ let momentJs2 = moment(params.date).add(1, 'days');
3340
+ let momentJs = new Date(params.date);
3341
+ momentJs.setDate(momentJs.getDate() + 1);
3340
3342
  console.log(momentJs);
3341
- if (this.validateSunday(momentJs.toDate())) {
3343
+ // if (this.validateSunday(momentJs.toDate())) {
3344
+ if (this.validateSunday(momentJs)) {
3342
3345
  Swal.fire({
3343
3346
  title: 'Fecha inválida',
3344
3347
  text: 'Debe seleccionar un día de la semana diferente al domingo',
@@ -3353,7 +3356,7 @@ class CalculateQuotesService {
3353
3356
  currency: 'USD',
3354
3357
  minimumFractionDigits: 0
3355
3358
  }).format(Math.round(parseFloat(params.quotaValues.toString()))),
3356
- momentJs.format('dddd') + ', ' + momentJs.format('MMMM DD YYYY')
3359
+ momentJs2.format('dddd') + ', ' + momentJs2.format('MMMM DD YYYY')
3357
3360
  ];
3358
3361
  dataFinancing.push(quota);
3359
3362
  while (index < params.quotaTimes) {