Implement the mechanism of rebuilding the history of AccountBalance whenever any transaction, whose date is before last_save_date for an account, is added.
The process and the necessary steps are presented on the diagram:
Get AccountHistory before the rebuild.
Get all transactions after the moment of rebuild sorted by date
Create Account and AccountBalance from history
For each day until yesterday apply the transactions and save the Account and AccountBalance in history.
Implement the mechanism of rebuilding the history of
AccountBalance
whenever any transaction, whose date is beforelast_save_date
for an account, is added.The process and the necessary steps are presented on the diagram:
AccountHistory
before the rebuild.Account
andAccountBalance
from historyAccount
andAccountBalance
in history.Account
andAccountBalance
Waiting for:
40