budget: note some todos

[ci skip]
This commit is contained in:
Simon Michael 2018-05-17 08:12:14 -07:00
parent 5e725ff36e
commit 1c6702d598
2 changed files with 7 additions and 0 deletions

View File

@ -212,6 +212,7 @@ multiBalanceReport opts q j =
sortedrows = concatMap (\a -> maybe [] (:[]) $ lookup (aname a) anamesandrows) sortedaccounts sortedrows = concatMap (\a -> maybe [] (:[]) $ lookup (aname a) anamesandrows) sortedaccounts
-- Sort the report rows by account code if any, with the empty account code coming last, then account name. -- Sort the report rows by account code if any, with the empty account code coming last, then account name.
-- TODO keep children below their parent. Have to convert to tree ?
sortFlatMultiBalanceReportRowsByAccountCodeAndName = sortBy (comparing acodeandname) sortFlatMultiBalanceReportRowsByAccountCodeAndName = sortBy (comparing acodeandname)
where where
acodeandname r = (acode', aname) acodeandname r = (acode', aname)

View File

@ -310,3 +310,9 @@ Budget performance in 2018/01/01:
c || 1 [ 100% of 1] c || 1 [ 100% of 1]
-------++-------------------------- -------++--------------------------
|| 2 [ 2% of 101] || 2 [ 2% of 101]
# TODO
# 14. respect hierarchy when sorting in tree mode
# TODO
# 15. respect --sort-amount