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
Simon Michael
2ba135e402
lib: journal: fix wrong txn rendering in balance assertion errors
2018-10-06 09:31:22 -10:00
Simon Michael
3dbf97babd
site: download: tweaks
...
[ci skip]
2018-10-06 09:12:55 -10:00
Simon Michael
92e9cbaa0f
site: download: overhaul platform instructions
...
[ci skip]
2018-10-06 07:57:50 -10:00
Simon Michael
6f4088edbd
doc: relnotes: linkify issue numbers since hledger 1.1
...
[ci skip]
2018-10-05 18:59:50 -10:00
Simon Michael
093c6c7e3e
doc: relnotes: add ui/web/api
...
[ci skip]
2018-10-05 18:54:20 -10:00
Simon Michael
d2ec8469c8
doc: new announcement template with tweaked install docs
...
[ci skip]
2018-10-05 16:56:35 -10:00
Simon Michael
30e0768e86
doc: save 1.11 announcement
...
[ci skip]
2018-10-05 14:43:05 -10:00
Felix Yan
9c0648b46a
test: fix a typo
2018-10-05 11:06:47 -10:00
Simon Michael
08e02024b2
install: warn and stop if old stack shadows installed one; clearer output
...
[ci skip]
2018-10-05 11:05:39 -10:00
Simon Michael
273f744718
install: be more informative about the choice of install tool
...
[ci skip]
2018-10-05 11:05:39 -10:00