iptdevs-design-system 3.1.638 → 3.1.640

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.
@@ -7385,16 +7385,18 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7385
7385
  const enrollmentValueTwo = parseFloat(this.dataFinancing[0][1].replace(/[^\d.-]/g, ''));
7386
7386
  const firstQuotaValueTwo = parseFloat(this.dataFinancing[1][1].replace(/[^\d.-]/g, ''));
7387
7387
  this.totalInitialPayment = enrollmentValueTwo + firstQuotaValueTwo;
7388
+ console.log('linea, 246', this.totalInitialPayment);
7388
7389
  const totalInitialPaymentInteger = Math.round(this.totalInitialPayment);
7389
- console.log('linea, 244', this.totalInitialPayment);
7390
+ const formattedTotalInitialPayment = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 0 }).format(totalInitialPaymentInteger);
7391
+ console.log('linea, 246', formattedTotalInitialPayment);
7390
7392
  const combinedRecord = [
7391
7393
  this.dataFinancing[0][0],
7392
- `${totalInitialPaymentInteger}`,
7394
+ formattedTotalInitialPayment,
7393
7395
  this.dataFinancing[0][2] // Mantener la fecha del primer registro
7394
7396
  ];
7395
- console.log('linea, 251', combinedRecord);
7397
+ console.log('linea, 253', combinedRecord);
7396
7398
  this.dataFinancing = [combinedRecord, ...this.dataFinancing.slice(2)];
7397
- console.log('inea, 253', this.dataFinancing);
7399
+ console.log('inea, 255', this.dataFinancing);
7398
7400
  }
7399
7401
  this.isFinancing = true;
7400
7402
  this.financingData.emit(this.dataFinancing);