Stephen Morgan
4609e79f2c
lib,cli,ui,web: A number of AccountName and Journal functions which are
...
supposed to produce unique sorted use Sets internally to be slightly
more efficient. There is also a new function journalCommodities.
2021-03-23 11:26:30 -07:00
Simon Michael
d87751ef2e
;doc: ui, web: make image paths absolute
2021-03-21 09:10:50 -07:00
Simon Michael
d5a227f18c
;doc: ui, web, contributing: fix image urls
2021-03-21 07:45:37 -07:00
Simon Michael
7fad876014
;update manuals
2021-03-18 07:22:42 -07:00
Stephen Morgan
d6a4310d8f
lib,cli,ui,bin: Eliminate all uses of Mixed outside of Hledger.Data.Amount.
...
Exceptions are for dealing with the pamount field, which is really just
dealing with an unnormalised list of amounts.
This creates an API for dealing with MixedAmount, so we never have to
access the internals outside of Hledger.Data.Amount.
Also remove a comment, since it looks like #1207 has been resolved.
2021-03-18 09:47:59 +11:00
Simon Michael
ae57e76cb3
;update cabal files
2021-03-12 06:59:30 -08:00
Simon Michael
36cbc2b068
bump base upper bound to allow GHC 9.0
2021-03-12 06:58:46 -08:00
Simon Michael
5573538fdc
;update cabal files
2021-03-10 13:50:50 -08:00
Simon Michael
e050790d4c
;bump version to 1.21.99
2021-03-10 13:50:49 -08:00
Simon Michael
5cdbd04974
;finalise manuals
2021-03-10 11:12:06 -08:00
Simon Michael
532a4622ac
;finalise changelogs
2021-03-10 11:10:13 -08:00
Simon Michael
00beaf1423
;update cabal files
2021-03-10 08:24:59 -08:00
Simon Michael
eeddfc2509
;bump version to 1.21
2021-03-10 08:24:58 -08:00
Simon Michael
f82bdb15e4
;update changelogs
2021-03-10 08:24:12 -08:00
Simon Michael
269b25bc8d
doc: edited changelogs
2021-03-09 09:31:28 -08:00
Simon Michael
faf68f3def
;doc: bump changelogs to latest revision
2021-03-08 15:16:54 -08:00
Simon Michael
ec4d131d22
;doc: cherry pick recent edited changelogs from 1.21-branch
2021-03-08 15:15:57 -08:00
Simon Michael
325aa15f74
;doc: restore changelogs up to a5f9f8ce0
2021-03-08 15:14:47 -08:00
Simon Michael
54b95af9ff
;doc: merge 1.20.3, 1.20.4 changelogs from 1.20-branch
2021-03-08 15:12:39 -08:00
Simon Michael
ffb985f1a2
ui, web: make --man and --info work, similar to hledger
...
(cf #1410 )
2021-03-03 05:57:31 -08:00
Simon Michael
f7bbb39a77
;regenerate cabal files with the hpack version in current stack
...
To minimise warnings. They got regenerated by a commit for #1471 .
2021-02-18 13:42:40 -08:00
Simon Michael
b92a842728
;update manuals
2021-02-17 12:07:23 -08:00
Arnout Engelen
ad2ab3c823
Make sure to round up for the 'to' date
2021-02-17 09:05:13 -08:00
Simon Michael
d865ec5d65
lib: refactor: more consistent amount precision helpers
...
Hledger.Data.Amount:
renamed:
setAmountPrecision -> amountSetPrecision
setFullPrecision -> amountSetFullPrecision
setMixedAmountPrecision -> mixedAmountSetPrecision
added:
mixedAmountSetFullPrecision
2021-02-05 16:09:49 -08:00
Simon Michael
2a4170dd3b
ui: transaction: show all decimal places (like print, cf #931 )
...
On the accounts screen and register screen we round amounts according
to commodity styles, but when you drill down to a transaction you
probably want to see the unrounded amounts.
2021-02-04 08:13:55 -08:00
Stephen Morgan
c9eb7d1bcf
lib,cli,ui: Separate costing from valuation; each can now be specified
...
independently.
You can now combine costing and valuation, for example "--cost
--value=then" will first convert to costs, and then value according to
the "--value=then" strategy. Any valuation strategy can be used with or
without costing.
If multiple valuation and costing strategies are specified on the
command line, then if any of them include costing
(-B/--cost/--value=cost) then amounts will be converted to cost, and for
valuation strategy the rightmost will be used.
--value=cost is deprecated, but still supported and is equivalent to
--cost/-B. --value=cost,COMM is no longer supported, but this behaviour can be
achieved with "--cost --value=then,COMM".
2021-01-28 13:57:48 -08:00
Stephen Morgan
130739e3ef
lib,cli,ui: Introduce *ApplyCostValuation functions, which perform both
...
costing and valuation.
This currently is given a dummy NoCost argument and is equivalent to
"maybe id (*ApplyValuation ...)", but provides a constant interface so
that internal behaviour can be changed freely.
2021-01-28 13:57:48 -08:00
Simon Michael
507648383d
ui: register: show all txns in/under an account at depth limit ( #1468 )
...
As in 1.19. This was broken since 2020-09-02 c45663d41 .
2021-01-24 09:54:18 -08:00
Simon Michael
2e5ac08b69
;ui: add a manual test for #1468
2021-01-23 17:04:51 -08:00
Stephen Morgan
83110e8820
lib,cli: Extend AtThen valuation to all report types.
...
Also adds a postingDate argument to amountApplyValuation, and re-orders
the ValuationType and (Transaction/Posting) arguments to
(transaction/posting)ApplyValuation, to be consistent with
amountApplyValuation.
2021-01-05 14:42:09 -08:00
Stephen Morgan
7d3cf1747a
lib: Make consistent naming scheme for showMixedAmount* functions,
...
add conversion between old API and new API in the documentation.
2021-01-02 15:08:09 +11:00
Stephen Morgan
e4e533eb9f
lib,cli,ui: Replace some uses of String with Text, get rid of some unpacks, clean up showMixed options.
2021-01-02 15:08:09 +11:00
Stephen Morgan
13c111da73
lib,cli,ui: Use WideBuilder for Tabular.AsciiWide.
...
Move WideBuilder to Text.WideString.
2021-01-02 15:08:09 +11:00
Stephen Morgan
b9c00dce61
lib,cli,ui: Implement all showMixed* functions in terms of DisplayAmountOpts and WideBuilder.
2021-01-02 15:08:09 +11:00
Stephen Morgan
e3ec01c3c6
lib,cli,ui: Use Text for showDate and related.
2021-01-02 15:08:09 +11:00
Stephen Morgan
74b296f865
lib,cli: Make showTransaction return Text rather than String.
2021-01-02 15:08:09 +11:00
Stephen Morgan
7e44b89bb4
lib: Remove unused label on TranspactionReport and AccountTransactionsReport.
2021-01-02 15:08:09 +11:00
Stephen Morgan
5752f1c5cb
lib,cli: Use Text Builder for Account Transaction Reports.
2021-01-02 15:08:09 +11:00
Simon Michael
22c6f056c2
;update manuals
2020-12-29 10:27:48 -08:00
Simon Michael
6f08631be3
;doc: changelog updates
2020-12-29 10:21:27 -08:00
Simon Michael
4a48e5f8aa
;doc: changelogs
...
(cherry picked from commit 3031c0e7b9bd9384ac390d3f3705455f057dd8c8)
2020-12-29 09:39:35 -08:00
Simon Michael
4ce681348d
;update changelogs
...
(cherry picked from commit 1b389961587720be10f7cced91d3b6cb9fc47415)
2020-12-29 09:38:58 -08:00
Simon Michael
f2d2272737
;update changelogs
...
(cherry picked from commit 15e290955f8ae2ed636b4e144e84fc4c73f4228b)
2020-12-29 09:37:54 -08:00
Simon Michael
06675bfec4
;cli, ui: fixes for yesterday's 4330427f
2020-12-27 12:20:50 -08:00
Simon Michael
b66d8f0f3c
;update manuals
2020-12-26 17:29:02 -08:00
Simon Michael
8d320bc1fe
;update manuals
2020-12-24 17:26:17 -08:00
Simon Michael
fbe30a73b9
;doc: mention version in all manual formats
2020-12-24 17:25:11 -08:00
Simon Michael
fbf9418756
;doc: update links to journal manual
2020-12-24 12:49:04 -08:00
Simon Michael
324dfaee49
;update manuals
2020-12-20 20:11:35 -08:00
Simon Michael
4639522d9c
ui: doc: fix decapitalisation in manual, present since 1.19
...
Added accidentally by 847fc23 on 2020-07-17.
2020-12-20 20:08:35 -08:00
Simon Michael
0ff65456fa
;doc: info: tweak first/top heading again to improve structure
2020-12-20 20:08:35 -08:00
Simon Michael
9daaabeda2
;doc: simplify manuals' title metadata to fit man/info better
2020-12-20 20:08:35 -08:00
Simon Michael
c92c27d565
doc: tweak manuals' top heading to improve info structure
2020-12-20 20:08:35 -08:00
Stephen Morgan
e406cebcce
lib: Remove unused AtDefault constructor for ValuationType.
2020-12-19 11:59:44 -08:00
Stephen Morgan
46093b8de7
lib,ui: For hledger-ui, do valuation for all valuation types, not just
...
AtCost and AtDefault.
Remove unused valuationTypeIs* functions.
2020-12-19 11:59:44 -08:00
Stephen Morgan
cdec0f9382
lib: Remove special handling of now-inaccessible AtDefault valuation constructor.
...
This simplifies all the *ApplyValuation functions, as they no longer
need mreportdate or multiperiod arguments.
2020-12-19 11:59:44 -08:00
Simon Michael
4d3a9b0a21
;changelogs: whitespace
...
(cherry picked from commit 679e90eb6028e8be35168057fe0040880aaab03a)
2020-12-15 20:57:18 -08:00
Simon Michael
47ab7a50a3
;update changelogs
...
(cherry picked from commit 452149dfc87f2044ba6d16c2e55cab5957289b65)
2020-12-15 20:57:09 -08:00
Simon Michael
8db8992cb5
;update changelogs
...
(cherry picked from commit 03f9b756b35661dc8dac6f10de04e9795d72c4d6)
2020-12-15 20:56:44 -08:00
Simon Michael
105f7d2944
;tools: split defs.m4 to minimise manual rebuilding
2020-12-15 09:39:29 -08:00
Simon Michael
e5a12683d7
;update manuals
2020-12-15 09:03:38 -08:00
Simon Michael
9afccde16f
;update cabal files
2020-12-14 12:31:01 -08:00
Simon Michael
9087532b62
;bump version to 1.20.99
2020-12-14 11:28:07 -08:00
Simon Michael
e5a236e9dc
;ui: fix test journal symlink
2020-12-13 19:56:28 -08:00
Simon Michael
8d1e3e638b
;ui: refactor, drop old option support
2020-12-12 12:13:52 -08:00
Simon Michael
349ffd7c0b
updateReportSpecFromOpts -> updateReportSpec[With]
2020-12-12 12:05:44 -08:00
Simon Michael
15dc638a07
ui: preserve forecast txns (& period) when reloading journal ( #1204 )
2020-12-12 11:53:24 -08:00
Simon Michael
6158d16443
;ui: refactor, simplify query
2020-12-12 11:52:15 -08:00
Simon Michael
481c40ca2f
;ui: refactor toggleForecast
2020-12-12 11:51:25 -08:00
Simon Michael
ae2d9373ee
;ui: test for #1204
2020-12-11 10:09:26 -08:00
Simon Michael
b6cb95b534
ui: make F key keep working, fixing breakage in 1.20 ( #1411 )
...
This seems to be fallout from #1340 's
2020-09-16 d0d39e615 lib,cli,ui,web: Introduce ReportSpec, which holds ReportOpts, the day of the report, and the parsed Query.
2020-12-11 09:38:15 -08:00
Simon Michael
b25b2ba33d
;ui: update test journals, add test for #1411
2020-12-11 09:33:42 -08:00
Simon Michael
6723025607
;update manuals
2020-12-08 20:11:32 -08:00
Simon Michael
f66a8281fe
;ui: tests cleanup
2020-12-08 12:59:25 -08:00
Simon Michael
116945e907
;shake: man page date is now updated by manuals, not setversion
2020-12-07 12:26:48 -08:00
Simon Michael
2f91b1de6e
;update manuals
2020-12-07 06:15:59 -08:00
Simon Michael
1856ca5312
web: bump to 1.20.1; update manuals' dates
2020-12-06 18:20:56 -08:00
Simon Michael
fa28b43aed
;update changelogs
2020-12-05 17:58:37 -08:00
Simon Michael
5c5256504e
;update manuals
2020-11-30 15:21:59 -08:00
Simon Michael
5507cb07ef
;update cabal files
2020-11-30 15:19:21 -08:00
Simon Michael
2501329f3c
;bump version to 1.20
2020-11-30 15:18:24 -08:00
Simon Michael
3aec8542db
;update changelogs
2020-11-30 12:11:30 -08:00
Simon Michael
d40d53ae02
;update manuals
2020-11-26 08:52:56 -08:00
Simon Michael
794c5f32a5
;update changelogs
2020-11-24 09:39:05 -08:00
Simon Michael
9730b69a05
;ui: register: fix one-line amount formatting ( #1358 )
2020-11-18 17:20:05 -08:00
Simon Michael
2f2cca9bc0
;ui: add a test for multicommodity register ( #1358 )
2020-11-17 12:43:18 -08:00
Simon Michael
3ea453658e
;ui: test tweaks
2020-11-17 11:09:35 -08:00
Simon Michael
5f9635c784
;update changelogs
2020-11-17 10:51:57 -08:00
Simon Michael
3662977c84
;update manuals
2020-11-17 07:29:57 -08:00
Simon Michael
267f23dabb
;ui: test tweaks
2020-11-16 14:41:18 -08:00
Simon Michael
01be455e82
;ui: rename to uitest.org
2020-11-16 09:00:55 -08:00
Simon Michael
56b61c71da
;ui: add manual tests for #1387
2020-11-16 08:59:35 -08:00
Simon Michael
ec2a774b18
cli, lib: move functional tests into hledger/test/
2020-11-16 08:47:41 -08:00
Simon Michael
1c9d704e2f
;ui: add symlink for manual tests ( #1387 )
2020-11-15 12:46:23 -08:00
Simon Michael
3930e06e72
ui: start gathering manual tests ( #1387 )
2020-11-15 12:43:29 -08:00
Simon Michael
34cae907e0
;ui: move WIP tests into hledger-ui package
2020-11-15 12:17:00 -08:00
Simon Michael
cc2654b17b
;ui: notes ( #1387 )
2020-11-15 11:32:43 -08:00
Simon Michael
4aecb9182e
;ui: notes ( #1387 )
2020-11-15 11:20:40 -08:00
Simon Michael
9337a66fb5
ui: quick fix for date: and --change breakage ( #1387 )
2020-11-15 10:30:58 -08:00
Simon Michael
a97daaf322
lib: replace pretty-show with pretty-simple
...
pretty-simple, already used in .ghci, will hopefully give nicer debug
output, including for values which don't have Read-able Show output.
This should mean that we can start removing custom string-like Show
instances that were a workaround for pretty-show.
We are using the latest version (4.0.0.0) to get compact output.
Here's some old pretty-show output:
CsvRules
{ rdirectives = [ ( "skip" , "1" ) ]
, rcsvfieldindexes = [ ( "date" , 1 ) , ( "amount" , 2 ) ]
, rassignments = [ ( "amount" , "%2" ) , ( "date" , "%1" ) ]
, rconditionalblocks = []
}
And the new pretty-simple output:
CsvRules
{ rdirectives=
[ ( "skip", "1" ) ]
, rcsvfieldindexes=
[ ( "date", 1 ), ( "amount", 2 ) ]
, rassignments=
[ ( "amount", "%2" ), ( "date", "%1" ) ]
, rconditionalblocks= []
}
Non-compact pretty-simple output would be:
CsvRules
{ rdirectives=
[
( "skip"
, "1B"
)
]
, rcsvfieldindexes=
[
( "date"
, 1
)
,
( "amount"
, 2
)
]
, rassignments=
[
( "amount"
, "%2"
)
,
( "date"
, "%1"
)
]
, rconditionalblocks=[]
}
Also:
- Account's Show instance no longer converts : to _ in account names
- drop unused pretty-show dependency from hledger, hledger-ui packages
- regenerate hledger-lib with the older hpack that's shipped in stack
2020-11-10 08:06:11 -08:00