iptdevs-design-system 2.7.62 → 2.7.64

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.
@@ -3337,6 +3337,8 @@ class CalculateQuotesService {
3337
3337
  let dataFinancing = [];
3338
3338
  let index = 1; // Indicador de cant. de cuotas
3339
3339
  let dateJs = new Date(params.date);
3340
+ dateJs.setMilliseconds(dateJs.getMilliseconds() + (1000 * 3600 * 24));
3341
+ console.log(dateJs);
3340
3342
  if (dateJs.getDay() === 0) {
3341
3343
  Swal.fire({
3342
3344
  title: 'Fecha inválida',
@@ -3382,7 +3384,9 @@ class CalculateQuotesService {
3382
3384
  return plusMonthDate;
3383
3385
  }
3384
3386
  getStringDate(originDate) {
3385
- return originDate.getFullYear() + ' - ' + (originDate.getMonth() + 1) + ' - ' + originDate.getDate();
3387
+ let month = originDate.getMonth() + 1;
3388
+ let stringMonth = month < 10 ? '0' + month : month;
3389
+ return originDate.getFullYear() + '-' + stringMonth + '-' + originDate.getDate();
3386
3390
  }
3387
3391
  }
3388
3392
  CalculateQuotesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalculateQuotesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -3794,6 +3798,8 @@ class CodFormComponent {
3794
3798
  saveFinancingData(data) {
3795
3799
  if (data) {
3796
3800
  const dates = [];
3801
+ console.log('-----');
3802
+ console.log(data);
3797
3803
  data.forEach(p => {
3798
3804
  const date = p[2].split(',')[1];
3799
3805
  const formattedDate = new Date(date);