WEB-657: Working Capital currency fix for multiples of#3547
Conversation
|
Caution Review failedPull request was closed or merged during review Note
|
| Cohort / File(s) | Summary |
|---|---|
Currency Multiples Form Simplification src/app/products/loan-products/loan-product-stepper/loan-product-currency-step/loan-product-currency-step.component.html, loan-product-currency-step.component.ts |
Removes setMultiples checkbox control and conditional validation logic. Makes inMultiplesOf always rendered and required. Renames installmentInMultiplesOf to installmentAmountInMultiplesOf with conditional display based on isLoanProduct. Updates form model initialization, patching, and submission payload handling to eliminate checkbox-driven conditionals. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
- WEB-632-loan-product-default-empty-multiples-fields #3084 — Both PRs modify the same currency-step component's multiples controls; one introduces
setMultiplescheckbox while this PR removes it and simplifies validation logic. - WEB-916 Align Loan Product Currency Form with Product Form #3493 — Both PRs update the same component's form controls for currency and installment multiples with inverse changes to the checkbox implementation and conditional validators.
Suggested reviewers
- IOhacker
- adamsaghy
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title directly references the main change: fixing the Working Capital currency issue related to the 'inMultiplesOf' field validation, which matches the core modifications made to the loan product currency step component. |
| 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. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ 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.
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment @coderabbitai help to get the list of available commands and usage tips.
Description
Working Capital issue in the currency for
inMultiplesOffield marked as requiredRelated issues and discussion
WEB-657
Screenshots, if any
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
If you have multiple commits please combine them into one commit by squashing them.
Read and understood the contribution guidelines at
web-app/.github/CONTRIBUTING.md.Summary by CodeRabbit