imp: ui: accounts: also show declared accounts, even if unused
This will be more user-friendly when getting started.
This commit is contained in:
parent
a5e19b7391
commit
29efacf02c
@ -78,8 +78,11 @@ asInit d reset ui@UIState{
|
|||||||
where
|
where
|
||||||
as = map asItemAccountName displayitems
|
as = map asItemAccountName displayitems
|
||||||
|
|
||||||
-- Further restrict the query based on the current period and future/forecast mode.
|
rspec' =
|
||||||
rspec' = reportSpecSetFutureAndForecast d (forecast_ $ inputopts_ copts) rspec
|
-- Further restrict the query based on the current period and future/forecast mode.
|
||||||
|
(reportSpecSetFutureAndForecast d (forecast_ $ inputopts_ copts) rspec)
|
||||||
|
-- always show declared accounts even if unused
|
||||||
|
{_rsReportOpts=ropts{declared_=True}}
|
||||||
|
|
||||||
-- run the report
|
-- run the report
|
||||||
(items,_total) = balanceReport rspec' j
|
(items,_total) = balanceReport rspec' j
|
||||||
|
|||||||
@ -194,6 +194,7 @@ Additional screen-specific keys are described below.
|
|||||||
This is normally the first screen displayed.
|
This is normally the first screen displayed.
|
||||||
It lists accounts and their balances, like hledger's balance command.
|
It lists accounts and their balances, like hledger's balance command.
|
||||||
By default, it shows all accounts and their latest ending balances (including the balances of subaccounts).
|
By default, it shows all accounts and their latest ending balances (including the balances of subaccounts).
|
||||||
|
Accounts which have been declared with an [account directive](#declaring-accounts) are also listed, even if not yet used.
|
||||||
If you specify a query on the command line, it shows just the matched accounts and the balances from matched transactions.
|
If you specify a query on the command line, it shows just the matched accounts and the balances from matched transactions.
|
||||||
|
|
||||||
Account names are shown as a flat list by default; press `t` to toggle tree mode.
|
Account names are shown as a flat list by default; press `t` to toggle tree mode.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user