WEB-666 Recurring deposit product form negative values allowed in settings fields#3090
Conversation
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Recurring Deposit Product Settings Validation src/app/products/.../recurring-deposit-product-settings-step.component.html, src/app/products/.../recurring-deposit-product-settings-step.component.ts |
Added min="0" HTML attributes and Validators.min(0) form validators to five numeric input fields: lockinPeriodFrequency, minDepositTerm, inMultiplesOfDepositTerm, maxDepositTerm, and preClosurePenalInterest. |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~5 minutes
Possibly related PRs
- WEB-462 Lock in period field allows zero and negative values in save product creation form #2888: Adds similar
min(0)validation forlockinPeriodFrequencyfield in saving-products component, addressing consistent validation patterns across product types.
Suggested reviewers
- alberto-art3ch
- IOhacker
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title accurately describes the main change: preventing negative values in recurring deposit product settings fields through validation constraints. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing touches
- 📝 Generate docstrings
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
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 and usage tips.
alberto-art3ch
left a comment
There was a problem hiding this comment.
Please be sure that optional fields remains as is.
|
@alberto-art3ch I will update the PR |
|
@alberto-art3ch Thank You for the review |
Changes Made :-
-Prevent negative values for settings fields in Recurring Deposit Product form .
WEB-666
Before :-
After :-
Summary by CodeRabbit