Benrnz/BudgetAnalyser

Better separation between buckets stored in accounts

Closed this issue · 2 comments

Would be better to allocate a bucket to an account, and the whole bucket balance is stored in that account.

Current thinking is: Mark a LedgerBook LedgerColumn with an Account. This designates that ledger to be stored wholly in the nominated Account. Note this is a LedgerBook concern not a BudgetModel concern; it has no knowlegde of Accounts. This will allow Surplus to exist in any account attached in the LedgerBook. Clicking Surplus will need to list Surplus balance in each Account. By default, I think, a Surplus balance other than 0.00 should generate a warning to show the user a transfer is required.

Resolved. Each ledger is allocated to a bank account. When adding a new reconciliation, all bank accounts involved in a ledger book, must have a balance added. Also means that surplus is no longer one number, each bank account can have a surplus value. The surplus number shown in a ledger book is now a hyperlinked total figure, which will show each surplus value in each account when clicked.