Status: Closed (View Workflow)
Affects Version/s: None
This is reproduced on Honeysuckle.
When you create a manual fee/fine through the Users app that is not tied to an item, the loan fee/fine details page behaves as expected. No item information appears, and no loan information appears.
Sometimes, when you create a fee/fine using the API (like if you are doing migrations and doing POST /accounts), you get a weird phantom link that appears under Loan Details. You click "view", and then you get the open/closed loans page, but no loans.
After some investigation, it appears that the phantom scenario happens if you make an API call to POST /accounts to create a manual fee/fine but you DO NOT specify a loanId.
The process through the UI makes things work by setting loanId to "0" since no loan history is present.
loanId is not required on accountdata.json, so either it needs to be listed as required, or the view fine link needs to recognize a scenario when the loanId is not provided and behave accordingly.
Sample JSON that can create the buggy behavior (just provide the UUIDs accordingly)
POST / accounts: