iptdevs-design-system 3.1.807 → 3.1.809

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: ['', [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]],
@@ -4632,8 +4632,13 @@ class CodFormStepFourComponent extends CodFormSteps {
4632
4632
  quota_price: ['', [Validators.required]],
4633
4633
  fee_number: ['', [Validators.required]],
4634
4634
  });
4635
+ this.setCurrentDate();
4635
4636
  this.listenPaymentMethodField();
4636
4637
  }
4638
+ setCurrentDate() {
4639
+ const today = new Date().toISOString().split('T')[0];
4640
+ this.codFormStepFour.get('payment_date')?.setValue(today);
4641
+ }
4637
4642
  listenPaymentMethodField() {
4638
4643
  const control = this.codFormStepFour.get('payment_method');
4639
4644
  control?.valueChanges.subscribe((change) => {