jakub-mrow / AMS-backend

0 stars 0 forks source link

Rebuild StockBalance #47

Closed dawids21 closed 11 months ago

dawids21 commented 1 year ago

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.

Waiting for: