iptdevs-design-system 3.1.583 → 3.1.585

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.
@@ -6543,8 +6543,6 @@ class CodSelfManagedControls {
6543
6543
  { name: 'quota_times', required: true, description: 'Cantidad de cuotas' },
6544
6544
  { name: 'total_price', required: true, description: 'Precio total de la matricula' },
6545
6545
  { name: 'paid_level', required: true, description: 'Niveles pagos' },
6546
- { name: 'quota_price', required: true, description: 'Valor de Cuota' },
6547
- { name: 'fee_number', required: true, description: 'Cuotas' },
6548
6546
  ],
6549
6547
  // [
6550
6548
  // { name: 'marketing_reasons', required: true, description: '¿Cómo se enteró del programa?' },
@@ -7164,15 +7162,13 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7164
7162
  this.feeResponse = false;
7165
7163
  this.thereArePlans = false;
7166
7164
  this.isFinancing = false;
7167
- this.isCalculateQuotesButtonClicked = false;
7168
7165
  this.dataFinancing = [];
7169
7166
  this.initForm();
7170
7167
  }
7171
7168
  initForm() {
7172
- // const currentDate = new Date().toISOString().split('T')[0];
7173
7169
  this.codSelfFormStepThree = this.fb.group({
7174
7170
  program_price: [{ value: '', disabled: true }, [Validators.required]],
7175
- payment_date: [new Date(), [Validators.required]],
7171
+ payment_date: ['', [Validators.required]],
7176
7172
  payment_method: ['', [Validators.required]],
7177
7173
  quota_times: [{ value: '', disabled: true }, [Validators.required]],
7178
7174
  total_price: [{ value: '', disabled: true }, [Validators.required]],
@@ -7184,7 +7180,8 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7184
7180
  }
7185
7181
  ngOnInit() {
7186
7182
  this.startLocalStorageWork();
7187
- // this.valuesInitialSchedule();
7183
+ const currentDate = new Date().toISOString().split('T')[0];
7184
+ this.codSelfFormStepThree.controls['program_price'].setValue(currentDate);
7188
7185
  }
7189
7186
  startLocalStorageWork() {
7190
7187
  this.controls.forEach(control => {
@@ -7229,7 +7226,7 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7229
7226
  this.codFormControls.changeValue(3, control.name, true);
7230
7227
  if (change === '2') {
7231
7228
  if (control.name === 'quota_times')
7232
- this.codFormControls.changeValue(4, control.name, false);
7229
+ this.codFormControls.changeValue(3, control.name, false);
7233
7230
  }
7234
7231
  });
7235
7232
  }
@@ -7298,7 +7295,6 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7298
7295
  this.completed.emit(3);
7299
7296
  }
7300
7297
  showTable() {
7301
- this.isCalculateQuotesButtonClicked = true;
7302
7298
  const total_price = this.codSelfFormStepThree.controls['total_price'].value;
7303
7299
  if ((total_price === 'null') || this.codSelfFormStepThree.invalid) {
7304
7300
  Swal.fire({
@@ -7321,7 +7317,6 @@ class CodSelfFormStepThreeComponent extends CodSelfManagedSteps {
7321
7317
  this.financingData.emit(this.dataFinancing);
7322
7318
  }
7323
7319
  calculateNewQuotes() {
7324
- this.isCalculateQuotesButtonClicked = false;
7325
7320
  this.isFinancing = false;
7326
7321
  this.financingData.emit(null);
7327
7322
  }