WEB-657: Working Capital product with default accounting rule#3506
Conversation
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Accounting Rule Initialization src/app/products/loan-products/create-loan-product/create-loan-product.component.ts, src/app/products/loan-products/edit-loan-product/edit-loan-product.component.ts |
Added explicit injection of accountingRule: 'NONE' into the loanProduct payload before API submission, conditionally for working capital products in the edit component. |
Working Capital Settings Form src/app/products/loan-products/loan-product-stepper/loan-product-settings-step/loan-product-settings-step.component.html, src/app/products/loan-products/loan-product-stepper/loan-product-settings-step/loan-product-settings-step.component.ts |
Removed near-breach related form controls (enableNearBreach, nearBreachEvalFrequency, nearBreachEvalFrequencyType, nearBreachThreshold) from form initialization, valueChanges subscriptions, and patching logic; removed divider element from template. |
Data Model src/app/products/loan-products/models/loan-product.model.ts |
Removed near-breach optional properties from the LoanProduct interface definition. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
- WEB-711: Working Capital product #3159: Introduces working capital product feature and the working-capital code paths that these changes build upon.
- WEB-813: Working Capital loan account creation #3257: Implements broad working-capital support with modifications to the same loan product components and services affected by these changes.
Suggested reviewers
- adamsaghy
- gkbishnoi07
- somasorosdpc
🚥 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 directly references the main change: adding the accounting rule parameter to Working Capital products. It aligns with the primary modifications across all affected files. |
| 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 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 and usage tips.
Description
Working Capital product is considering now the Accounting, so we require to add the accounting rule parameter to the API
Related issues and discussion
WEB-657
Screenshots
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
Release Notes
New Features
Removed Features
Style