Commit Graph

10882 Commits

Author SHA1 Message Date
Alex Hirzel
c06a3563ac ;doc: fix tables of contents in developer documentation 2022-07-31 10:57:09 +01:00
Simon Michael
217cfbd389 imp: errors: assertions: improve sample hledger command 2022-07-31 08:26:30 +01:00
Simon Michael
442ef9361c feat: api: quoteForCommandLine: some very shady CLI escaping 2022-07-31 08:26:30 +01:00
Simon Michael
d2f0077254 ;doc: github-release-doc: rename, tweaks 2022-07-31 07:19:47 +01:00
Simon Michael
acedc8997d dev: stack: roll back to ghc 9.2.2 to keep hls working 2022-07-29 14:52:46 +01:00
Simon Michael
d860d6d2fc api: Hledger.Data.Errors: export makeBalanceAssertionErrorExcerpt 2022-07-29 09:01:34 +01:00
Simon Michael
a6edbe4336 ;doc: update manuals 2022-07-28 19:08:26 +01:00
Simon Michael
85a0016e0a ;doc: manuals: hledger: journal format: fix differences link 2022-07-28 19:04:56 +01:00
Simon Michael
06c14ff034 ;doc: update manuals 2022-07-28 17:32:58 +01:00
Simon Michael
959bf0d989 ;doc: hledger manual: limitations: fix differences link 2022-07-28 17:25:09 +01:00
Simon Michael
f135001b87 ;dev: improve followingcommentp' doc 2022-07-28 09:14:13 +01:00
Simon Michael
830acdd444 doc: github-release-template: tweaks 2022-07-27 00:34:03 +01:00
Simon Michael
72f73278bd doc: github-release-template: windows script improvements
(Lazar Lazarov)
2022-07-26 23:52:58 +01:00
Simon Michael
827d3f79f4 ci: avoid double zip; use tar instead to preserve x on linux/mac 2022-07-26 23:52:51 +01:00
Simon Michael
863983f0ff ci: update all to preserve executable permission when zipping 2022-07-26 22:49:47 +01:00
Simon Michael
7a8f2c1c8a ci: bump all upload-artifact users to v3 2022-07-26 22:37:44 +01:00
Simon Michael
af8e9501e9 ci: test-linux-x64, binaries-mac-x64: fix binaries upload 2022-07-26 22:24:49 +01:00
Simon Michael
01ec0949b4 doc: github-release-template: add modern windows instructions
(Lazar Lazarov, Simon Michael)
2022-07-26 18:02:02 +01:00
Simon Michael
ef2990627a ;doc: keep a github release template, add detailed steps for binaries 2022-07-26 12:44:04 +01:00
Simon Michael
c0e7cf86fc ci: binaries-mac-x64: preserve executable perms on zipped binaries 2022-07-26 11:02:01 +01:00
Simon Michael
b5eb3f494b ci: test-linux-x64: preserve executable perms on zipped binaries 2022-07-26 11:00:02 +01:00
Simon Michael
439c1ac260 ;doc: manuals: add link for setting windows env vars 2022-07-26 09:44:07 +01:00
Simon Michael
0e728a7466 ;doc: github issue templates: fix support link (#1895) 2022-07-25 23:13:04 +01:00
Simon Michael
a39cda6e02 ;doc: update manuals 2022-07-25 23:11:23 +01:00
Simon Michael
7b32b33dfb ;doc: workflows, hledger manual: fix support link (#1895) 2022-07-25 23:07:43 +01:00
Simon Michael
d7f3e8b50c ;doc: bin: edits 2022-07-25 18:26:32 +01:00
Simon Michael
d00827a2fc ;doc: bin: more cleanups 2022-07-25 09:02:07 +01:00
Simon Michael
cb6fceb50b ;doc: bin: cleanups; categorise scripts 2022-07-25 04:28:46 +01:00
Simon Michael
282be4c35d ;doc: update manuals 2022-07-25 03:38:55 +01:00
Simon Michael
c21e8ebf21 ;doc: hledger: fix hledger-install link 2022-07-25 03:38:23 +01:00
Simon Michael
1c4f02cf03 ;doc: update manuals 2022-07-25 03:32:30 +01:00
Simon Michael
da2b8f5f34 ;doc: move add-ons list to manual > COMMANDS; cleanups 2022-07-25 03:31:05 +01:00
Simon Michael
860cccad70 imp: bin: hledger-addon-example.hs script template 2022-07-24 12:08:43 +01:00
Simon Michael
bb95693779 doc: bin/README: tweaks 2022-07-24 11:59:05 +01:00
Simon Michael
a160395eac doc: bin/README: update & publish as new Scripts page 2022-07-24 11:33:12 +01:00
Simon Michael
0fd033d62b doc: CREDITS: consistent heading 2022-07-24 07:21:54 +01:00
Simon Michael
b2d9015235 doc: FINANCE: fix TOC 2022-07-24 07:21:54 +01:00
Simon Michael
54e1a8450e doc: clean up errors README, now published as hledger.org/ERRORS.html 2022-07-24 07:21:54 +01:00
Simon Michael
ed72763987 dev: errors: update functional tests 2022-07-23 02:40:29 +01:00
Simon Michael
47ae346b21 imp: errors: assertions: improve wording, actual -> calculated 2022-07-23 02:35:52 +01:00
Simon Michael
147856e3bb imp: errors: timeclock, csv error improvements 2022-07-23 02:35:52 +01:00
Simon Michael
ff25ad6767 examples: bcexample: drop beancountish double quotes 2022-07-23 02:35:17 +01:00
Stephen Morgan
c54fb4d514 imp: cost: Allow matching equity conversion equity postings to
transaction prices.

When given --infer-costs, hledger will now separately infer transaction
prices for different prices. Given a pair of adjacent conversion
postings, hledger will check if there is a single posting with a
transaction price which matches both the amounts. If so, it associates
those conversion postings to that priced post.

If it can't find any transaction price postings which match, it will
find the first non-transaction price post which matches one of the two
amounts, and will add a transaction price to that, and associate them.
2022-07-15 12:32:38 +01:00
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