WEB-1103: Allow future dates for Incorporation Validity Till Date - #3795
WEB-1103: Allow future dates for Incorporation Validity Till Date#3795Farah-Nahle-FOO wants to merge 1 commit into
Conversation
|
Warning Review limit reached
Next review available in: 53 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Note
|
| Layer / File(s) | Summary |
|---|---|
Update incorporation date constraints src/app/clients/client-stepper/client-general-step/client-general-step.component.html, src/app/clients/edit-client/edit-client.component.html |
Both forms use dateOfBirth as the minimum date when set, with minDate as the fallback. Both forms remove the maxDate constraint. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Suggested reviewers: cocoa-puffs
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly describes the main change: allowing future dates for the Incorporation Validity Till Date field. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
deba3fc to
ae08573
Compare
Description
The
Incorporation Validity Till Datefield for Entity clients had a[max]="maxDate"binding on its datepicker that capped selectable dates at today's business date, blocking any future expiry date. Since this field represents the validity/expiry date of a company's incorporation documents, future dates are valid and expected.Removed the
maxcap and changed[min]from the genericminDateto the entity's Incorporation Date value — which Fineract stores in thedateOfBirthform control for Entity legal form clients — falling back tominDatewhen it isn't set yet. This ensures the validity date can't be set before the incorporation date, while still allowing future expiry dates.Applied to both the client creation stepper (
client-general-step.component.html) and the edit-client form (edit-client.component.html), matching the equivalent fix already merged in mifosx-community-app. No new dependencies required.Related issues and discussion
WEB-1103
Screenshots, if any
Checklist
web-app/.github/CONTRIBUTING.md.Summary by CodeRabbit