iptdevs-design-system 3.1.671 → 3.1.672

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.
@@ -7210,6 +7210,7 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7210
7210
  this.feeResponse = false;
7211
7211
  this.thereArePlans = false;
7212
7212
  this.isFinancing = false;
7213
+ this.dataFinancingMaster = [];
7213
7214
  this.dataFinancing = [];
7214
7215
  this.selectedRow = null;
7215
7216
  this.errorMessage = 'Faltan campos por llenar.';
@@ -7376,30 +7377,30 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7376
7377
  quotaTimes: Number(this.codSelfFormStepThree.controls['fee_number'].value),
7377
7378
  totalPrice: this.codSelfFormStepThree.controls['total_price'].value,
7378
7379
  };
7379
- this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
7380
- if (this.dataFinancing.length > 1) {
7381
- const enrollmentValue = this.dataFinancing[0][1];
7382
- const firstQuotaValue = this.dataFinancing[1][1];
7380
+ this.dataFinancingMaster = this.calculateQuotesService.calculateQuotes(params);
7381
+ if (this.dataFinancingMaster.length > 1) {
7382
+ const enrollmentValue = this.dataFinancingMaster[0][1];
7383
+ const firstQuotaValue = this.dataFinancingMaster[1][1];
7383
7384
  this.totalInitialPaymentSpan = parseFloat(enrollmentValue.replace(/[^\d.-]/g, '')) + parseFloat(firstQuotaValue.replace(/[^\d.-]/g, ''));
7384
7385
  console.log('linea, 237', this.totalInitialPaymentSpan);
7385
- const enrollmentValueTwo = parseFloat(this.dataFinancing[0][1].replace(/[^\d.-]/g, ''));
7386
- const firstQuotaValueTwo = parseFloat(this.dataFinancing[1][1].replace(/[^\d.-]/g, ''));
7386
+ const enrollmentValueTwo = parseFloat(this.dataFinancingMaster[0][1].replace(/[^\d.-]/g, ''));
7387
+ const firstQuotaValueTwo = parseFloat(this.dataFinancingMaster[1][1].replace(/[^\d.-]/g, ''));
7387
7388
  this.totalInitialPayment = enrollmentValueTwo + firstQuotaValueTwo;
7388
7389
  console.log('linea, 246', this.totalInitialPayment);
7389
7390
  const totalInitialPaymentInteger = Math.round(this.totalInitialPayment);
7390
7391
  const formattedTotalInitialPayment = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 0 }).format(totalInitialPaymentInteger);
7391
7392
  console.log('linea, 246', formattedTotalInitialPayment);
7392
7393
  const combinedRecord = [
7393
- this.dataFinancing[0][0],
7394
+ this.dataFinancingMaster[0][0],
7394
7395
  formattedTotalInitialPayment,
7395
- this.dataFinancing[0][2] // Mantener la fecha del primer registro
7396
+ this.dataFinancingMaster[0][2] // Mantener la fecha del primer registro
7396
7397
  ];
7397
7398
  console.log('linea, 253', combinedRecord);
7398
- this.dataFinancing = [combinedRecord, ...this.dataFinancing.slice(2)];
7399
+ this.dataFinancing = [combinedRecord, ...this.dataFinancingMaster.slice(2)];
7399
7400
  console.log('inea, 255', this.dataFinancing);
7400
7401
  }
7401
7402
  this.isFinancing = true;
7402
- this.financingData.emit(this.dataFinancing);
7403
+ this.financingData.emit(this.dataFinancingMaster);
7403
7404
  this.isLoadingSelectLevels = false;
7404
7405
  }
7405
7406
  // calculateNewQuotes() {