iptdevs-design-system 2.7.52 → 2.7.53

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.
@@ -3334,14 +3334,12 @@ class CalculateQuotesService {
3334
3334
  constructor() { }
3335
3335
  calculateQuotes(params) {
3336
3336
  console.log(params);
3337
+ console.log(params.date);
3337
3338
  let dataFinancing = [];
3338
3339
  let index = 1; // Indicador de cant. de cuotas
3339
- let momentJs2 = moment(params.date).add(1, 'days');
3340
- let momentJs = new Date(params.date);
3341
- momentJs.setDate(momentJs.getDate() + 1);
3340
+ let momentJs = moment(params.date).add(1, 'days');
3342
3341
  console.log(momentJs);
3343
- // if (this.validateSunday(momentJs.toDate())) {
3344
- if (this.validateSunday(momentJs)) {
3342
+ if (this.validateSunday(momentJs.toDate())) {
3345
3343
  Swal.fire({
3346
3344
  title: 'Fecha inválida',
3347
3345
  text: 'Debe seleccionar un día de la semana diferente al domingo',
@@ -3356,7 +3354,7 @@ class CalculateQuotesService {
3356
3354
  currency: 'USD',
3357
3355
  minimumFractionDigits: 0
3358
3356
  }).format(Math.round(parseFloat(params.quotaValues.toString()))),
3359
- momentJs2.format('dddd') + ', ' + momentJs2.format('MMMM DD YYYY')
3357
+ momentJs.format('dddd') + ', ' + momentJs.format('MMMM DD YYYY')
3360
3358
  ];
3361
3359
  dataFinancing.push(quota);
3362
3360
  while (index < params.quotaTimes) {