FINERACT-1315: Add accrual journal entries for loan transfers#5816
FINERACT-1315: Add accrual journal entries for loan transfers#5816San-43 wants to merge 3 commits intoapache:developfrom
Conversation
Aman-Mittal
left a comment
There was a problem hiding this comment.
Please address my concerns. While explain me your reasoning of the ticket implementation
|
@San-43 if possible can you also share all the api level logs. Like this. If you have tested this on local environment. What were the curls when creating loan product, offices, and loan transfer api curl that initiate transfer when you transfered the loan to one office to another. I want to try something. |
Hi @adamsaghy seems like the problem was unrelated dependency resolution from Maven Central, not a code/test assertion failure. Either way i'm planning to update the PR so please do not rerun the tests yet. |
Sure, i'll share the logs along with the updated changes in the next few hours. |
@San-43 Great to hear, what I primarily want that curl logs of all activities you have done while testing this change in your local environment. You can extract those by recording network activity in chrome dev tools and download all network related activity. My goal is that I can test those changes myself locally and automate those api calls in postman or BDD scripts. |
Sounds good @Aman-Mittal. I’ll try it in postman too. Maybe I can just share the Postman collection instead. |
|
Hi again @Aman-Mittal, I pushed the latest changes. I also put together the manual API validation flow with the curls: FINERACT-1315-api-evidence.md And I created a Postman collection in case you want to run the same flow locally. It creates two fresh clients on each run, one for the initiated/approved transfer flow and another for the withdrawal flow. It also creates the The breaking changes reported in the failing test are all under working-capital loan endpoints and report And here are some screenshots of the results: Clients
Loan transactions for "San Mart"
Transfer initiated
Transfer approved
Loan transactions for "san mart withdraw"
Transfer initiated
Transfer withdrawn
|
|
@San-43 thanks will try to review it. @adamsaghy I may be little late to continue my review in that case can you review rest of the PR? |
|
@San-43 Can you please rebase this PR? (it might be out of sync -> hence https://github.com/apache/fineract/actions/runs/25137677428/job/73683248999?pr=5816 failure |
a4fce59 to
5496a8a
Compare
Done. |
|
Hi again @adamsaghy api compatibility and shard 1 failed to load dependencies while shard 9 seems unrelated.
|







Description
When a client is transferred between offices, active loans now create the expected accounting journal entries for the loan transfer transactions. This covers accrual accounting and the transfer flow for:
Note
During manual validation, I also found that journal entries could be posted to the loan’s current office instead of the office stored on the loan transaction (2nd commit).
Loan transactions
Transfer initiated
Transfer aproved
Transfer withdraw (after another initiated)