iptdevs-design-system 3.1.635 → 3.1.636

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.
@@ -7378,18 +7378,22 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7378
7378
  };
7379
7379
  this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
7380
7380
  if (this.dataFinancing.length > 1) {
7381
- // const enrollmentValue = this.dataFinancing[0][1];
7382
- // const firstQuotaValue = this.dataFinancing[1][1];
7383
- // this.totalInitialPaymentSpan = parseFloat(enrollmentValue.replace(/[^\d.-]/g, '')) + parseFloat(firstQuotaValue.replace(/[^\d.-]/g, ''));
7381
+ const enrollmentValue = this.dataFinancing[0][1];
7382
+ const firstQuotaValue = this.dataFinancing[1][1];
7383
+ this.totalInitialPaymentSpan = parseFloat(enrollmentValue.replace(/[^\d.-]/g, '')) + parseFloat(firstQuotaValue.replace(/[^\d.-]/g, ''));
7384
+ console.log('linea, 236', this.totalInitialPaymentSpan);
7384
7385
  const enrollmentValueTwo = parseFloat(this.dataFinancing[0][1].replace(/[^\d.-]/g, ''));
7385
7386
  const firstQuotaValueTwo = parseFloat(this.dataFinancing[1][1].replace(/[^\d.-]/g, ''));
7386
7387
  this.totalInitialPayment = enrollmentValueTwo + firstQuotaValueTwo;
7388
+ console.log('linea, 240', this.totalInitialPayment);
7387
7389
  const combinedRecord = [
7388
7390
  this.dataFinancing[0][0],
7389
7391
  `${this.totalInitialPayment.toFixed(2)}`,
7390
7392
  this.dataFinancing[0][2] // Mantener la fecha del primer registro
7391
7393
  ];
7394
+ console.log('linea, 240', combinedRecord);
7392
7395
  this.dataFinancing = [combinedRecord, ...this.dataFinancing.slice(2)];
7396
+ console.log('inea, 240', this.dataFinancing);
7393
7397
  }
7394
7398
  this.isFinancing = true;
7395
7399
  this.financingData.emit(this.dataFinancing);