iptdevs-design-system 3.1.807 → 3.1.808

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.
@@ -4624,7 +4624,7 @@ class CodFormStepFourComponent extends CodFormSteps {
4624
4624
  initForm() {
4625
4625
  this.codFormStepFour = this.fb.group({
4626
4626
  program_price: [{ value: '', disabled: true }, [Validators.required]],
4627
- payment_date: [new Date().toISOString().split('T')[0], [Validators.required]],
4627
+ payment_date: [this.getCurrentDate(), [Validators.required]],
4628
4628
  payment_method: ['', [Validators.required]],
4629
4629
  quota_times: [{ value: '', disabled: true }, [Validators.required]],
4630
4630
  total_price: [{ value: '', disabled: true }, [Validators.required]],
@@ -4634,6 +4634,10 @@ class CodFormStepFourComponent extends CodFormSteps {
4634
4634
  });
4635
4635
  this.listenPaymentMethodField();
4636
4636
  }
4637
+ getCurrentDate() {
4638
+ const today = new Date();
4639
+ return today.toISOString().split('T')[0];
4640
+ }
4637
4641
  listenPaymentMethodField() {
4638
4642
  const control = this.codFormStepFour.get('payment_method');
4639
4643
  control?.valueChanges.subscribe((change) => {