-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FINERACT-2311: Buy Down fees - Reversal of existing transaction #4887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FINERACT-2311: Buy Down fees - Reversal of existing transaction #4887
Conversation
5ea9a1d to
ae7cd79
Compare
| return LoanTransactionType.CAPITALIZED_INCOME.equals(getTypeOf()) && isNotReversed(); | ||
| } | ||
|
|
||
| public boolean isDefferedIncome() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in the method name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Typo fixed
| Loan loan = buyDownFeeTransaction.getLoan(); | ||
| BigDecimal totalAmortizationAmount = BigDecimal.ZERO; | ||
|
|
||
| final List<LoanTransactionRelation> loanTransactionRelations = loanTransactionRelationRepository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont need to fetch all the relations and go through on loan transactions (and effectively fetch them) to make this decision. Please write a simply query which returns the required information:
- boolean
- related transaction id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Method updated to return a boolean value
adamsaghy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look on my concerns!
1b8f0be to
aafd96a
Compare
…al of existing transaction
Description
Support reversal of “Buy Down fees” transactions.
Not yet reversed “Buy Down fees” transaction is allowed to be reversed if
Mirror JE entries will be based for reversal entry of that transaction
There is no any not yet reversed “Buy Down fees Adjustment” that belongs to this transactions (transaction relationship)
When “Buy Down fees” transaction is reversed, all already amortized amounts should be corrected in a “Buy Down fees amortization adjustment“ transaction.
Mirror JE entries of “Buy Down fees amortization“.
COB will handle the adjustment transaction
Delete related buy down fee balance
FINERACT-2311
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.