Commit Graph

10989 Commits

Author SHA1 Message Date
Stephen Morgan
07d1b01287 imp: cost: Allow inferring cost from conversion equity postings with --infer-costs.
When given --infer-equity, hledger will change transaction prices to balancing equity postings. This introduces the inverse operation, --infer-costs, which will match balancing equity postings and transform them into a transaction price, allowing --cost to work properly with them. This is only a partial inverse as it needs to use some heuristics to match the postings which will not work in complicated cases.

Specifically, when hledger finds exactly two conversion postings in a transaction (by default, subaccounts of equity:conversion or equity:trad(e|ing)), it will find the first posting in the transaction whose amount is negative one of the conversion posting amounts, and inserts the corresponding transaction price.
2022-07-15 12:32:38 +01:00
Simon Michael
41cd8c3e06 dev: errors: small csv error test fixes 2022-07-15 11:16:29 +01:00
Simon Michael
7ecfe23a91
Merge pull request #1885 from simonmichael/errors
Catalog, test and improve error messages
2022-07-15 11:10:15 +01:00
Simon Michael
da2c544555 dev: errors: readme: reorder, link 2022-07-15 10:27:48 +01:00
Simon Michael
82c52c1318 dev: errors: readme: update hledger/flycheck versions 2022-07-15 10:13:11 +01:00
Simon Michael
62f8ac5e60 dev: errors: update readme with CSV errors 2022-07-15 10:03:25 +01:00
Simon Michael
8d9356583c dev: errors: stable test listing order 2022-07-15 10:03:02 +01:00
Simon Michael
f1e5d7aa30 dev: errors: examples and tests of current CSV errors 2022-07-15 10:02:40 +01:00
Simon Michael
d0a7154b4a dev: errors: test generation improvements 2022-07-15 10:02:24 +01:00
Simon Michael
90c41529ef dev: errors: update func tests 2022-07-15 07:45:56 +01:00
Simon Michael
78d5939c19 dev: errors: improve timeclock errors 2022-07-14 19:24:46 +01:00
Simon Michael
aeae7232ca dev: errors: update readme 2022-07-14 19:13:09 +01:00
Simon Michael
5ac8f11853 dev: errors: update tests & readme, now including timeclock test 2022-07-14 19:00:49 +01:00
Simon Michael
fc1621e647 dev: errors: improve error test generation 2022-07-14 18:59:58 +01:00
Simon Michael
32c7f6300b imp: errors: improve, test timeclock errors 2022-07-14 11:57:32 +01:00
Simon Michael
27142896b3 doc: errors: note limitations 2022-07-14 11:57:32 +01:00
Simon Michael
0ecc1ed79b dev: Uniqueleafnames.hs: fix haddock failure 2022-07-13 19:10:28 +01:00
Simon Michael
7d8fbe2dc0 dev: errors: update doctests 2022-07-13 19:00:00 +01:00
Simon Michael
a7d84b5fec dev: errors: update readme 2022-07-13 18:59:53 +01:00
Simon Michael
a828c7b2b8 dev: errors: update examples in readme 2022-07-13 17:59:20 +01:00
Simon Michael
96cbc4697c dev: errors: update tests 2022-07-13 17:58:55 +01:00
Simon Michael
5a343bf090 imp: errors: assertions: improve layout 2022-07-13 17:56:17 +01:00
Simon Michael
c22e9f6cc8 dev: HLEDGER selects the hledger version when running error tests 2022-07-13 17:43:21 +01:00
Simon Michael
ebec23f614 dev: generate more robust error message tests 2022-07-13 17:43:11 +01:00
Simon Michael
e172e5dd56 imp: errors: uniqueleafnames: more precise error message 2022-07-13 04:02:14 +01:00
Simon Michael
1c67d0860e imp: errors: more error prettification 2022-07-13 03:59:44 +01:00
Simon Michael
84f951e020 imp: errors: assertions, balanced: more consistent format
Move the unique text out of the first line and down to the
explanation.

Also, begin some general punctuation, capitalisation and wording
improvements.
2022-07-12 16:53:08 +01:00
Simon Michael
e6959743f5 fix: errors: assertions: don't show actual and asserted reversed 2022-07-12 16:35:45 +01:00
Simon Michael
41234f0e10 fix: errors: assertions: fix excerpt highlighting 2022-07-12 16:02:46 +01:00
Simon Michael
d07bf4afbb fix: errors: omit wrong column numbers in a number of error messages
accounts, commodities, payees, ordereddates, uniqueleafnames

The column numbers were accurate for the rendered excerpt but not
for the actual data.
2022-07-12 16:02:46 +01:00
Simon Michael
77f29aeee9 imp: errors: balancednoautoconversion: now different from balanced 2022-07-12 16:02:37 +01:00
Simon Michael
c885746aa8 imp: errors: balanced: show multicommodity amounts in one line format 2022-07-12 16:02:18 +01:00
Simon Michael
6fbcbf7c6b doc: update manuals 2022-07-12 16:01:33 +01:00
Simon Michael
9a34145569 ;doc: update CLI usage texts 2022-07-12 16:01:33 +01:00
Simon Michael
7068517f2c fix: bal: budget goals were ignoring rule-specified start date 2022-07-12 10:46:29 +01:00
Simon Michael
b606d8de02 tools: make scc 2022-07-11 11:36:14 +01:00
Simon Michael
d7f30d4fdf ;cabal: update cabal files 2022-07-11 11:18:24 +01:00
Simon Michael
d9c6406d2d doc: changelogs: updates 2022-07-11 11:02:18 +01:00
Simon Michael
7be94cf500 doc: changelogs: sync from release branch 2022-07-11 11:00:16 +01:00
Simon Michael
38431b5c61 install: 1.26.1 2022-07-11 10:56:41 +01:00
Simon Michael
fb56d62011 ci: linux-x64-static: note issue 2022-07-11 10:56:35 +01:00
Simon Michael
178ff7ace4 ci: linux-x64-static: ghc 9.2.2 -> 9.2.3 2022-07-11 10:55:48 +01:00
Simon Michael
62e922cd4d ci: linux-x64-static: cache cabal packages 2022-07-11 10:55:20 +01:00
Simon Michael
5ebbfea067 ci: linux-x64-static: try building separately to avoid segfault 2022-07-11 10:55:17 +01:00
Simon Michael
c41921db55 pkg: make safe 0.3.19 visible in 8.6 build 2022-07-11 06:10:33 +01:00
Simon Michael
797cac4fc6 pkg: require safe 0.3.19+ to avoid deprecation warning 2022-07-11 06:03:14 +01:00
Simon Michael
3070ba9b36 dev: stack: bump to latest nightly 2022-07-10 22:05:14 +01:00
Simon Michael
dde2ea7e42 pkg: ui: support doclayout 0.4, brick 0.72+ 2022-07-10 22:03:45 +01:00
Simon Michael
6b42514dbc fix: errors: doc 2022-07-10 13:39:33 +01:00
Simon Michael
1da7d4b7f7 imp: balanced, balancednoautoconversion: use new error format (#1436) 2022-07-10 12:12:03 +01:00