Closed olayiwola-compucorp closed 2 years ago
This PR adds new validation to the edit recurring contribution screen, such that the following scenarios would return an error
Validation does not exist
A validation error is thrown when any of the invalid scenarios happen:
_frequency_unit is monthly; changing the next_schedulecontribution date to a day after 28
_frequency_unit is yearly; changing the next_schedulecontribution date to Feb 29
_frequency_unit is monthly; changing the cycleday to a day after 28
Overview
This PR adds new validation to the edit recurring contribution screen, such that the following scenarios would return an error
Before
Validation does not exist
After
A validation error is thrown when any of the invalid scenarios happen:
_frequency_unit is monthly; changing the next_schedulecontribution date to a day after 28
_frequency_unit is yearly; changing the next_schedulecontribution date to Feb 29
_frequency_unit is monthly; changing the cycleday to a day after 28