Similar to #41, we should rebuild the current stock view (StockBalance) when we add a transaction before another already existing transaction.
Process is similar to AccountBalance rebuilding: get last StockBalanceHistory and convert it to StockBalance (or create new StockBalance), apply transactions in order, save new StockBalance, recalculate XIRR.
Similar to #41, we should rebuild the current stock view (
StockBalance
) when we add a transaction before another already existing transaction.Process is similar to
AccountBalance
rebuilding: get lastStockBalanceHistory
and convert it toStockBalance
(or create newStockBalance
), apply transactions in order, save newStockBalance
, recalculate XIRR.Waiting for:
48