mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
3de8c11de1
A bunch of account sorting changes that got intermingled. First, account codes have been dropped. They can still be parsed and will be ignored, for now. I don't know if anyone used them. Instead, account display order is now controlled by the order of account directives, if any. From the mail list: I'd like to drop account codes, introduced in hledger 1.9 to control the display order of accounts. In my experience, - they are tedious to maintain - they duplicate/compete with the natural tendency to arrange account directives to match your mental chart of accounts - they duplicate/compete with the tree structure created by account names and it gets worse if you think about using them more extensively, eg to classify accounts by type. Instead, I plan to just let the position (parse order) of account directives determine the display order of those declared accounts. Undeclared accounts will be displayed after declared accounts, sorted alphabetically as usual. Second, the various account sorting modes have been implemented more widely and more correctly. All sorting modes (alphabetically, by account declaration, by amount) should now work correctly in almost all commands and modes (non-tabular and tabular balance reports, tree and flat modes, the accounts command). Sorting bugs have been fixed, eg #875. Only the budget report (balance --budget) does not yet support sorting. Comprehensive functional tests for sorting in the accounts and balance commands have been added. If you are confused by some sorting behaviour, studying these tests is recommended, as sorting gets tricky. |
||
---|---|---|
.. | ||
Hledger | ||
other/ledger-parse | ||
test | ||
Text | ||
.ghci | ||
CHANGES | ||
hledger_csv.5 | ||
hledger_csv.info | ||
hledger_csv.m4.md | ||
hledger_csv.txt | ||
hledger_journal_directives.m4.md | ||
hledger_journal.5 | ||
hledger_journal.info | ||
hledger_journal.m4.md | ||
hledger_journal.txt | ||
hledger_timeclock.5 | ||
hledger_timeclock.info | ||
hledger_timeclock.m4.md | ||
hledger_timeclock.txt | ||
hledger_timedot.5 | ||
hledger_timedot.info | ||
hledger_timedot.m4.md | ||
hledger_timedot.txt | ||
hledger-lib.cabal | ||
Hledger.hs | ||
LICENSE | ||
package.yaml | ||
README | ||
Setup.hs |
A reusable library containing hledger's core functionality. This is used by most hledger* packages for common data parsing, command line option handling, reporting etc.