Commit Graph

10442 Commits

Author SHA1 Message Date
Simon Michael
40e984a798 ;tools: changelog: fix warnings 2022-01-01 15:56:19 -10:00
Simon Michael
ae30c5ac09 ;dev: make HLS work on tools/* 2022-01-01 15:55:59 -10:00
Simon Michael
d1bc3bbb32 ;doc: update changelogs 2022-01-01 15:55:08 -10:00
Simon Michael
0317f71c05 ;tools: changelog: move to tools/ 2022-01-01 08:25:16 -10:00
Simon Michael
326b2309bc ;doc: csv: tweak 2021-12-30 09:22:57 -10:00
Dmitry Astapov
ce54fb8ae9 ;roi: fixes #1791 (fix TWR when investment=0, several pnls per day) 2021-12-27 08:10:22 -10:00
Simon Michael
a36836e723 ;examples: multicurrency.journal 2021-12-22 15:38:48 -10:00
Simon Michael
737ab13284 journal: doc updates for aliases corrupting account names (#1788) 2021-12-22 15:14:37 -10:00
Simon Michael
713f7eab65 journal: doc updates for aliases corrupting account names (#1788) 2021-12-22 15:08:01 -10:00
Simon Michael
9c173bc18b journal: tests/docs for aliases corrupting account names (#1788) 2021-12-22 14:59:13 -10:00
Stephen Morgan
e9dd77e82b fix: Ensure head and tail are not called on empty account names. 2021-12-22 14:37:37 -10:00
Simon Michael
88f34063c7 ;dev: make functest-*: fix hardcoded stack 2021-12-21 12:18:57 -10:00
Simon Michael
cfee37ab36 ;doc: fix conversion & cost lists 2021-12-21 11:01:39 -10:00
Simon Michael
e92a266064 ;doc: update manuals 2021-12-21 10:55:05 -10:00
Simon Michael
d10f3df27b ;doc: fix conversion & cost depth 2021-12-21 10:54:47 -10:00
Simon Michael
4bf0d76a1f ;doc: update manuals 2021-12-21 10:53:19 -10:00
Simon Michael
82cd81c066 doc: new CONVERSION & COST section after #1554 2021-12-21 10:50:13 -10:00
Stephen Morgan
8eedbbbe87 imp: cost: Generate totally balanced conversion postings for amounts with costs.
Introduce --infer-equity option which will generate conversion postings.
--cost will override --infer-equity.

This means there will no longer be unbalanced transactions, but will be
offsetting conversion postings to balance things out. For example.

2000-01-01
  a   1 AAA @@ 2 BBB
  b  -2 BBB

When converting to cost, this is treated the same as before.
When used with --infer-equity, this is now treated as:

2000-01-01
  a                               1 AAA
  equity:conversion:AAA-BBB:AAA  -1 AAA
  equity:conversion:AAA-BBB:BBB   2 BBB
  b                              -2 BBB

There is a new account type, Conversion/V, which is a subtype of Equity/E.
The first account declared with this type, if any, is used as the base account
for inferred equity postings in conversion transactions, overriding the default
"equity:conversion".

API changes:

Costing has been changed to ConversionOp with three options:
NoConversionOp, ToCost, and InferEquity.
The first correspond to the previous NoCost and Cost options, while the
third corresponds to the --infer-equity flag.  This converts transactions with costs
(one or more transaction prices) to transactions with equity:conversion postings.
It is in ConversionOp because converting to cost with -B/--cost and inferring conversion
equity postings with --infer-equity are mutually exclusive.

Correspondingly, the cost_ record of ReportOpts has been changed to
conversionop_.

This also removes show_costs_ option in ReportOpts, as its functionality
has been replaced by the richer cost_ option.
2021-12-21 10:50:13 -10:00
Simon Michael
bf063f719d ;dev: simpler mac hie filename 2021-12-21 08:41:55 -10:00
Simon Michael
9a5e62345f ;dev: move hie.yaml out of the way, non m1 users probably don't want it 2021-12-19 17:19:51 -10:00
Simon Michael
5561eeb8a4 ;doc: fix two unlinked urls 2021-12-17 10:00:19 -10:00
Simon Michael
cfebbe79f3 ;dev: make: use ghc 8.10 till 9.x has arm binaries 2021-12-16 15:33:09 -10:00
Simon Michael
09009cbb1c ;tools: bump resolver in more places 2021-12-16 13:34:59 -10:00
Simon Michael
074606c7a7 ;tools: make hls use ghc 8.10 until 9.0 arm binaries 2021-12-16 13:28:08 -10:00
Simon Michael
2aa7fb9a09 stack: 810, 90 updates 2021-12-16 12:51:05 -10:00
Simon Michael
c23808a163 ;doc: queries: fix "rewriting accounts" links 2021-12-15 11:14:01 -10:00
Simon Michael
8759d26641 ;doc: RELEASING 2021-12-11 17:34:16 -10:00
Simon Michael
33ae2ebb6b ;doc: RELEASING 2021-12-11 17:32:47 -10:00
Simon Michael
fe8799b70b ;doc: RELEASING 2021-12-11 17:19:59 -10:00
Simon Michael
839ebc18a8 dev: make hackageupload: do it only from a release branch
To avoid mishaps like yesterday's upload of 1.24.99, this will now
only work from a branch named VERSION-branch or (possible future
naming) VERSION-release.

This means major releases from master are no longer allowed; a release
branch is always required,
2021-12-11 08:52:33 -10:00
Simon Michael
16124eba14 dev: move commitlint to tools, keeping bin/ for user tools 2021-12-10 16:52:19 -10:00
Simon Michael
9ca681097a install: 1.24.1 2021-12-10 16:44:18 -10:00
Simon Michael
4eef4301ec ;doc: RELEASING 2021-12-10 16:43:54 -10:00
Simon Michael
9ffea3a0bd ;doc: RELEASING notes 2021-12-10 16:41:17 -10:00
Simon Michael
45db32b84f ;doc: update changelogs 2021-12-10 12:50:21 -10:00
Simon Michael
a98e6125f1 ;doc: changelogs: 1.24.1 2021-12-10 12:47:43 -10:00
Simon Michael
1ef8f329c6 lib: simpler more robust version strings, with date/without patchlevel
We no longer rely on git tags and git describe output, since it's
hard to reliably select the correct tag eg for minor releases.
We might use them again in future for dev builds, but it requires
adding git describe --match support to githash. For now,

* Program name, OS and architecture are always shown.
* The package version is always shown.
* If there is git info at build time, the latest commit hash and commit date are shown.

Example outputs:
A homebrew binary, not built in git repo: hledger-ui 1.24, mac-aarch64
A CI release build, built in git repo:    hledger 1.24.1-g455b35293-20211210, mac-x86_64

API changes:

* new type synonyms ProgramName, PackageVersion, VersionString
* versionStringForProgname -> versionString with extra argument
* versionStringFor -> versionStringWith with extra argument
2021-12-10 12:42:40 -10:00
Simon Michael
0c6575ee8a ci: more consistent workflow names 2021-12-10 10:40:40 -10:00
Simon Michael
e9594a93d4 ci: linux-x64: drop "static" from artifact/binary names 2021-12-09 16:00:59 -10:00
Simon Michael
91780ceb9a ci: linux-x64: try ghc 8.10.4 -> 9.0.1 2021-12-09 15:58:47 -10:00
Simon Michael
9e24cca793 ci: rename linux workflows, branches
workflow linux-static-x64.yml  is now linux-x64.yml
and its branch ci-linux-static is now ci-linux-x64

workflow linux-static-arm32v7.yml    is now linux-arm32v7.yml
and its branch ci-linux-static-arm32 is now ci-linux-arm32v7
2021-12-09 15:38:26 -10:00
Simon Michael
1a646cd092 ;doc: changelogs: 1.24.1 2021-12-09 14:52:23 -10:00
Simon Michael
f111274f25 ;doc: update changelogs 2021-12-09 14:25:42 -10:00
Simon Michael
e532b7be49 ;doc: update manuals 2021-12-09 14:03:58 -10:00
Simon Michael
43d935efda fix: ui: declared accounts respect not:ACCT (another #1783 fix) 2021-12-09 13:45:57 -10:00
Simon Michael
d1a0d37bd1 fix: bal: --declared now respects not:ACCT (fix #1783) 2021-12-09 12:58:22 -10:00
Simon Michael
25598a231f lib: clarify filterQuery, add filterQueryOrNotQuery (#1783) 2021-12-09 12:57:26 -10:00
Simon Michael
46cc60779d ;dev: make throughput: output tweak 2021-12-09 12:24:19 -10:00
Simon Michael
6b3d040fdf cln: ui: drop unused pragma 2021-12-09 12:23:55 -10:00
Simon Michael
08b72ae9f7 dev: bal: note yet another --declared issue 2021-12-08 18:21:32 -10:00