FINERACT-2455: Working Capital Loan Transaction - Payout Refund#6077
Draft
somasorosdpc wants to merge 1 commit into
Draft
FINERACT-2455: Working Capital Loan Transaction - Payout Refund#6077somasorosdpc wants to merge 1 commit into
somasorosdpc wants to merge 1 commit into
Conversation
9f92159 to
40959c1
Compare
galovics
reviewed
Jul 3, 2026
galovics
left a comment
Contributor
There was a problem hiding this comment.
In WorkingCapitalLoanPaymentAllocationProcessor.java (resolveAllocationOrder):
if (rules != null && !rules.isEmpty()) {
// TODO smells, it does not supports other customisation than repayment
final WorkingCapitalLoanPaymentAllocationRule repaymentRule = findRule(rules, PaymentAllocationTransactionType.REPAYMENT);PaymentAllocationTransactionType already has a PAYOUT_REFUND value and the product model already lets an admin configure a rule specifically for it, but this always resolves the REPAYMENT rule regardless of transaction type. So a payout refund on a product with a distinct payout-refund allocation rule configured will silently use the repayment rule instead. Is that intentional for this iteration, or should it be wired now that payout refund exists? At least a follow-up ticket referenced here instead of just "smells". Also: "does not supports" -> "does not support".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.