Commit Graph

6854 Commits

Author SHA1 Message Date
Simon Michael
c53502e1ac docs: say more about special chars and unicode chars (cf #895)
[ci skip]
2018-10-11 19:06:52 -07:00
Simon Michael
9685699491 docs: options: clarify special characters topic
[ci skip]
2018-10-11 18:00:36 -07:00
Simon Michael
51bf8cbccc docs: journal: account: a gotcha when changing builtin account types
[ci skip]
2018-10-11 16:16:33 -07:00
Simon Michael
a899f7924f docs: journal: account: update directives intro
[ci skip]
2018-10-11 15:53:06 -07:00
Moritz Kiefer
ec1b31f7ba Anonymize original postings 2018-10-11 15:39:33 -07:00
Simon Michael
0d6803e4b5 accounts: drop obsolete --codes flag 2018-10-10 20:35:53 -07:00
Simon Michael
cf25ef5cf5 accounts: filtering by anything other than account name was broken 2018-10-10 20:32:19 -07:00
Simon Michael
3f0ab0b008 tests: clean up directives test files
[ci skip]
2018-10-10 20:31:08 -07:00
Simon Michael
e4215c094e doc: journal: document setting account types
[ci skip]
2018-10-09 14:24:59 -10:00
Simon Michael
605a082d77 bs/bse/cf/is: use account type declarations if any
These commands now detect the account types declared by account directives.
Whenever such declarations are not present, built-in regular expressions
are used, as before.
2018-10-09 14:24:59 -10:00
Simon Michael
c1236fa6e9 journal: account directives can declare account types
Previously you had to use one of the standard english account names
(assets, liabilities..) for top-level accounts, if you wanted to use
the bs/bse/cf/is commands.
Now, account directives can specify which of the big five categories
an account belongs to - asset, liability, equity, revenue or expense -
by writing one of the letters A, L, E, R or X two or more spaces after
the account name (where the numeric account code used to be).

This might change. Some thoughts influencing the current syntax:
- easy to type and read
- does not require multiple lines
- does not depend on any particular account numbering scheme
- allows more types later if needed
- still anglocentric, but only a little
- could be treated as syntactic sugar for account tags later
- seems to be compatible with (ignored by) current Ledger

The current design permits unlimited account type declarations anywhere
in the account tree. So you could declare a liability account somewhere
under assets, and maybe a revenue account under that, and another asset
account even further down. In such cases you start to see oddities like
accounts appearing in multiple places in a tree-mode report. In theory
the reports will still behave reasonably, but this has not been tested
too hard. In any case this is clearly too much freedom. I have left it
this way, for now, in case it helps with:

- modelling contra accounts ?
- multiple files. I suspect the extra expressiveness may come in handy
  when combining multiple files with account type declarations,
  rewriting account names, apply parent accounts etc.
  If we only allowed type declarations on top-level accounts, or
  only allowed a single account of each type, complications seem likely.
2018-10-09 14:24:59 -10:00
Simon Michael
678e8c28e4 tests: protect func. test from shelltest -w flag (#897) 2018-10-09 17:16:47 -07:00
Mykola Orliuk
8c6a418325 lib: fix home path expansion in includes
fixes simonmichael/hledger#896
2018-10-09 13:35:40 -10:00
Simon Michael
6c57629b8c lib: fix posting-date-and-balance-assignment error properly (#894) 2018-10-09 16:08:47 -07:00
Simon Michael
8c7c59017a lib: fix my wrong merge of #880 more 2018-10-09 15:26:15 -07:00
Simon Michael
36fdeceb6c lib: tweak posting-date-no-amount-balance-assertion error (#894) 2018-10-09 14:15:52 -07:00
Simon Michael
f6e095e794 lib: fix my wrong merge of #880 2018-10-09 14:06:22 -07:00
Simon Michael
0f921bfbe0
Merge pull request #880 from awjchen/ExceptTLayer
Re-implement the 'ExceptT' layer of the parser and switch to megaparsec 7 [WIP]
2018-10-09 10:33:21 -10:00
Simon Michael
88887e5458
Merge branch 'master' into ExceptTLayer 2018-10-09 10:31:32 -10:00
Simon Michael
278802e648 journal: Y affects dates in periodic transactions (fix #892) 2018-10-09 11:54:40 -07:00
Simon Michael
ab26220b23 lib: document SmartDate
[ci skip]
2018-10-09 10:43:03 -07:00
Alex Chen
2cbc41e088 Merge branch 'master' into ExceptTLayer 2018-10-09 11:19:45 -06:00
Alex Chen
e45070aab5 Update dependency bounds for megaparsec 2018-10-09 11:15:33 -06:00
Alex Chen
a8d642d5b5 lib: revise comments for "final" parse errors
- also simplify their implementation a bit
2018-10-09 11:05:46 -06:00
Simon Michael
dcf4c07ac8 journal: commented test for Y and periodic transactions (#892)
[ci skip]
2018-10-09 08:17:16 -07:00
Simon Michael
881966207f stack: trial build plan for ghc 8.6 (#883)
[ci skip]
2018-10-07 20:20:48 -10:00
Simon Michael
f5ac8f82b2 site: download: tweaks; start collecting packager contact info
[ci skip]
2018-10-07 17:02:39 -10:00
Simon Michael
d6508f8c4e site: download: 1.11 windows binary
[ci skip]
2018-10-07 16:10:30 -10:00
Simon Michael
36af23ff5a appveyor: try older ghc again, skip tests for now (#888)
[ci skip]
2018-10-07 10:07:31 -10:00
Simon Michael
9f4426a462 site: download: add update link, link to platform package info
[ci skip]
2018-10-07 09:10:55 -10:00
Simon Michael
b036a49a4f site: download: update homebrew-installed version
[ci skip]
2018-10-07 08:34:02 -10:00
Simon Michael
fdab1d1877 appveyor: 7x is rocket science, try this (#888)
https://stackoverflow.com/questions/1359793

[ci skip]
2018-10-07 08:24:04 -10:00
Simon Michael
e4850e89df site: download: tweaks
[ci skip]
2018-10-07 07:01:33 -10:00
Simon Michael
0ef8024d23 site: download: more cleanups, add cabal install command
[ci skip]
2018-10-07 06:52:54 -10:00
Simon Michael
c476a187fc appveyor: tweak 7x command 2 (#888) 2018-10-06 17:04:30 -10:00
Simon Michael
1d3dfcf0f0 appveyor: tweak 7x command (#888)
[ci skip]
2018-10-06 16:53:23 -10:00
Simon Michael
79a8094034 appveyor: try again with 64-bit stack (#888) 2018-10-06 13:29:43 -10:00
Simon Michael
80477cf432 site: download: cleanups
[ci skip]
2018-10-06 13:16:36 -10:00
Simon Michael
cedbdf611f doc: announce: add cabal update
[ci skip]
2018-10-06 13:16:13 -10:00
Simon Michael
f3afbd221d doc: merge old project changelog into hledger changelog
[ci skip]
2018-10-06 12:48:14 -10:00
Simon Michael
44233372d0 appveyor: install stack, use latest stack prerelease (#888) 2018-10-06 12:35:19 -10:00
Simon Michael
a73005011b appveyor: try using newer network and ghc 8.4 (#888) 2018-10-06 10:04:15 -10:00
Simon Michael
f4804aef9a appveyor: try to fix build, don't assume directory exists (#888) 2018-10-06 10:03:55 -10:00
Simon Michael
beec183a4b doc: fix version header in 1.11 docs
[ci skip]
2018-10-06 12:52:40 -07:00
Simon Michael
e6556e4760 site: shake: also generate the 1.11 web manual
[ci skip]
2018-10-06 09:48:03 -10:00
Simon Michael
862fb873b4 update embedded manuals 2018-10-06 09:42:27 -10:00
Simon Michael
ff2a546319 bump version to 1.11.99 2018-10-06 09:42:12 -10:00
Simon Michael
9597f1891b install: bump hledger versions to 1.11.1 2018-10-06 09:40:52 -10:00
Simon Michael
e687ef1a79 doc: changelogs, relnotes 2018-10-06 09:40:06 -10:00
Simon Michael
dcbedadcc4 add: fix wrong txn rendering during data entry & in journal file 2018-10-06 09:31:22 -10:00