wealthfolio
wealthfolio copied to clipboard
Cash Balance Becomes Negative with Multiple `BUY` Activity Orders
When only BUY orders are input, the cumulative cash balance becomes negative on the AccountPage. (Refer to the screenshot)
Steps to Reproduce:
- Enter multiple BUY orders for share in specific account.
- Observe that the cash balance becomes negative on the AccountPage.
Technical Observation:
In the calculate_historical_value function, the handling of cumulative_cash
assumes that there are sufficient "DEPOSIT", "TRANSFER_IN", or "CONVERSION_IN" activities to cover the costs associated with BUY orders.