iptdevs-design-system 3.1.633 → 3.1.635

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.
@@ -7237,6 +7237,11 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7237
7237
  this.codSelfFormStepThree.get('payment_method')?.valueChanges.subscribe(() => {
7238
7238
  this.selectedRow = null;
7239
7239
  this.codSelfFormStepThree.controls['selectedRow'].setValue(null);
7240
+ this.codSelfFormStepThree.controls['fee_number'].setValue(null);
7241
+ this.codSelfFormStepThree.controls['quota_price'].setValue(null);
7242
+ this.codSelfFormStepThree.controls['paid_level'].setValue(null);
7243
+ // this.codSelfFormStepThree.controls['payment_date'].setValue(null);
7244
+ this.codSelfFormStepThree.controls['selectedRow'].setValue(null);
7240
7245
  });
7241
7246
  }
7242
7247
  startLocalStorageWork() {
@@ -7373,9 +7378,18 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7373
7378
  };
7374
7379
  this.dataFinancing = this.calculateQuotesService.calculateQuotes(params);
7375
7380
  if (this.dataFinancing.length > 1) {
7376
- const enrollmentValue = this.dataFinancing[0][1];
7377
- const firstQuotaValue = this.dataFinancing[1][1];
7378
- this.totalInitialPayment = 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
+ const enrollmentValueTwo = parseFloat(this.dataFinancing[0][1].replace(/[^\d.-]/g, ''));
7385
+ const firstQuotaValueTwo = parseFloat(this.dataFinancing[1][1].replace(/[^\d.-]/g, ''));
7386
+ this.totalInitialPayment = enrollmentValueTwo + firstQuotaValueTwo;
7387
+ const combinedRecord = [
7388
+ this.dataFinancing[0][0],
7389
+ `${this.totalInitialPayment.toFixed(2)}`,
7390
+ this.dataFinancing[0][2] // Mantener la fecha del primer registro
7391
+ ];
7392
+ this.dataFinancing = [combinedRecord, ...this.dataFinancing.slice(2)];
7379
7393
  }
7380
7394
  this.isFinancing = true;
7381
7395
  this.financingData.emit(this.dataFinancing);