iptdevs-design-system 2.7.51 → 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.
@@ -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) {