Simon Michael
0866b30838
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:44:50 -08:00
Simon Michael
38d64a6f79
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:43:13 -08:00
Simon Michael
46ac93cf5a
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:34:56 -08:00
Simon Michael
ace867d7ed
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:33:41 -08:00
Simon Michael
592e0125fe
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:33:08 -08:00
Simon Michael
4efe397ba4
;doc: whitespace change to test web hooks
...
[ci skip]
2019-12-03 12:31:15 -08:00
Simon Michael
c54c15fccd
;cli: doc: drop changelog whitespace
...
[ci skip]
2019-12-03 12:28:59 -08:00
Simon Michael
5a2bcecf26
;doc: finalise changelogs
2019-12-03 08:41:44 -08:00
Simon Michael
06b70194c0
;doc: regen manuals
2019-12-03 08:41:44 -08:00
Simon Michael
093dca570d
lib, cli, web: bump version to 1.16.1
2019-12-03 08:41:44 -08:00
Simon Michael
6ae837f820
;doc: changelogs
2019-12-03 08:41:44 -08:00
Simon Michael
13f95327e3
;doc: clarify changelog item for #1085
2019-12-03 08:41:44 -08:00
Simon Michael
e032eff8eb
;doc: changelog updates
2019-12-02 08:59:58 -08:00
Simon Michael
35e70e8f36
;cli: doc: rewrite CSV changelog entries
2019-12-02 08:58:26 -08:00
Simon Michael
0ce890e5ff
lib, cli, web: drop unnecessary mtl-compat dependency
2019-12-02 08:23:00 -08:00
Simon Michael
a0b92e02b9
Revert "remove old fail compatibility imports that are obsolete ?"
...
They are needed with ghc <8.4, not for fail but for <> I think.
Try cleaning up again another time.
This reverts commit 318ce7eb07 .
2019-12-01 11:32:51 -08:00
Simon Michael
d922b6e798
;doc: regen manuals
2019-12-01 10:12:29 -08:00
Simon Michael
6daebf60ea
;regen cabal files
2019-12-01 10:05:37 -08:00
Simon Michael
87d0491103
;bump version to 1.16
2019-12-01 10:03:58 -08:00
Simon Michael
c90c0867c4
;doc: changelogs
...
[ci skip]
2019-12-01 09:59:01 -08:00
Simon Michael
318ce7eb07
remove old fail compatibility imports that are obsolete ?
2019-12-01 08:31:50 -08:00
Simon Michael
5b6dbe86b3
close: don't strip decimal zeros, causing misparsing ( fix #1137 )
2019-11-30 16:58:54 -08:00
Simon Michael
359a118900
;doc: draft changelog updates
...
[ci skip]
2019-11-29 07:57:54 -08:00
Simon Michael
caf8cdf0ca
;test: consistent singular naming for test suites and files
2019-11-29 06:35:29 -08:00
Simon Michael
c7574b8005
;lib, cli: test suite cleanups, don't run hledger-lib tests twice
2019-11-29 06:11:25 -08:00
Simon Michael
2b2a0b3cf8
;tests: use "test" alias for testCase everywhere
...
Easier to type and read, and a little clearer to my eyes;
"testCase" implies a single case, but it can contain many assertions.
2019-11-28 15:33:33 -08:00
Simon Michael
57a534a42f
;cli: drop obsolete test-framework dep
2019-11-28 15:06:52 -08:00
Simon Michael
ebedae01cf
;cabal: remove special cases for unsupported GHC 7
2019-11-28 14:59:18 -08:00
Simon Michael
08951ac3e8
;cabal: add ghc 8.8 to tested-with
...
[ci skip]
2019-11-28 14:59:10 -08:00
Simon Michael
843d394077
cli, ui, web: support GHC 8.8, add stack-ghc8.8.yaml ( #1090 )
...
hledger-web needs an unreleased version of json.
2019-11-28 14:31:48 -08:00
Simon Michael
5dac8af2ef
;ui: fix build error due to tests rewrite
2019-11-27 21:54:31 -08:00
Simon Michael
4ab5896902
close: add --close-to, --open-from to choose account names
2019-11-27 14:19:44 -08:00
Simon Michael
4faefcfab2
;doc: regen manuals
...
[ci skip]
2019-11-27 13:18:08 -08:00
Simon Michael
91a3b03359
;test: update command line help
2019-11-27 13:17:34 -08:00
Simon Michael
b36f6df110
tests: port all unit tests to tasty, second pass ( #1090 )
...
Hledger.Util.Tests helpers have been cleaned up, and test names are
now shown.
Tests have been cleaned up a bit. Some groups of unnamed tests have
been collapsed into a single named test containing a sequence of
assertions. The test command counts named tests, not assertions, so
the reported unit test count has dropped from 199 to 188.
2019-11-27 13:17:34 -08:00
Simon Michael
13a3542464
tests: port all unit tests to tasty, first cut ( #1090 )
...
easytest is not actively maintained and requires an old version of
hedgehog which does not support base-compat 0.11 & ghc 8.8.
This is still using the old easytest helpers, and not displaying test
names properly.
2019-11-27 12:43:43 -08:00
Amitai Burstein
e15adddeb8
Add exit status code to check-dates
2019-11-23 13:43:47 -08:00
Simon Michael
e893c9c107
;doc: regen manuals
...
[ci skip]
2019-11-23 11:33:55 -08:00
Brian Wignall
f8269e21ab
Fix some simple typos
2019-11-20 13:33:33 -08:00
Simon Michael
a0d012a50c
;cli: use the test suites recompilation workaround here too ( #1125 )
...
Applying the same workaround used in the hledger-lib test suites, to
hledger's test & benchmark suites. It seems only a single other-module
was being added here (Paths_hledger.hs), but this may add a little speed
and prevent greater slowdowns in future.
2019-11-19 04:17:23 -08:00
Mykola Orliuk
6dbe925eed
cli: anonymize transaction code also
2019-11-18 17:42:22 -08:00
Mykola Orliuk
0a273561f7
cli: anonymize declared accounts also
...
Fixes simonmichael/hledger#901
2019-11-18 17:42:22 -08:00
Mykola Orliuk
5287fe671b
;all: hide RawOpts internals
...
This way we can ensure we always use only functions from RawOptions.
2019-11-18 17:38:39 -08:00
Mykola Orliuk
8991419c68
;all: drop dummy decodeRawOpts
2019-11-18 17:38:39 -08:00
Mykola Orliuk
31ae3d3aaf
;lib: drop SystemString left from GHC pre 7.2
...
We are relying on base-4.9 or newer. Thus we don't compile anymore with
GHC version lower than 8.0.1.
2019-11-18 17:38:39 -08:00
Simon Michael
68b1cacf0f
lib: refactor, prepare to drop showTransactionUnelided functionality
...
It seems we don't use it at all, and ony says it's not robust with
prices either.
Merge remote-tracking branch 'ony/chores/drop-elide-in-showTransaction'
2019-11-18 17:27:30 -08:00
Simon Michael
69ee21cf16
;doc: regen manuals
...
[ci skip]
2019-11-18 17:14:06 -08:00
Michael Kainer
79ca4a767e
cli: Add -% to compound balance commands
...
This commit introduces the commandline argument -%/--percent to show
percentages of the column's total instead of the absolute amounts for
each account in reports. The signs of the values are preserved.
This option is especially useful for the balance and incomestatement
commands.
If there are multiple commodities involved in a report hledger bails
with an error message. This can be avoided by using --cost. Also note
that if one uses -% with the balance command the chances are high that
all numbers are 0. This is due to the fact that by default balance sums
up to zero. If one wants to use -% in a meaningful way with balance one
has to add a query.
In order to keep the implementation as simple as possible --tree has no
influence over how the percentages are calculated, i.e., the percentages
always represent the fraction of the columns total. If one wants to know
the percentages relative to a parent account, one has to use a query to
narrow down the accounts.
2019-11-18 17:10:59 -08:00
Dmitry Astapov
87b82b6839
lib: roi does not fail on empty input data (+test)
2019-11-18 16:13:04 -08:00
Mykola Orliuk
ab9c150759
;lib: clean out showTransactionUnelided
...
Keep aliases until next major release.
2019-11-16 12:53:07 +01:00
Brian Wignall
0ce7e811ba
Fix two small typos
2019-11-10 13:54:48 -08:00
Simon Michael
3f530f5b54
;doc: update changelogs, including #1095
...
[ci skip]
2019-11-07 16:37:03 -08:00
Simon Michael
445adbe9d1
;doc: regen manuals
...
[ci skip]
2019-10-23 12:30:27 -07:00
Simon Michael
cfc00070a1
;doc: fix output destination/format links in command docs
...
[ci skip]
2019-10-23 12:29:17 -07:00
Simon Michael
312e772468
prices: style price amounts; always show full precision
2019-10-20 07:09:34 -07:00
Mykola Orliuk
78146978f4
;lib: store raw opts unquoted
...
It looks like we only need quote when we build query and in some
messages.
Fixes simonmichael/hledger#1079
2019-10-19 14:44:08 -07:00
Simon Michael
9967ead4c5
;lib: let commodityStylesFromAmounts & co. return an error ( #793 , #1091 )
...
And if they did, the stats command would now throw an error.
Changed:
journalApplyCommodityStyles
journalInferCommodityStyles
commodityStylesFromAmounts
2019-09-27 15:09:39 -10:00
Simon Michael
24ce2686f4
drop GHC 7.10/base 4.8 support, finally, due to MonadFail hassles
...
in JournalReader.hs. If you still need this, feel free to work on
those errors. But hopefully not, because dropping base 4.8 should
permit some code cleanups.
2019-09-14 03:45:37 -07:00
Simon Michael
977d4f009e
lib, cli: disable hledger-lib test suites, hledger benchmark suite
...
by default. hledger-lib's doctests and easytests test suites (each ?)
require an additional slow rebuild of hledger-lib and are not worth
the time, energy and carbon. hledger's test suite runs those same
easytest tests (but not the doctests).
2019-09-14 03:45:37 -07:00
Simon Michael
a0deb88796
;doc: regen manuals
...
[ci skip]
2019-09-13 11:00:03 -07:00
Simon Michael
867ccb31d5
;import: drop inconsistent period
2019-09-13 09:07:18 -07:00
Simon Michael
bf1e398ffd
;import: with --dry-run the no txns case should be parseable too
2019-09-13 09:02:32 -07:00
Simon Michael
f65fc47185
;bump version to 1.15.99
...
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
e851bdf834
;doc: changelogs
...
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
af21ae6eb6
;doc: regen manuals
...
Wrapping and hyphenation has changed again, which I thought would
be more stable now with same tool versions on laptop and server.
Who knows.
2019-09-13 08:43:33 -07:00
Simon Michael
edaf92db5e
import: message cleanups, mention input files
...
Only the --dry-run message needs the semicolon, so dry run output can
be piped into hledger.
2019-09-13 08:43:33 -07:00
Simon Michael
807273d9de
import: --catchup marks all transactions imported, without importing
2019-09-13 08:43:33 -07:00
Simon Michael
35a90004ca
import: also show a message when nothing was imported
2019-09-13 08:43:33 -07:00
Simon Michael
dfc0095fed
import: create the journal if missing, like the add command
...
Streamlines import/migration instructions.
2019-09-13 08:43:33 -07:00
Simon Michael
2bb6e25390
;api: also fix hledger's cabal file
2019-09-11 14:53:55 -07:00
Simon Michael
4db14ef70f
;api: another round of hledger-api purging; fix the build
2019-09-11 14:49:22 -07:00
Simon Michael
9224cfcf50
;doc: more "curses-style interface" -> "terminal interface"
...
[ci skip]
2019-09-10 18:20:20 -07:00
Simon Michael
acd7010e5a
;doc: "curses-style interface" -> "terminal interface"
...
[ci skip]
2019-09-10 18:14:16 -07:00
Simon Michael
ef04907484
;doc: fix broken manual links in manuals source
...
[ci skip]
2019-09-10 17:02:56 -07:00
Simon Michael
538e97f3ac
;lib: clarify journalAddForecast doc ( #835 )
...
[ci skip]
2019-09-10 16:59:26 -07:00
Simon Michael
85d48a6b0e
;doc: regen manuals (on server)
...
Usually done on my laptop, but the toolchain on both machines should
produce the same result these days..
[ci skip]
2019-09-09 08:04:26 -07:00
Simon Michael
3b35e0afca
;site: manuals: fix many links that went to a prerelease manual
...
[ci skip]
2019-09-09 06:24:08 -07:00
Simon Michael
499e20c0b2
lib, cli, ui: start using Control.Monad.Fail, allow base-compat 0.11
...
fail is moving out of Monad and into it's own MonadFail class.
This will be enforced in GHC 8.8 (I think).
base-compat/base-compat-batteries 0.11.0 have adapted to this,
and are approaching stackage nightly
(https://github.com/commercialhaskell/stackage/issues/4802 ).
hledger is now ready to build with base-compat-batteries 0.11.0, once
all of our deps do (eg aeson). We are still compatible with the older
0.10.x and GHC 7.10.3 as well.
For now we are using both fails:
- new fail (from Control.Monad.Fail), used in our parsers, imported
via base-compat-batteries Control.Monad.Fail.Compat to work with
older GHC versions.
- old fail (from GHC.Base, exported by Prelude, Control.Monad,
Control.Monad.State.Strict, Prelude.Compat, ...), used in easytest's
Test, since I couldn't find their existing fail implementation to update.
To reduce (my) confusion, these are imported carefully, consistently,
and qualified everywhere as Fail.fail and Prelude.fail, with clashing
re-exports suppressed, like so:
import Prelude hiding (fail)
import qualified Prelude (fail)
import Control.Monad.State.Strict hiding (fail)
import "base-compat-batteries" Prelude.Compat hiding (fail)
import qualified "base-compat-batteries" Control.Monad.Fail.Compat as Fail
2019-09-08 17:13:47 -07:00
Simon Michael
89c3011df4
;doc: 1.15.2 changelogs
...
[ci skip]
2019-09-05 15:35:59 -07:00
Simon Michael
7ae75022bf
;doc: regen manuals
2019-09-05 15:35:44 -07:00
Simon Michael
cd5af48165
lib, cli: bump version to 1.15.2
2019-09-05 15:35:19 -07:00
Simon Michael
ff41603a75
;doc: valuation: also link to #1083
...
[ci skip]
2019-09-05 14:23:17 -07:00
Simon Michael
a7f172b085
valuation: -V/-X respects report end date, code/doc cleanups ( #1083 )
...
-V (and -X) now respects a report end date set with -e/-p/date: when
choosing the valuation date, similar to hledger 1.14 and Ledger.
This means that -V/-X aren't exactly like either --value=end or
--value=now. The "Effect of --value on reports" doc has been extended
accordingly, and much of it has been reworded and made more accurate.
2019-09-05 13:41:36 -07:00
Simon Michael
e73b7c2635
;doc: document effect of valuation on reports more thoroughly
...
A column for -V/-X has been added (it differs in some cases, cf
[ci skip]
2019-09-04 19:16:57 -07:00
Simon Michael
1f3c3723db
;doc: cli: try to clarify valuation docs, note #1083
...
[ci skip]
2019-09-03 13:32:30 -07:00
Simon Michael
6d4d43dc62
;lib, cli: fix 1.15.1 changelog heading
...
[ci skip]
2019-09-02 12:53:51 -07:00
Simon Michael
90e5a5f95b
;lib, cli: don't forget to commit the cabal file
2019-09-02 12:31:06 -07:00
Simon Michael
8148136e71
cli: note command docs omitted from 1.15, bump to 1.15.1
2019-09-02 12:26:48 -07:00
Simon Michael
ebacb20b5e
;doc: regen hledger plaintext manual too
...
[ci skip]
2019-09-02 11:58:10 -07:00
Simon Michael
16a3c96da0
;doc: regen manuals
...
[ci skip]
2019-09-02 11:11:56 -07:00
Simon Michael
3654ac5239
;doc: cli: clean up -V/-X a little
...
[ci skip]
2019-09-02 06:27:09 -07:00
Simon Michael
319f0e5224
;doc: cli: tweak comments to avoid confusing markdown-mode
...
[ci skip]
2019-09-02 06:19:24 -07:00
Simon Michael
b2710c698c
;doc: cli: add missing commands to manual
...
commodities, descriptions, diff, notes, payees
[ci skip]
2019-09-02 06:16:52 -07:00
Simon Michael
9664194f20
;doc: cli: drop obsolete comments
...
[ci skip]
2019-09-02 06:11:01 -07:00
Simon Michael
6703057050
;doc: more changelog cleanups
...
[ci skip]
2019-09-01 09:59:51 -07:00
Simon Michael
ede6a51f08
;doc: finalise changelogs
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
00f3ad8d3f
;doc: changelogs
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
b1859769ac
;doc: regen man pages
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
29f7654c3a
bump versions to 1.15
2019-09-01 08:53:06 -07:00
Simon Michael
9cdbce288c
;descriptions/notes/payees: fix build warning
2019-08-31 18:36:03 -07:00
Simon Michael
c2736be4aa
;doc: changelogs
...
[ci skip]
2019-08-30 21:26:23 -07:00
Simon Michael
65692b0e36
;doc: update link for lowercase filename
...
[ci skip]
2019-08-30 07:28:06 -07:00
Simon Michael
fd5dc7bc18
;doc: fix some table rendering in the html manuals
...
[ci skip]
2019-08-26 09:37:03 -07:00
Simon Michael
da6718806a
;doc: don't add page TOCs any more, sphinx has it covered
...
[ci skip]
2019-08-26 09:37:03 -07:00
Simon Michael
4dc0e359dc
help: don't require a journal file
2019-08-22 17:49:50 -07:00
Simon Michael
318a7ce234
reg: show negative amounts in red, like balance and Ledger
2019-08-21 07:11:55 +01:00
Simon Michael
8a7905ac73
;doc: changelogs
...
[ci skip]
2019-08-19 12:03:54 +01:00
Simon Michael
5bc1e7746f
stats: show count of market prices (P), and the commodities covered
2019-08-19 11:16:09 +01:00
Simon Michael
1cbbe8f43d
memoise market valuation, making it fast ( #999 )
2019-08-19 02:16:39 +01:00
Simon Michael
7c2511aa29
bs: show end date(s) in title, not transactions date span ( #1078 )
...
Compound balance reports showing ending balances (eg balancesheet),
now show the ending date (single column) or range of ending
dates (multi column) in their title. ,, (double comma) is used
rather than - (hyphen) to suggest a sequence of discrete dates
rather than a continuous span.
2019-08-15 18:22:23 +01:00
Simon Michael
6796c9a080
cli: add missing extra dep
2019-07-26 23:40:58 +01:00
Simon Michael
8284c1042b
;doc: update command help txt files
...
[ci skip]
2019-07-26 23:25:52 +01:00
Simon Michael
8cde342432
tags: speedup: replace n^2 nub with n log n nubSort
2019-07-26 23:24:09 +01:00
Simon Michael
0b793bca1b
tags: add --values flag
2019-07-26 23:18:21 +01:00
Simon Michael
2aa5bd1653
;tags: mention pivot trick for listing tag values
...
[ci skip]
2019-07-26 22:19:27 +01:00
Simon Michael
67404fafe5
;doc: changelog edit
...
[ci skip]
2019-07-26 22:19:27 +01:00
Simon Michael
25fa835d9a
;doc: more changelog edits
...
[ci skip]
2019-07-25 17:29:12 +01:00
Simon Michael
d53fb387be
;doc: more changelog edits, backtick-quote flags
...
[ci skip]
2019-07-25 12:43:59 +01:00
Simon Michael
c7f9356fd1
;doc: edit changelogs
...
[ci skip]
2019-07-25 12:33:58 +01:00
Simon Michael
030a409dd3
;doc: update changelogs
...
[ci skip]
2019-07-25 08:48:01 +01:00
Caleb Maclennan
11d9e5eb6a
code: Strip extraneous trailing whitespace from Haskell sources
2019-07-15 16:40:49 +01:00
Caleb Maclennan
e68e558761
payees: Split command into descriptions, payees, and notes
2019-07-15 08:22:16 +01:00
Caleb Maclennan
5d42578137
payees: Output sorted results as in other similar commands
2019-07-15 08:22:16 +01:00
Simon Michael
f49a76e051
payees: get basic command working
2019-07-15 08:22:16 +01:00
Caleb Maclennan
e6b709cb01
payees: Add a module for handling payees command
2019-07-15 08:22:16 +01:00
Simon Michael
7d5f33441e
;doc: draft changelogs
...
[ci skip]
2019-07-12 23:24:10 +01:00
Simon Michael
a6e9b11a54
;cabal: bump tested-with, regen cabal files
...
[ci skip]
2019-07-12 23:24:10 +01:00
Simon Michael
6c2398e4d7
close: preserve transaction prices (costs) accurately ( #1035 )
...
Transaction prices were being collapsed/misreported after close/open;
this is fixed. Now each separately-priced amount gets its own posting,
and only the last of these (for each commodity) gets a balance
assertion. Also the equity posting's amount is now always shown
explicitly, which in multicommodity situations means that multiple
equity postings are shown. The upshot is that a balance -B report
will be unchanged after closing & opening transactions.
2019-07-09 11:21:22 +01:00
Jakob Schöttl
8569b39771
Refactoring: qualified call to process function
2019-06-30 10:38:06 +02:00
Jakob Schöttl
2b01312004
Fix and update documentation on date options
2019-06-30 10:38:06 +02:00
Simon Michael
27c01e82b5
add: doc: mention the windows trailing-dot file path issue
2019-06-26 18:47:11 +01:00
Simon Michael
33d03284c3
;valuation: more tests; document default amount style issue
...
[ci skip]
2019-06-17 08:19:23 -07:00
Simon Michael
5cb334514c
;lib: rename setMinimalPrecision -> setNaturalPrecision
2019-06-14 19:04:09 -07:00
Simon Michael
dd5afbb6fe
;doc, debug output tweaks ( #131 )
2019-06-13 15:50:01 -07:00
Simon Michael
ce0354ddbe
lib: -X/--exchange now supports indirect price chains ( #131 )
...
Adds fgl as a dependency.
2019-06-13 15:50:01 -07:00
Simon Michael
692620180e
;lib: refactor: change AmountPrice to a Maybe
...
I've wanted to do this for a long time; now that prices are in flux,
seems a good time.
2019-06-13 15:50:01 -07:00
Simon Michael
adb6ee40eb
lib: clarify price types ( #131 )
...
dropped journalPrices
renamed Price to AmountPrice, AKA "transaction price"
renamed MarketPrice to PriceDirective.
added new MarketPrice (more pure form of PriceDirective without the amount style information)
Prices is now a more efficient data structure, but not used yet.
2019-06-13 15:50:01 -07:00
Simon Michael
e24c6292d0
lib: support -X/--exchange (direct/reverse prices only) ( #131 )
2019-06-13 15:50:01 -07:00
Simon Michael
50a52dd467
lib: --value can select commodity (via direct/reverse prices) ( #131 )
2019-06-13 15:50:01 -07:00
Simon Michael
289891cacf
;prices: note
...
[ci skip]
2019-06-02 08:48:41 -07:00
Simon Michael
faf85d91e3
cli: restore --aux-date and --effective as --date2 aliases ( #1034 )
...
These Ledger-ish spellings were dropped over the years, to improve
--help's layout. Now they work again, but are considered hidden flags
so --help doesn't show them automatically (but I decided to mention
them manually in --date2's description).
2019-06-02 08:48:41 -07:00
Simon Michael
4b004c2332
; doc tweak
...
[ci skip]
2019-05-24 10:46:29 -07:00
Simon Michael
aa99743096
make -V do --value=end in multiperiod reports ( #329 )
2019-05-24 10:30:35 -07:00
Simon Michael
c95907cb78
;doc: fix useful value report examples ( #329 )
...
[ci skip]
2019-05-23 22:39:05 -07:00
Simon Michael
5e54920160
;regen embedded manuals
2019-05-23 22:26:43 -07:00
Simon Michael
9977739c76
bal etc.: replace --value=transaction with --value=cost ( #329 )
2019-05-23 21:55:18 -07:00
Simon Michael
2325ff4e08
;doc: update --value docs ( #329 )
2019-05-23 21:55:17 -07:00
Simon Michael
f999bf78e6
opts: new -B/--cost, -V/--market, --value flags ( #329 )
2019-05-23 13:11:20 -07:00
Simon Michael
0b67df2d31
opts: shorten csv separator arg template
2019-05-23 00:36:59 -07:00
Simon Michael
e21afc466a
bal/bs/bse: -H or --cumulative now disables -T ( #329 )
...
To reduce confusion, multiperiod balance reports using -H/--historical
or --cumulative, which show end balances, no longer show a Totals
column since summing end balances generally doesn't make sense.
Also the underlying MultiBalanceReport now returns zero for those
totals when in cumulative or historical mode.
2019-05-11 20:43:28 -07:00
Simon Michael
76342a3fd0
bal/bs/cf/is: mention valuation type in report title
2019-05-09 15:39:43 -07:00
Simon Michael
2e44d09fdb
;doc: tweak --value-at table
...
[ci skip]
2019-05-09 12:26:30 -07:00
Simon Michael
fb18019212
bal: document and test --value-at with --budget ( #329 )
2019-05-09 12:23:51 -07:00
Simon Michael
82104e580b
;doc: improve --value-at docs
...
[ci skip]
2019-05-09 08:49:51 -07:00
Simon Michael
a63e582aca
;doc: improve --value-at docs
...
[ci skip]
2019-05-07 16:20:19 -07:00
Simon Michael
5e2f5cf511
;doc: rewrite: consistent literal block styling
...
[ci skip]
2019-05-07 16:11:35 -07:00
Simon Michael
5744d7679d
;doc: options: definition lists + bullets don't work in man pages
...
[ci skip]
2019-05-07 16:11:33 -07:00
Simon Michael
72214a5747
reg: fix --value-at=transaction with -M ( #329 )
2019-05-06 08:07:16 -07:00
Simon Michael
30a35230d2
;doc: update --value-at support, add more report details ( #329 )
2019-05-05 17:48:20 -07:00
Simon Michael
4c56baf842
;doc:options:update --value-at support
2019-05-05 11:12:01 -07:00
Simon Michael
8d7eacd73f
bal: support --value-at=p/t with multiperiod reports ( #329 )
2019-05-05 09:30:01 -07:00
Simon Michael
3a79e300c9
;bal: cleanup
2019-05-04 12:22:00 -07:00
Simon Michael
ec1b98434c
reg: support --value-at=period with periodic reports ( #329 )
2019-05-04 12:22:00 -07:00
Simon Michael
dd8c403c81
;cli: option help tweaks
2019-05-04 12:22:00 -07:00
Simon Michael
cca0b7aec6
;update changelogs
2019-05-04 12:21:54 -07:00
Simon Michael
ebf5ed93f2
valuation: more thorough --value-at; document status ( #329 , #999 )
...
This feature turns out to be quite involved, as valuation interacts
with the many report variations. Various bugs/specs have been
fixed/clarified relating to register's running total, balance totals
etc. Eg register's total should now be the sum of the posting amount
values, not the values of the original sums. Current level of support
has been documented.
When valuing at transaction date, we once again do early valuation of
all posting amounts, to get more correct results. variants. This means
--value-at=t can be slower than other valuation modes when there are
many transactions and many prices. This could be revisited for
optimisation when things are more settled.
2019-05-03 12:24:02 -07:00
Simon Michael
040f2ba1bf
doc: cli: consistent examples styling
...
[ci skip]
2019-05-03 11:29:43 -07:00
Simon Michael
4fd09bedfc
doc: options: value-at: help fix
...
[ci skip]
2019-04-26 12:22:21 -07:00
Simon Michael
696e3098c8
reg: support --value-at in register reports; cleanups, tests
2019-04-26 12:08:46 -07:00
Simon Michael
00975fb226
bal*: support --value-at in multicolumn balance reports
2019-04-26 12:08:31 -07:00
Simon Michael
65934958f9
rename --value-date -> --value-at; --value-at implies -V
2019-04-26 12:08:31 -07:00
Simon Michael
9adae02973
print: add --value-date general option; implement for print -V
2019-04-26 12:08:31 -07:00
Simon Michael
a08140b073
doc: options: argument files: link to main site, not github
2019-04-26 12:08:31 -07:00
Simon Michael
c23fc8b671
speed up -V/--value by converting reports, not the journal ( #999 )
...
Instead of converting all journal amounts to value early on, we now
convert just the report amounts to value, before rendering.
This was basically how it originally worked (for the balance command),
but now it's built in to the four basic reports used by print,
register, balance and their variants - Entries, Postings, Balance,
MultiBalance - each of which now has its own xxValue helper.
This should mostly fix -V's performance when there are many
transactions and prices (the price lookups could still be optimised),
and allow more flexibility for report-specific value calculations.
+------------------------------------------++-----------------+-------------------+--------------------------+
| || hledger.999.pre | hledger.999.1sort | hledger.999.after-report |
+==========================================++=================+===================+==========================+
| -f examples/1000x1000x10.journal bal -V || 1.08 | 0.96 | 0.76 |
| -f examples/2000x1000x10.journal bal -V || 1.65 | 1.05 | 0.73 |
| -f examples/3000x1000x10.journal bal -V || 2.43 | 1.58 | 0.84 |
| -f examples/4000x1000x10.journal bal -V || 4.39 | 1.96 | 0.93 |
| -f examples/5000x1000x10.journal bal -V || 7.75 | 2.99 | 1.07 |
| -f examples/6000x1000x10.journal bal -V || 11.21 | 3.72 | 1.16 |
| -f examples/7000x1000x10.journal bal -V || 16.91 | 4.72 | 1.19 |
| -f examples/8000x1000x10.journal bal -V || 27.10 | 9.83 | 1.40 |
| -f examples/9000x1000x10.journal bal -V || 39.73 | 15.00 | 1.51 |
| -f examples/10000x1000x10.journal bal -V || 50.72 | 25.61 | 2.15 |
+------------------------------------------++-----------------+-------------------+--------------------------+
There's one new limitation, not yet resolved: -V once again can pick a
valuation date in the future, if no report end date is specified and
the journal has future-dated transactions. We prefer to avoid that,
but reports currently are pure and don't have access to today's date.
2019-04-23 17:39:01 -07:00
Simon Michael
1cacfcea28
lib: fix journalApplyValue test ( #999 )
2019-04-23 07:20:10 -07:00
Simon Michael
08d226aaf5
lib: add a test for journalApplyValue that times itself ( #999 )
...
This test prints the time elapsed (before the OK message).
Mainly to support current performance tuning
(make ghcid-test-Hledger.Cli.Utils.journalApplyValue),
but also for future reference.
2019-04-22 16:40:58 -07:00
Simon Michael
76b933641d
rejigger Hledger.Cli tests to have correct prefix, add Cli.Utils
2019-04-22 12:47:28 -07:00
Simon Michael
028303acd7
lib: speed up -V by sorting market prices just once ( #999 )
...
-V is still quite a bit slower than no -V, but not as much as before:
+===========================================================++=======+
| hledger.999.pre -f examples/10000x10000x10.journal bal || 5.20 |
| hledger.999.pre -f examples/10000x10000x10.journal bal -V || 57.20 |
| hledger.999 -f examples/10000x10000x10.journal bal || 5.34 |
| hledger.999 -f examples/10000x10000x10.journal bal -V || 17.50 |
+-----------------------------------------------------------++-------+
2019-04-20 13:12:53 -07:00
Simon Michael
6f4009d589
import: doc tweaks
...
[ci skip]
2019-04-19 15:44:06 -07:00
Simon Michael
ca79981f8d
doc: regen command help
...
[ci skip]
2019-04-19 11:19:24 -07:00
Simon Michael
eb576ba5be
import: document a problem with balance assignments
...
[ci skip]
2019-04-19 11:18:33 -07:00
Simon Michael
ab93eb4258
close: doc: fix typo
...
[ci skip]
2019-03-26 16:40:03 -07:00
Simon Michael
c9e16b83ef
; propagate dev version bump
2019-03-20 17:13:59 -07:00
Simon Michael
124aaffd34
; merge latest changelogs
2019-03-20 16:18:04 -07:00
Simon Michael
3d206ad6bd
; changelogs from 1.14 branch
2019-03-20 16:18:04 -07:00
Simon Michael
fee0e39320
; lib, cli, ui, web, api: bump to dev version
2019-03-20 16:18:04 -07:00
Hans-Peter Deifel
489b7fd870
Constrain easytest dependency to fix cabal build
...
This constraints the easytest dependency to <0.3, because hledger and
hledger-lib currently don't build with 0.3.
Of course the better solution would be to fix the build errors, but easytest-0.3
is not even in stackage nightly yet and I just need it to build right now :-)
2019-03-15 12:33:16 -07:00
Simon Michael
64df6e731c
;doc: cli: BUGS -> LIMITATIONS; mention windows display issue ( #961 )
...
[ci skip]
2019-03-12 03:22:20 -07:00
Simon Michael
afaff4c306
;doc: cli: update unicode section, add windows display issue ( #961 )
2019-03-11 12:42:02 -07:00
Simon Michael
6c841a266d
diff: help tweaks (cf #981 )
2019-03-09 09:45:30 -08:00
Simon Michael
f648d6d78e
; regen manual. And, start using ; prefix for non-changelog changes
...
(as Emacs does).
[ci skip]
2019-03-04 12:01:41 -08:00
Simon Michael
e57bf4a9f2
diff: make it show in commands list; export it ( #981 )
2019-03-04 12:01:34 -08:00
Gabriel Ebner
ceb193f85e
cli: add diff command
...
This merges the external hledger-diff addon, which is now deprecated.
https://github.com/gebner/hledger-diff/
2019-03-04 11:39:11 -08:00
Simon Michael
89255dbf76
cli: changelog
...
[ci skip]
2019-03-01 18:39:55 -08:00
Simon Michael
928ddfeb13
bump hledger version to 1.14.1, and other pkgs' lower bounds
2019-03-01 18:39:25 -08:00
Simon Michael
8c4f63d060
cli: fix missing Commodities.txt build error
2019-03-01 18:35:16 -08:00
Simon Michael
172dbc7a90
doc: changelogs
...
[ci skip]
2019-03-01 17:46:37 -08:00
Simon Michael
0cd5545e26
regen cabal files/manuals
...
[ci skip]
2019-03-01 16:17:25 -08:00
Simon Michael
68e5c41d52
bump version, manual dates
...
[ci skip]
2019-03-01 16:11:15 -08:00
Simon Michael
9fab3257e8
regen cabal files
2019-03-01 15:44:40 -08:00
Simon Michael
9bb6f75bc8
update tested-with, add ghc 8.6
...
[ci skip]
2019-03-01 15:10:42 -08:00
Jakub Zárybnický
6becbc78f3
cli, web, ui: Replace withJournalDo* variants
2019-03-01 05:42:30 -08:00
Simon Michael
a3ae68020f
regen manuals
...
[ci skip]
2019-02-26 10:13:50 -08:00
Simon Michael
3dbd1378de
bal: doc: clarify budget report differences; drop sorting limitation
...
[ci skip]
2019-02-24 21:09:59 -08:00
Simon Michael
0bc16d4af6
lib, cli, web: rename porigin -> poriginal
2019-02-20 20:23:54 -08:00
Jakob Schöttl
49f286dc70
Fix CLI help text
2019-02-17 06:55:01 -08:00
Simon Michael
03877057fb
refactor: cli: commands: hlint clean
2019-02-14 05:15:49 -08:00
Simon Michael
17c4a47a85
regen cli help, manuals
...
[ci skip]
2019-02-14 05:15:49 -08:00
Simon Michael
d7a815fc08
commodities: add commodities command
2019-02-14 05:15:48 -08:00
Simon Michael
21fac53954
doc: regen manuals
...
[ci skip]
2019-02-11 14:15:44 -08:00
Jakob Schöttl
ba1abae7c9
Add doc on --invert
2019-02-09 15:55:41 -08:00
Jakob Schöttl
161ca660dc
Support register --invert option to negate amounts
2019-02-09 15:55:41 -08:00
Jakob Schöttl
98d7c073c7
Reduce simple lambda
2019-02-09 12:47:24 -08:00
Simon Michael
94753f1cea
bump to dev version
2019-02-08 11:33:44 -08:00
Simon Michael
a18e4e9773
hpack: drop quotes from version: field, apparently not required
...
[ci skip]
2019-02-05 06:35:40 -08:00
Simon Michael
18ffa65168
tools: move setversion to shake, use PKG/.version, set upper bounds
...
./Shake setversion will now propagate the version number in each
package's .version file, to all the places in that package where it's
needed (ie the defs.m4 file and multiple places in the package.yaml
file. Also it now updates upper bounds on other hledger packages
to the next major version. (The new lower/upper bounds may not always
be what's desired, manual review required.)
[ci skip]
2019-02-04 18:47:27 -08:00
Simon Michael
bde46f7bd0
doc: move version, release date entirely into per-package macros
...
[ci skip]
2019-02-04 15:28:23 -08:00
Simon Michael
bf6acf52ef
doc: allow per-package m4 defs, to override things like version
...
[ci skip]
2019-02-04 15:18:51 -08:00
Simon Michael
6dab730900
cli: bump version to 1.13.2
...
[ci skip]
2019-02-04 08:36:36 -08:00
Simon Michael
6de8e7d516
changelog
...
[ci skip]
2019-02-04 08:33:43 -08:00
Simon Michael
e89c3752c4
stats: tweak -o help, output format is not supported here
...
[ci skip]
2019-02-03 13:05:48 -08:00
Simon Michael
c959e555ad
print, reg: restore -o, -O flags dropped during refactor ( #967 )
2019-02-03 13:04:59 -08:00
Simon Michael
78a66594ed
lib, cli: changelogs
2019-02-02 20:23:30 -08:00
Simon Michael
6553353bc5
lib, cli: bump version to 1.13.1
2019-02-02 20:21:35 -08:00
Simon Michael
86d5652e53
stop depending on here due to slow haskell-src-meta/stackage issues
...
Using file-embed or ordinary literals instead, for now.
2019-02-02 16:34:10 -08:00
Simon Michael
f9b85a1d4c
update embedded docs
2019-02-01 17:23:12 -08:00
Simon Michael
40d1572359
bump version to 1.13
2019-02-01 17:19:19 -08:00
Simon Michael
ca0d0b0d81
doc: changelogs
2019-02-01 17:13:16 -08:00
Simon Michael
33d82fb657
fix: --forecast shouldn't force --auto on ( #953 , #959 )
2019-02-01 11:43:24 -08:00
Simon Michael
d6e075dacd
refactor journalModifyTransactions, modifyTransactions
...
API changes:
Hledger.Data.TransactionModifier
-transactionModifierToFunction
+modifyTransactions
Hledger.Read.Common.applyTransactionModifiers -> Hledger.Data.Journal.journalModifyTransactions
2019-02-01 11:31:04 -08:00
Simon Michael
4a9fa5cd38
internals: append rather than prepend forecasted txns
2019-02-01 11:29:22 -08:00
Simon Michael
9955f53b9b
doc: changelogs cleanup
...
[ci skip]
2019-01-31 15:43:08 -08:00
Simon Michael
5435150d39
doc: don't use sed; fix accidental dedenting of some lists ( #961 )
...
The sed code was showing an error message, not too precise.
Pandoc's lua filters to the rescue!
[ci skip]
2019-01-31 08:34:49 -08:00
Simon Michael
3474cb08bd
cli: commands list: mention budgets
...
[ci skip]
2019-01-31 08:33:40 -08:00
Simon Michael
59739d1cd3
doc: command docs readme -> .md
...
[ci skip]
2019-01-30 17:59:42 -08:00
Simon Michael
5eb887781b
doc: regen hledger manual
...
[ci skip]
2019-01-30 17:58:51 -08:00
Simon Michael
845fdf8302
doc: update command docs readme
2019-01-30 17:58:23 -08:00
Simon Michael
c8246e7323
cli: command help: reduce width, line wrapping
...
cmdargs wraps any lines longer than 78 characters. To (mostly) avoid
this, we now display verbatim blocks unindented, and some of
register's examples have been altered to make them fit.
2019-01-30 17:58:13 -08:00
Simon Michael
36246e4976
cli: commands list: reorder help lines
...
[ci skip]
2019-01-30 12:54:22 -08:00
Simon Michael
4c5ac4dd06
cli: fix command help, really render as plain text
...
pandoc thinks .txt is a markdown file apparently
2019-01-30 12:44:10 -08:00
Simon Michael
fa82cbcf6e
doc: regen hledger manual
...
[ci skip]
2019-01-30 10:41:39 -08:00
Simon Michael
3baad5d729
cli: render command help as plain text, hiding markup
...
This means committing a bunch more generated files, but it's probably
worthwhile, so we can have both rich hyperlinked/styled command docs
and clean readable command help.
2019-01-30 10:41:39 -08:00
Simon Michael
88ef2abfff
refactor: Commands
2019-01-30 09:09:52 -08:00
Simon Michael
8d6b5cc4f3
cli: commands list: fix addons being shown twice
2019-01-30 09:09:52 -08:00
Simon Michael
2442b4f46f
refactor: hledgerCommandMode
2019-01-30 09:09:52 -08:00
Simon Michael
a23f391d7e
cli: commands list: reorganise
...
[ci skip]
2019-01-28 12:48:15 -08:00
Simon Michael
9fe3212940
changelogs
...
[ci skip]
2019-01-28 10:45:25 -08:00
Simon Michael
469b715352
cli: commands list: update command descriptions
2019-01-28 10:23:39 -08:00
Simon Michael
a9eb84a451
cli: commands list: show addons prefixed with +
2019-01-28 10:07:18 -08:00
Simon Michael
b92aa4b89e
refactor: Commands
2019-01-28 09:33:21 -08:00
Simon Michael
4ee39e039b
doc: integrate CLI help & manual for remaining commands
...
& rename HelpTemplate -> CommandDoc
2019-01-28 05:43:49 -08:00
Simon Michael
6566ef5fa2
add: fix breakage when creating file, ignore backslash in names line
2019-01-26 20:57:44 -08:00
Simon Michael
157ec857d4
refactor hledgerCommandMode
2019-01-26 20:57:00 -08:00
Simon Michael
6947f29f17
bal: integrate CLI help & manual
2019-01-26 17:22:48 -08:00
Simon Michael
64d78f1644
add: integrate CLI help & manual
2019-01-26 17:13:44 -08:00
Simon Michael
53620d0df2
act: integrate CLI help & manual
2019-01-26 17:07:30 -08:00
Simon Michael
f68309b106
acc: integrate CLI help & manual
2019-01-26 17:01:55 -08:00
Simon Michael
d1411fbd8d
embedded files comment
...
[ci skip]
2019-01-26 16:39:36 -08:00
Simon Michael
817497f30b
doc: force a line break after command names in new command docs
...
[ci skip]
2019-01-26 16:33:51 -08:00
Simon Michael
2df8a6c4de
doc: regen manuals
2019-01-26 15:56:43 -08:00
Simon Michael
550aa408eb
lib: refactor, add embedFileRelative
2019-01-26 15:52:58 -08:00
Simon Michael
4f8153cf82
hereFileRelativeToPackage -> hereFileRelative
2019-01-26 15:34:17 -08:00
Simon Michael
17cd5b2254
doc: update changelogs
...
[ci skip]
2019-01-26 11:35:08 -08:00
Simon Michael
0a31ef848f
doc: update changelogs
...
[ci skip]
2019-01-26 11:31:39 -08:00
Simon Michael
1e5e30ae87
regen cabal files
...
[ci skip]
2019-01-25 18:33:39 -08:00
Simon Michael
d517aef702
doc: changelogs: drop unnecessary backslashes before #*_<>$
...
sed commands:
s/\\#/#/g;
s/\\\*/*/g;
s/\\_/_/g;
s/\\</</g;
s/\\>/>/g;
s/\\\$/$/g;
[ci skip]
2019-01-25 18:30:09 -08:00
Simon Michael
7b67876a80
doc: changelogs: convert to clean pandoc markdown
...
pandoc options:
-f markdown-auto_identifiers
-t markdown-header_attributes-fenced_code_attributes --atx-headers --wrap=preserve
[ci skip]
2019-01-25 18:23:36 -08:00
Simon Michael
01c6f3e665
doc: changelogs: rename to CHANGES.md
...
These have been an adhoc mixture of plain text, markdown and org, and
used in each mode at different times. They will now have a definite
format, which for now is markdown. Org was another contender.
[ci skip]
2019-01-25 18:12:33 -08:00
Simon Michael
49a6e5715d
doc: changelogs: some fixes to markdown markup
...
[ci skip]
2019-01-25 18:08:24 -08:00
Dmitry Astapov
f6e5b3d438
lib: make --auto work on --forecast transactions
2019-01-25 12:53:59 -08:00
Dmitry Astapov
f2aaaf3310
lib, cli: merge --show-unbudgeted into --empty
2019-01-25 12:53:09 -08:00
Simon Michael
08c0d83593
close: generated unpriced balance assertion amounts ( #824 )
2019-01-25 11:55:09 -08:00
Simon Michael
f320345699
close: refactor
2019-01-25 10:23:01 -08:00
Simon Michael
67dde9d4ae
doc: regenerate manuals, removing some smart typography
...
[ci skip]
2019-01-24 15:37:40 -08:00
Dmitry Astapov
5711cdf9ba
cli: added --transpose to "balance" command
2019-01-24 15:06:35 -08:00
Dmitry Astapov
f3366c7256
lib: fix behavior of nested budgets and --show-unbudgeted
2019-01-24 14:56:22 -08:00
Dmitry Astapov
56553ede69
cli: if abs(return on investment)<0.01% display it as zero
2019-01-24 13:36:11 -08:00
Simon Michael
f7c22f97dc
refactor: simplify addonCommandMode
2019-01-23 17:26:27 -08:00
Simon Michael
b2c1e0b0ac
close: doc tweaks
...
[ci skip]
2019-01-23 17:26:27 -08:00
Simon Michael
fcb33c4f0c
close: fix ghci build / make build working-dir-independent again
2019-01-23 17:26:27 -08:00
Simon Michael
50175a9698
close: fix regular build, note path issue breaking ghci
2019-01-22 14:33:20 -08:00
Simon Michael
ede41af4c8
close: fix and document some newline issues
...
[ci skip]
2019-01-22 14:10:37 -08:00
Simon Michael
a29b70c93f
update generated manuals
...
[ci skip]
2019-01-22 13:36:11 -08:00
Simon Michael
cc7c3928fb
doc: begin integrating commands' CLI help and manual section
...
Just the close command to start with.
2019-01-22 13:33:24 -08:00
Simon Michael
763903ebda
journal: save account directives' comments, tags, declaration order
2019-01-18 16:40:35 -08:00
Simon Michael
7b47fb608e
close: use exact, minimal amounts; ensure assertions pass ( #941 )
2019-01-16 14:57:59 -08:00
Simon Michael
a0b0fedd31
add files command to commands list
2019-01-14 22:01:42 -08:00
Simon Michael
e120e261bd
import: if there's nothing to import, be quiet
2019-01-08 15:34:19 +00:00
Simon Michael
3cf21190c0
update embedded manuals
2019-01-05 07:35:54 +00:00
Simon Michael
0ed3ec08fa
bump version to 1.12.99
2019-01-05 07:35:54 +00:00
Simon Michael
6f36702141
lib: rename, reposition tprecedingcomment field
2019-01-05 07:35:54 +00:00
Simon Michael
9211c52d50
cli: bump version to 1.12.1, changelog
2018-12-03 16:00:44 -08:00
Simon Michael
3a5df72331
roi: use math-functions lib instead of old statistics version
2018-12-03 15:51:29 -08:00
Simon Michael
40713ee7aa
update embedded manuals
2018-12-02 17:26:18 -08:00
Simon Michael
67d7c82e9f
bump version to 1.12
2018-12-02 17:20:34 -08:00
Simon Michael
b22f7944b8
doc: changelog tweak
2018-12-02 17:13:02 -08:00
Simon Michael
99a04c219f
roi: add to commands list
2018-12-02 16:27:36 -08:00
Simon Michael
2d51cef88e
doc: changelogs
2018-12-02 13:29:00 -08:00
Simon Michael
b053942e9b
lib: flip the arguments of (divide|multiply)[Mixed]Amount (api change)
...
Also, start using a mapMixedAmount helper.
2018-11-13 17:28:24 -08:00
Simon Michael
4b5b9f46db
lib: TransactionModifier: clarify
2018-11-13 16:35:46 -08:00
Peter Simons
4e8f2c11d3
Allow building with base-4.12.
...
The build succeeds just fine and all test suites pass, too.
2018-10-24 10:35:11 -07:00
Simon Michael
080e475eb9
cli: update cabal file
2018-10-22 10:54:22 -07:00
Samuel May
cde91fc5f4
lib: Make BalanceAssertion a full datatype
...
Note: simplifies/moves whitespace parsing out of the balance assertion
parser.
2018-10-22 09:55:14 -07:00
Samuel May
22645881c1
Add upper bound on 'statistics'; broaden .gitignore
...
.gitignore: products of manual cabal builds, and vim temp files
hledger.cabal: *.RootFinding removed from statistics >=0.15 in favor
of that in math-functions >=0.2
2018-10-22 09:51:02 -07:00
Simon Michael
b5a90432ff
lib: document and test showTransaction*, posting*AsLines
2018-10-22 06:46:31 -07:00
Simon Michael
80dc2ef03f
update cabal files with hpack 0.31
...
As in latest stack release. Hopefully this won't unleash horrors.
2018-10-18 14:44:16 -07:00
Dmitry Astapov
15c666702b
cli: compoundbalancecommand keeps zero-balance accounts with children
2018-10-17 16:59:53 -07:00
Simon Michael
4a399e50cb
acc: don't require an explicit --flat to make --drop work
2018-10-13 13:22:11 -07:00
Simon Michael
383479d313
doc: update hledger-irr mention
...
[ci skip]
2018-10-12 09:12:06 -07:00
Simon Michael
c53502e1ac
docs: say more about special chars and unicode chars (cf #895 )
...
[ci skip]
2018-10-11 19:06:52 -07:00
Simon Michael
9685699491
docs: options: clarify special characters topic
...
[ci skip]
2018-10-11 18:00:36 -07:00
Moritz Kiefer
ec1b31f7ba
Anonymize original postings
2018-10-11 15:39:33 -07:00
Simon Michael
0d6803e4b5
accounts: drop obsolete --codes flag
2018-10-10 20:35:53 -07:00
Simon Michael
cf25ef5cf5
accounts: filtering by anything other than account name was broken
2018-10-10 20:32:19 -07:00
Simon Michael
605a082d77
bs/bse/cf/is: use account type declarations if any
...
These commands now detect the account types declared by account directives.
Whenever such declarations are not present, built-in regular expressions
are used, as before.
2018-10-09 14:24:59 -10: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
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
f3afbd221d
doc: merge old project changelog into hledger changelog
...
[ci skip]
2018-10-06 12:48:14 -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
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
2c9c4ebf79
Merge branch 'master' into ExceptTLayer
2018-10-04 21:04:02 -10:00
Simon Michael
7bc500ccd2
update embedded manuals
2018-09-30 20:08:15 -10:00
Simon Michael
b798c48040
bump version to 1.11
2018-09-30 20:07:45 -10:00
Simon Michael
92c8a6fffb
changelogs
2018-09-30 20:05:26 -10:00
Alex Chen
3d2584d869
lib: switch to megaparsec 7
2018-09-30 20:15:12 -06:00
Dmitry Astapov
3397ccdd4c
cli: command to compute return on investment
2018-09-27 13:42:31 -10:00
Simon Michael
1cb5357a7d
update cabal file
2018-09-25 07:27:06 -10:00
Dmitry Astapov
bda202e4d4
cli: "close" can print only opening or closing transaction
2018-09-25 07:25:59 -10:00
Simon Michael
855bd54d19
budget: declaration and (actual) amount sorting for bal --budget
...
Account declaration-aware sorting is the default throughout hledger now.
2018-09-24 08:31:19 -10:00
Dmitry Astapov
cb979ed129
cli: command to list included files
2018-09-22 21:47:54 -10:00
Simon Michael
3de8c11de1
journal: a new account sorting mechanism, and a bunch of sorting fixes
...
A bunch of account sorting changes that got intermingled.
First, account codes have been dropped. They can still be parsed and
will be ignored, for now. I don't know if anyone used them.
Instead, account display order is now controlled by the order of account
directives, if any. From the mail list:
I'd like to drop account codes, introduced in hledger 1.9 to control
the display order of accounts. In my experience,
- they are tedious to maintain
- they duplicate/compete with the natural tendency to arrange account
directives to match your mental chart of accounts
- they duplicate/compete with the tree structure created by account
names
and it gets worse if you think about using them more extensively,
eg to classify accounts by type.
Instead, I plan to just let the position (parse order) of account
directives determine the display order of those declared accounts.
Undeclared accounts will be displayed after declared accounts,
sorted alphabetically as usual.
Second, the various account sorting modes have been implemented more
widely and more correctly. All sorting modes (alphabetically, by account
declaration, by amount) should now work correctly in almost all commands
and modes (non-tabular and tabular balance reports, tree and flat modes,
the accounts command). Sorting bugs have been fixed, eg #875 .
Only the budget report (balance --budget) does not yet support sorting.
Comprehensive functional tests for sorting in the accounts and balance
commands have been added. If you are confused by some sorting behaviour,
studying these tests is recommended, as sorting gets tricky.
2018-09-22 21:45:07 -10:00
Simon Michael
8c18bada0c
lib, cli, ui, web: update cabal files
2018-09-22 21:01:23 -10:00
Simon Michael
03acd40668
lib, cli, ui, web: upper bound to avoid megaparsec 7 for now
2018-09-20 20:48:47 -10:00
Simon Michael
059ad9eb76
refactor: jaccounts -> jdeclaredaccounts
2018-09-17 05:52:13 -07:00
Simon Michael
45858abc9c
cli, ui, web: drop HUnit dependency
2018-09-07 13:01:50 -07:00
Luca Molteni
ad733c1eb4
Removed hunit
2018-09-07 13:00:20 -07:00
Simon Michael
a385fa7f00
update manuals
2018-09-07 12:44:52 -07:00
Simon Michael
23bdac41d9
csv: merge lucamolteni's cassava/custom separators (squashed) ( #829 )
...
commit 5ba464de761b298e50d57a8b7d14bc28adb30d5d
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Sep 7 17:54:12 2018 +0200
Fix CI 2
commit f060ae9449f4b61a915b0ed4629fc1ba9b66fb4a
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Sep 7 17:30:08 2018 +0200
Fix CI build
commit af0719a33b9b72ad244ae80198d881a1f7145e9d
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Sep 7 17:19:01 2018 +0200
Fix rebase
commit 1a24ddfa54dfb4ff1326e1a51005ffa82d3dc3c8
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Aug 10 16:25:24 2018 +0200
Fixed some GHC warnings
commit 1ac43398a359b5925ef71f53347698f1c6c510ef
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Aug 10 16:14:49 2018 +0200
Fix .cabal
commit 422456b925d8aa4ab3e869f51e98c2b1c3dcde0a
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jul 1 22:56:20 2018 +0200
Removed to-do list
commit 1118b762e4fd15c4fe7ba48ba86676706ea3a5a5
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jul 1 22:53:28 2018 +0200
Better test
commit 1146ed0941655668bf7684f18aa15c5f4b9b20c2
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jul 1 15:32:28 2018 +0200
Fix parsing
commit 4fc2374b2b81802990da30c96756aab54d77399c
Author: Luca Molteni <volothamp@gmail.com>
Date: Thu Jun 21 22:11:11 2018 +0200
Parsing of separator
commit f7a61737f1ad4460ba20ca9b2e86eb21468abb33
Author: Luca Molteni <volothamp@gmail.com>
Date: Thu Jun 21 14:29:23 2018 +0200
Almost separator in options
commit ac8841cf3b9c80914bc3271ad9b9ff4ae9ba48a7
Author: Luca Molteni <volothamp@gmail.com>
Date: Thu Jun 21 14:16:59 2018 +0200
Separator in parseCSV
commit 92a8b9f6ba77ea4237f769641e03029ac88542ea
Author: Luca Molteni <volothamp@gmail.com>
Date: Thu Jun 21 13:30:41 2018 +0200
separator option
commit ec417a81ae625647cf35e61776cdf02bdb2c6aea
Author: Luca Molteni <volothamp@gmail.com>
Date: Thu Jun 21 10:45:26 2018 +0200
Removed one qualified import
commit 8b2f386c2f780adcd34cff3de7edceacc1d325a7
Author: Luca Molteni <volothamp@gmail.com>
Date: Wed Jun 20 14:01:12 2018 +0200
Removed string conversions
commit a14d0e099e28a286bb81770cfc9cb8f5c7e5cf1f
Author: Luca Molteni <volothamp@gmail.com>
Date: Wed Jun 20 10:23:20 2018 +0200
custom delimiter in cassava
commit 694d48e2bc1ada0037b90367c017f3082f68ed45
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jun 10 17:51:54 2018 +0200
Use Text.getContents - remove UTF-8 compatibility library
commit a7ada2cc60033ebdd796ca34cc2ec69a4f387843
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jun 10 17:49:34 2018 +0200
todo list
commit 58ec47d3987909f6bace50e3e647e30dadd5bf03
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jun 10 17:45:22 2018 +0200
CSV test now has unicode characters
commit b7851e94c3f1683b63ec7250a12bcde3b7bed691
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jun 10 16:59:39 2018 +0200
Use decode from Text
commit 79f59fd28ccaca08fcd718fcd8d00b1c1d65d7e1
Author: Luca Molteni <volothamp@gmail.com>
Date: Sun Jun 10 13:28:57 2018 +0200
Use Text and Lazy Bytestring
commit 470c9bcb8dc00669beb4ef0303a1e7d9f7aecc89
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 15:30:22 2018 +0200
Use megaparsec error
commit f978848ba249ef4f67b855bea5d4e549290c205c
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 15:22:07 2018 +0200
Renamed qualify and remove Parsec
commit 152587fde204c43a55798d212e43f37cd3038c2e
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 15:12:36 2018 +0200
Use cassava mega parsec
commit cf281577a3d3a071196484a6fc8485f2ea1f7d67
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 14:01:47 2018 +0200
Removed Data.Vector
commit 1272e8e758369d8cc5778029a705b277355a5029
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 12:16:18 2018 +0200
Removed Parsec ParseError
commit ae07f043135a19307fd65b281ade37a74c76acb2
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 12:06:14 2018 +0200
Type sinonim for ParsecError
commit 8e15b253c11bd1c0c35a7641aeb18aa54e0ba9b0
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 11:16:08 2018 +0200
Replaced with typeclasses
commit 1ed46f9c175603611325f3d377004e4b85f29377
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 11:01:33 2018 +0200
Replaced Text/CSV with Cassava
commit 362f4111b5854145703174b976fc7acbd71b8783
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 10:34:37 2018 +0200
Use cassava parsin instead of Text/CSV
commit 83e678e371618687cf7c15a4e2cfa67f570b6b64
Author: Luca Molteni <volothamp@gmail.com>
Date: Sat Jun 9 08:22:51 2018 +0200
Text CSV error messages
commit f922df71d274beeacab9fb2530b16c97f005cc08
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Jun 8 21:45:20 2018 +0200
Better types
commit edd130781c84790a53bff2283e6041eb8232e7cf
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Jun 8 21:34:59 2018 +0200
Conversion to Text CSV type
commit 0799383214483018ad2d977a3c8022414959c2b2
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Jun 8 16:06:21 2018 +0200
First function with cassava
commit e92aeb151ff527b383ff3d0ced7764e81b71af82
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Jun 8 13:47:34 2018 +0200
Added cassava as dependency
commit 5ea005c558a3939af7e5f0cd735a9b4da931228e
Author: Luca Molteni <volothamp@gmail.com>
Date: Fri Jun 8 13:18:47 2018 +0200
Better .gitignore for multi idea modules
2018-09-07 12:34:51 -07:00
Simon Michael
91b111b60d
rename easytests_* to tests_*
2018-09-06 13:13:26 -07:00
Simon Michael
f388d9311a
update embedded manuals
2018-09-06 12:03:50 -07:00
Simon Michael
d93334738b
test: update docs
...
[ci skip]
2018-09-06 12:02:29 -07:00
Simon Michael
4003264129
lib: drop HUnit helpers, rename expectEqPP
2018-09-04 13:52:36 -07:00
Simon Michael
ff8d582bed
test: drop hunit support from the test command
2018-09-04 12:48:06 -07:00
Simon Michael
807e6dc4af
tests: Cli -> easytest
2018-09-04 12:42:37 -07:00
Simon Michael
7370f2a553
tests: Hledger -> easytest
2018-09-04 12:25:52 -07:00
Simon Michael
dcc44d10a5
lib: export HasCallStack from Hledger.Utils.Test
2018-09-04 09:59:48 -07:00
Simon Michael
cd67f8ea68
tests: clear out old boilerplate
2018-08-31 18:12:17 -07:00
Jakub Zárybnický
1190e2ae5d
cli: Replace embedStringFile with embedFile (compile with LC_ALL=C)
2018-08-24 09:18:26 -07:00
Simon Michael
f108b56e61
uniquify modules' easytests, simplify imports
2018-08-20 14:31:31 +01:00
Simon Michael
f30b1533a0
rewrite: disable outdated doctests
2018-08-18 16:06:34 +01:00
Simon Michael
fa6f0e8d1a
cli: make cabal test suite run the test command, not just hunit tests
2018-08-18 15:20:15 +01:00
Simon Michael
d778a92561
tests: export HUnit/EasyTest from Hledger.Utils.Test; more helpers
2018-08-18 15:19:59 +01:00
Simon Michael
50d666d5a0
test: refactor, document, organise easytests, port amountp tests ( #812 )
2018-08-15 19:58:07 +01:00
Simon Michael
ed15ebd70e
test: run some easytests as well; print test output on stdout
2018-08-15 11:24:52 +01:00
Simon Michael
b11a0eadb2
make these modules loadable in a GHCI with OverloadedStrings set
2018-08-03 14:52:11 +01:00
Simon Michael
3e0147b7e9
test: don't try to read the journal
2018-08-03 14:52:11 +01:00
Simon Michael
d685d1aa9b
lib,rewrite: simplify transactionModifierToFunction
...
This removes transactionModifierToFunction's extra query parameter;
the rewrite command sets it in the TransactionModifier instead, which
I think is equivalent. I had to change one functional test, but it
seems correct now, so perhaps it wasn't working right before ?
2018-08-02 08:25:49 +01:00
Simon Michael
72acb86299
cabal: bump tested-with declarations
2018-08-02 08:25:49 +01:00
Simon Michael
1e0a7ec8f1
remove some unneeded CPP pragmas
2018-08-02 08:25:49 +01:00
Simon Michael
9bd1772ea8
bs/bse/cf/is: remove NoCPP pragma
...
This was added in 2012, I guess to prevent CPP breaking on some
needed and I don't want to do this everywhere; we'll just remember
to not put CPP-like content in quasi-quoted blocks.
2018-08-02 08:25:49 +01:00
Simon Michael
a4ed468979
don't re-export applyTransactionModifiers from Hledger.Cli.Utils, I guess
2018-08-02 08:25:49 +01:00
Simon Michael
eae9d78bb1
lib: generateAutomaticPostings -> applyTransactionModifiers
2018-08-02 08:25:49 +01:00
Simon Michael
bb36693155
lib: refactor, txnTieKnot automatically
2018-08-02 08:25:49 +01:00
Simon Michael
efc54c4c25
lib: ModifierTransaction -> TransactionModifier; try to clarify a bit
2018-07-30 19:38:21 +01:00
Simon Michael
05073e9f9d
rewrite: clarify relation to print --auto ( #745 )
...
[ci skip]
2018-07-26 07:14:36 +01:00
Simon Michael
d5430e7ddf
clean up debug helpers (api change)
2018-07-16 15:28:58 +01:00
Simon Michael
8a7db87427
doc: update manuals
2018-07-15 09:21:10 +01:00
Simon Michael
92404bb847
prices: allow filtering by query, clarify docs
...
Query arguments are allowed, prices can be filtered by date, and
postings providing transaction prices can be filtered by anything.
2018-07-15 09:21:10 +01:00
Simon Michael
2fbebc6c64
lib: clarify
2018-07-14 10:57:05 +01:00
Gaith Hallak
d0b9d76986
Keep the flags order in moveFlagsAfterCommand
2018-07-04 17:49:14 +03:00
Simon Michael
d461e96c34
doc: update manuals harder, they should say 1.10.99
...
[ci skip]
2018-07-04 15:09:57 +01:00
Simon Michael
4f40467d86
update embedded manuals
2018-07-04 13:33:27 +01:00
Simon Michael
d62f082bce
bump version to 1.10.99 (dev)
2018-07-04 13:32:42 +01:00
Simon Michael
91c487d4c2
doc: manuals: update version strings
2018-07-04 12:52:29 +01:00
Simon Michael
22f2e90a4b
update embedded manuals
2018-06-30 22:08:48 +01:00
Simon Michael
6242b1d784
bump version to 1.10
2018-06-30 22:08:02 +01:00
Simon Michael
6b8fcd7205
changelogs
2018-06-30 21:57:06 +01:00
Jakub Zárybnický
af98eecdf8
web: Add capabilities type, CLI options, and reading them from headers
2018-06-24 14:18:02 +02:00
Simon Michael
6a96683691
web: make --auto and multiple -f options work again
...
I think we lost one or both of these at the time of ecf49b1e .
2018-06-20 00:26:37 -07:00
Simon Michael
9c1db9ed9f
lib: fix forecast start/end dates
...
pushed too soon
2018-06-18 18:08:55 -07:00
Simon Michael
26d2c79ce0
lib: make date: also set forecast end date, not just -e and -p
2018-06-18 17:55:18 -07:00
Alex Chen
ff2b042c7e
lib: remove the ErroringJournalParser type
2018-06-11 13:58:56 -06:00
Simon Michael
42f47e2b6b
update embedded manuals
...
[ci skip]
2018-06-08 17:27:04 -07:00
Simon Michael
061aad0431
remove some CPP that's obsolete since we require base 4.8+
2018-06-04 17:33:21 -07:00
Simon Michael
ec39c87ca8
disambiguate the base-compat imports in hledger package too ( #794 )
2018-06-04 17:32:45 -07:00
Simon Michael
0ce9c5728a
switch to base-compat-batteries to fix ghc 7.10 support ( #794 )
...
base-compat-batteries provides the same API across more ghc versions
than base-compat does, at the cost of more dependencies. Eg it exports
Prelude.Compat ((<>)) with ghc 7.10/base 4.8, which we expect.
My belief is that several of our deps already require it so the added
cost is not too great. We should probably go back to base-compat when
possible though, eg when we stop supporting ghc 7.10.
2018-06-04 17:32:42 -07:00
Simon Michael
328b2dabfe
require latest base-compat, might as well ( #794 )
2018-06-04 17:32:32 -07:00
Peter Simons
8c0c168cd6
Fix the build of hledger-lib with ghc 8.0.x and base-compat 0.10.x.
...
We don't need to import Data.Monoid because Prelude.Compat exports "<>"
already. In fact, importing that module causes build failures:
Hledger/Read/Common.hs:725:62: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Sem.<>’,
imported from ‘Prelude.Compat’ at Hledger/Read/Common.hs:97:1-39
(and originally defined in ‘Data.Semigroup’)
or ‘Data.Monoid.<>’,
imported from ‘Data.Monoid’ at Hledger/Read/Common.hs:110:1-18
Fixes https://github.com/simonmichael/hledger/issues/794 .
2018-06-04 20:58:58 +02:00
Alex Chen
12e8d0e282
lib: change some parsers to use takeWhileP
2018-05-22 12:16:46 -07:00
Alex Chen
b245ec7b3d
lib: remove the megaparsec compatability module
2018-05-22 12:16:46 -07:00
Alex Chen
c4ba7542d7
lib: use megaparsec 6 for all supported ghc versions
2018-05-22 12:16:46 -07:00
Simon Michael
581d02162c
resolve all current build warnings with the supported GHC versions
...
If I'm lucky.
2018-05-17 20:43:55 -07:00
Mykola Orliuk
64c7eb78f4
GHC 8.0 compatibility
2018-05-13 14:41:08 -07:00
Simon Michael
2c0abac928
cli, ui, web: fix build on ghc < 8.4, hopefully
2018-05-05 16:20:27 -07:00
Simon Michael
c71f29d6fb
doc: options: fix wiki link
2018-05-05 16:14:44 -07:00
Simon Michael
ad99ffe935
ui: preserve the effect of --value, --forecast, --anon on reload ( #753 )
2018-05-05 15:55:14 -07:00
Simon Michael
18e5c9d5c9
doc: move market price docs under directives
2018-05-03 13:11:17 -07:00
Simon Michael
000cd2780c
cli: fix benchmark compilation, clean up cabal
2018-04-30 18:37:43 -07:00
Simon Michael
87fce4db68
cli: add missing change note
...
[ci skip]
2018-04-30 13:34:03 -07:00
Simon Michael
290ea1891a
regen manuals
2018-04-29 18:04:59 -07:00
Simon Michael
59c804dac4
doc: journal: directives & periodic/automated cleanups
2018-04-29 18:02:16 -07:00
Simon Michael
8799e55633
doc: bal: reference boring parent eliding example
2018-04-29 12:45:08 -07:00
Simon Michael
0aef51d725
changelogs
2018-04-29 12:45:07 -07:00
Simon Michael
34c3c5dc6c
bal: show an error for unsupported --budget --sort-amount
2018-04-27 11:52:23 -07:00
Simon Michael
abb2e6bfc2
reg: include txn's code field in register CSV output ( #746 )
2018-04-27 10:57:40 -07:00
Simon Michael
d7f6ff0e18
doc: regenerate embedded manuals
2018-04-25 17:43:34 -07:00
Simon Michael
a4d30512bd
doc: update balance docs
...
[ci skip]
2018-04-25 16:14:44 -07:00
Simon Michael
c4d18d1fe5
doc: update balance docs
...
[ci skip]
2018-04-25 16:08:41 -07:00
Simon Michael
21b3a56489
doc: budget report: update
2018-04-25 08:57:33 -07:00
Simon Michael
9151f5004e
budget: show a budget report even with no interval (for whole journal period)
2018-04-24 23:12:42 -07:00
Simon Michael
41665d07b0
regenerate cabal files, fix tabular compilation error
2018-04-23 18:52:28 -07:00
Simon Michael
0c140d7238
budget: allow multi-interval budgets again
...
Budgets were restricted to a single interval in 1.9, but this was
a mistake. This restores the 1.5 behaviour, where a budget can be built
up from multiple periodic transactions with different intervals.
2018-04-23 18:52:28 -07:00
Simon Michael
43287a3e26
budget: use a new first-class BudgetReport for --budget
2018-04-23 18:52:28 -07:00
Simon Michael
3a3829ac0f
doc: regen embedded manuals
2018-04-20 06:48:26 -07:00
Simon Michael
d53557b09d
regen cabal files with stack 1.7's hpack (0.28.2)
2018-04-20 06:47:52 -07:00
Simon Michael
b1cd20c94c
doc: typos
...
[ci skip]
2018-04-20 05:40:54 -07:00
Simon Michael
1a9a1796d1
doc: note -V limitation in multicolumn balance reports
...
[ci skip]
2018-04-20 05:38:36 -07:00
Simon Michael
be7702b187
doc: market value: update examples
...
[ci skip]
2018-04-20 05:24:09 -07:00
Simon Michael
30186e35ea
cabal: update tested-with
2018-04-20 05:24:09 -07:00
Dmitry Astapov
0c835acd18
lib, app: better descriptions for forecast transactions
2018-04-18 16:05:08 -07:00
Dmitry Astapov
d82370d10b
lib, app, web: remove differences between command line and journal file aliases
2018-04-17 16:09:11 -07:00
Dmitry Astapov
f6ec26e321
lib, app, web, ui: rename readJournalFile[s]WithOpts to readJournalFile, same for tryReader[s]WithOpts
2018-04-17 15:25:02 -07:00
Simon Michael
2bed041135
doc: queries: clarify
...
[ci skip]
2018-04-17 14:34:50 -07:00
Dmitry Astapov
37607beaea
lib, app, web: use readJournalFileWithOpts instead of readJournalFile whenever possible
2018-04-17 14:33:32 -07:00
Dmitry Astapov
ecf49b1e4b
lib: auto postings generated before amount inference and balance checks ( #729 )
2018-04-17 14:33:32 -07:00
Simon Michael
7129577f34
update cabal files
2018-04-04 17:56:22 +01:00
Simon Michael
4ea02bf1cb
bump version to 1.9.99
2018-04-04 17:53:38 +01:00
Simon Michael
0b5ddcebee
cli: clarify smart dates with more examples; add support for YYYYMM
2018-04-04 17:45:23 +01:00
Simon Michael
326ac83dcf
fix haddock issues
2018-03-31 19:15:24 +01:00
Simon Michael
027abcabe6
update embedded manuals
2018-03-31 19:15:24 +01:00
Simon Michael
6ebb1fb061
update cabal files
2018-03-31 19:15:24 +01:00
Simon Michael
2db2010e40
bump version to 1.9, bump manual date
2018-03-31 19:15:24 +01:00
Simon Michael
0a1e46e018
doc: update changelogs, release notes
...
[ci skip]
2018-03-31 19:15:24 +01:00
Martin Michlmayr
633ad4455f
doc: update references to the faq
...
Update references to the FAQ in the documentation and on the web site.
2018-03-31 17:58:29 +01:00
Simon Michael
0979dbc01f
regenerate cabal files with stack 1.6.3 to silence hpack warnings
...
[ci skip]
2018-03-31 03:24:01 +01:00
Simon Michael
b5546fd7b6
doc: another manual update
2018-03-31 02:42:57 +01:00
Simon Michael
a8dc474a27
doc: fix budgeting wiki link
...
[ci skip]
2018-03-30 03:42:06 +01:00
Simon Michael
2a87ea56ff
budget: refactor; show budget goals even with no or zero actual
...
This makes budget reports more intuitive. It is a temporary hack which
can misorder columns in some cases (if actual and budget activity
occur in a different range of columns). We should redo this in a more
principled way.
2018-03-30 03:26:32 +01:00
Simon Michael
939d6833ea
budget: refactor date handling, add debug output
2018-03-30 01:01:50 +01:00
Simon Michael
c306193667
doc: also update -E/--empty command line help
...
[ci skip]
2018-03-30 00:49:28 +01:00
Simon Michael
17ce3d8329
doc: update manuals with --budget note
2018-03-29 22:37:37 +01:00
Simon Michael
178e3a234b
ui/web: -E toggles zeroes at startup, with opposite default to cli
2018-03-29 22:35:06 +01:00
Simon Michael
083d9190fd
budget: only periodic txns with the selected interval are used
2018-03-29 15:51:52 +01:00
Simon Michael
c64d598919
bal: a little more width for budget columns
2018-03-29 15:12:44 +01:00
Simon Michael
6970a4c6e8
budget: more regular layout, simple fixed-width columns
...
old:
Balance changes in 2018/03/19w12:
|| 2018/03/19w12
===================++=================
<unbudgeted>:aaa || 0
bbb || 1.33 [0]
bbb:bbbbbbbbbbbbb || 1.25 [42% of 3]
ccc || 0 [0% of 0]
ddd || 0 [0% of 0]
eee || 0.75 [75% of 1]
fff || 3.50 [50% of 7]
ggg || 1.25 [0]
hhh || 0 [0% of 6]
iii || 0 [0% of 0]
-------------------++-----------------
|| 8.08
new:
|| 2018/03/19w12
===================++========================
<unbudgeted>:aaa || 0
bbb || 1.33 [ 0]
bbb:bbbbbbbbbbbbb || 1.25 [ 42% of 3]
ccc || 0 [ 0% of 0]
ddd || 0 [ 0% of 0]
eee || 0.75 [ 75% of 1]
fff || 3.50 [ 50% of 7]
ggg || 1.25 [ 0]
hhh || 0 [ 0% of 6]
iii || 0 [ 0% of 0]
-------------------++------------------------
|| 8.08
2018-03-29 15:03:27 +01:00
Simon Michael
550425810f
budget refactoring, type synonyms
...
Using "actual" and "budget" terminology. "real" is already used in the
context of real/virtual postings. "actual" should be familiar from
unit testing (expected & actual)..
2018-03-29 15:03:27 +01:00
Simon Michael
a56c547bc2
cleanups
2018-03-29 15:03:27 +01:00
Simon Michael
d4eb3caf70
bal: comment fixes
...
[ci skip]
2018-03-29 15:03:27 +01:00
Simon Michael
64e06750eb
doc: draft changelogs & release notes
2018-03-28 18:25:01 +01:00
Simon Michael
1347885cd8
bal/bs/bse/cf/is: show short monthnames in monthly reports (like html)
2018-03-28 18:17:20 +01:00
Simon Michael
265bc21b24
bal: mention --budget's newness in manual
...
[ci skip]
2018-03-26 15:18:44 +01:00
Simon Michael
28a8b55f4e
move non-portable file warning to package
2018-03-26 01:04:58 +01:00
Moritz Kiefer
d7b68fbd7d
Use skipMany/skipSome for parsing spacenonewline
...
This avoids allocating the list of space characters only to then
discard it.
2018-03-25 22:59:05 +01:00
Simon Michael
84579bb1b4
silence redundant import warnings with ghc 8.4
2018-03-24 22:51:56 +00:00
Simon Michael
21db75f1a6
update cabal files
2018-03-24 16:06:20 +00:00
Simon Michael
d1a55e5f76
tighten base upper bound, avoid breakage with next major GHC
2018-03-22 16:43:40 +00:00
Simon Michael
61f7563fa2
budget: drop obsolete hledger-budget addon ( close #620 )
...
[ci skip]
2018-03-12 23:14:00 +00:00
Simon Michael
8c384e3192
tweak -E help again, hledger-web also shows zeroes by default
...
[ci skip]
2018-02-18 08:05:55 -08:00
Simon Michael
a8933e8c5c
ui: tweak -E help, hledger-ui shows zeroes by default
...
[ci skip]
2018-02-18 07:16:59 -08:00
Simon Michael
3390972cab
update generated manuals
2018-02-16 11:09:37 -08:00
Simon Michael
d3fde29b36
bal: --invert flag to flip all signs
2018-01-29 14:53:23 -08:00
Simon Michael
77a3c7952b
cli: remember to include the actual hledger manuals, as well as symlinks
...
[ci skip]
2018-01-26 11:54:38 -08:00
Simon Michael
5cea120ab7
cli: rename embedded files dir, make them extra-source-files
...
Per feedback from peti. These files will no longer be installed to
cabal's data directory, where it might seem as if they are required at
runtime, which they are not. Packagers will still find them in the
tarball and can put them in the proper place.
2018-01-26 11:12:08 -08:00
Simon Michael
7c351547ba
doc: fix links to output format section
...
[ci skip]
2018-01-23 17:14:09 -08:00
Simon Michael
18a0786691
doc: fix options subheadings
...
[ci skip]
2018-01-23 17:10:16 -08:00
Simon Michael
e657e96591
bal/etc.: document html output, move to options section
2018-01-23 17:08:19 -08:00
Simon Michael
37555617b7
journal, bal: document account codes
2018-01-23 16:51:12 -08:00
Simon Michael
e491f513a1
cli: tabular reports no longer have a trailing blank line added
...
Tabular reports from bal, bs etc. have until now been rendered on
the terminal with one final blank line, for readability.
This change drops the blank line.
This is consistent with the non-tabular balance and register output
(not print, which is a special case), and with most unix commands.
The real reason for it, which I admit is flimsy, is that I can now omit
the final delimiter (>=0) when using shelltestrunner 1.9's new format,
making functional tests easier to maintain and more readable.
If there's opposition, this could be reverted.
2018-01-23 12:47:56 -08:00
Simon Michael
d420a8b534
journal: account directive: parse and store a numeric account code also
2018-01-23 11:33:23 -08:00
Simon Michael
88ef586480
lib: rename, clarify purpose of balanceReportFromMultiBalanceReport
2018-01-23 11:32:24 -08:00
Simon Michael
6c60e4a97b
bs/cf/is: always show a tabular report, even with no report interval
...
Previously, if you specified no report interval, the text output of
these commands was a simple report like the original balance command,
with amounts on the left and account names on the right. Also,
balances used arithmetic sign like the balance command.
Now it always draws a table, with account names in the left
column, and shows balances with normal-positive sign, consistent with
the multicolumn reports. Less code, fewer bugs.
2018-01-23 11:05:01 -08:00
Simon Michael
2e9ae3f400
bs/bse/cf/is: html output fixes and styling/styleability
2018-01-19 14:16:23 -08:00
Simon Michael
4ddb748d9c
acc: rename --posted -> --used
2018-01-19 12:41:03 -08:00
Simon Michael
37a4d71f1b
acc: report --declared and/or --posted accounts
2018-01-18 18:43:21 -08:00
Simon Michael
6210613f76
bs/bse/cf/is: show overall report span in title
2018-01-18 12:00:16 -08:00
Simon Michael
e9624486b6
bs/bse/cf/is: show local abbreviated month names on monthly columns
2018-01-18 11:46:12 -08:00
Simon Michael
3663c46502
bal: make --drop work with csv/html output
2018-01-18 11:26:57 -08:00
Simon Michael
3849ba7a9d
bal: warn that --budget -O csv doesn't work
2018-01-18 11:24:22 -08:00
Simon Michael
46d7893446
updated generated manuals
2018-01-18 11:01:15 -08:00
Simon Michael
889ba8caac
doc: make the bs/bse/cf/is web docs a bit more like their --help
2018-01-18 11:01:15 -08:00
Simon Michael
6b349e3123
bs/bse/cf/is: show all balances as normally-positive (experimental)
...
Income, liability and equity balances, which until now we have
always displayed as negative numbers, are now shown as normally positive
by these reports.
Negative numbers now indicate a contra-balance (eg an overdrawn
checking account), a net loss, a negative net worth, etc.
This makes these reports more like conventional financial statements,
and easier to read and share with normal people.
2018-01-18 11:01:07 -08:00
Simon Michael
3b2a9eaba4
lib: refactor
2018-01-15 14:15:52 -08:00
Simon Michael
79812f974a
rename NormalBalance -> NormalSign
2018-01-15 14:12:38 -08:00
Simon Michael
02516ef987
bal/bs/bse/cf/is: basic HTML output
2018-01-14 18:09:50 -08:00
Simon Michael
73ba78f092
bs/bse/cf/is: don't repeat the headings row for each subreport
2018-01-14 17:57:46 -08:00
Simon Michael
a26f7a9f51
include the column spans explicitly in CompoundBalanceReport
2018-01-14 17:49:45 -08:00
Simon Michael
de5d22ac21
bal/bs/is/cf: drop short name, indent fields from multicolumn CSV
2018-01-13 11:46:19 -08:00
Simon Michael
81e964502b
lib: refactor low-level text file reading
2018-01-04 16:17:25 -08:00
Simon Michael
a0d765edb5
update embedded manuals
2018-01-04 10:19:27 -08:00
Simon Michael
bc3f5c476c
bump version to 1.5.99
2018-01-04 10:15:03 -08:00
Simon Michael
1234671c69
equity: rename to close
2018-01-03 17:02:35 -08:00
Simon Michael
98dcd1406e
equity: more help cleanup
2018-01-03 15:55:59 -08:00
Simon Michael
31effcd731
equity: ignore any begin date; closed balances are historical
2018-01-03 13:50:16 -08:00
Simon Michael
98dd8c5f83
equity: improve help, note limitations, ignore --date2
...
Try to make this less confusing.
2018-01-03 12:53:37 -08:00
Simon Michael
82283d75d7
doc: changelog updates
2017-12-31 10:30:28 -08:00
Simon Michael
956dee9682
update cabal files
2017-12-31 10:24:15 -08:00
Simon Michael
6ccabe3b48
update embedded manuals
2017-12-31 10:22:09 -08:00
Simon Michael
52c3884ab7
bump version strings & bounds to 1.5
2017-12-31 10:20:48 -08:00
Simon Michael
7921f0cf44
update embedded manuals
2017-12-31 10:08:44 -08:00
Simon Michael
0d8ac2cd6f
update cabal files
2017-12-31 10:03:50 -08:00
Simon Michael
e927e587e6
lib,cli: auto/forecast/budget option/docs cleanup, consistency
2017-12-31 10:01:18 -08:00
Simon Michael
667a1d7e59
remove upper bounds on all but hledger* and base
...
It's rare that my deps break their api or that newer versions must be avoided,
and very common that they release new versions which I must tediously
and promptly test and release hackage revisions for or risk falling out
of stackage. Trying it this way for a bit.
2017-12-31 09:13:50 -08:00
Simon Michael
26d1f10ef1
consistent spacing in bounds
2017-12-31 09:05:39 -08:00
Simon Michael
d3363d09d8
allow megaparsec 6.4.0
2017-12-31 08:47:59 -08:00
Simon Michael
79fe56f8ff
doc: fix broken link
2017-12-31 07:43:02 -08:00
Simon Michael
cbb12cbb73
doc: fix accidental heading in period expressions
2017-12-30 19:21:00 -08:00
Simon Michael
f9e113c9ab
print: -B shows converted amounts again, as in 1.1, even without -x. #551 (Simon Michael, Mykola Orliuk)
2017-12-30 19:08:58 -08:00
Simon Michael
99cde10e98
doc: draft changelogs
2017-12-30 18:20:41 -08:00
Simon Michael
2a0e12122c
tools: regen cabal files with latest stack's hpack to avoid warnings
2017-12-30 08:47:47 -08:00
Simon Michael
0c584759e1
doc: market value: update description
2017-12-30 07:35:23 -08:00
Simon Michael
d8195dcae9
doc: warn about combining -B and -V ( #683 )
2017-12-30 07:21:43 -08:00
Simon Michael
8f55b6137d
uses today's prices, not those of last txn date, for -V (fix #683,#648)
2017-12-29 21:42:59 -08:00
Simon Michael
69e255cead
lib: deduplicate, refactor valuation code
2017-12-29 16:52:08 -08:00
Simon Michael
0a9d724152
lib: clarify journalApplyValue comment
2017-12-29 16:06:53 -08:00
Simon Michael
aa06d0f9bd
lib, cli, ui: allow ansi-terminal 0.8
2017-12-29 12:41:22 -08:00
Simon Michael
3f124cf123
add, web: suggest implied and declared account names also
2017-12-29 12:19:44 -08:00
Simon Michael
07596b1c54
update embedded manuals
2017-12-22 10:13:38 -08:00
Simon Michael
0621a27833
update cabal files
2017-12-22 10:13:37 -08:00
Simon Michael
efdee17aae
bump version strings & lower bounds to 1.4.99
2017-12-22 10:13:37 -08:00
Simon Michael
761fc31eb8
lib,cli,ui,web: allow megaparsec 6.3.0
2017-12-15 12:32:11 -08:00
Simon Michael
cd5c74625e
update embedded manuals
2017-12-14 18:20:07 -08:00
Dmitry Astapov
05383277b1
doc: add --budget to balance manual
2017-12-14 17:20:07 -08:00
Dmitry Astapov
ac80c39535
lib: command-line help for --auto/--forecast matches docs
2017-12-14 17:20:07 -08:00
Simon Michael
302ee50bfe
update embedded manuals
2017-12-07 12:04:11 -08:00
Simon Michael
9013694d89
cabal: regenerate with stack 1.6/hpack 0.20
2017-12-07 11:46:33 -08:00
Simon Michael
c18a75ecfe
fix data-files paths in yaml/cabal files
2017-12-06 18:45:01 -08:00
Simon Michael
f3820e1e7a
fix hledger/.otherdocs symlinks & README
2017-12-06 18:39:37 -08:00
Simon Michael
968cff7a4a
remove numbers from all but nroff filenames
2017-12-06 18:35:18 -08:00
Simon Michael
61a2fa4d53
move package manual files out of doc/
2017-12-06 18:26:20 -08:00
Simon Michael
df7f5e1659
rename hledger manual subfiles
2017-12-06 18:23:20 -08:00
Simon Michael
1d26845525
remove */doc/README
2017-12-06 18:18:03 -08:00
Simon Michael
b425e50ad1
change paths in code, scripts, readme
2017-12-06 18:16:35 -08:00
Simon Michael
d637e2fbcd
doc: expand doc/README, describe doc files and workflows
2017-12-06 13:28:52 -08:00
Dmitry Astapov
58c755df86
lib: fix budget display to always show %% consumed and handle costs
...
For multi-column balance report, if there are no transactions in the
given period for budgeted account, display [0% of <budget>] for
consistency.
If balance is a mix of commodities, convert to cost basis for the
purposes of computing percent of balance spent.
2017-12-01 15:52:29 -08:00
Simon Michael
4228203740
doc: regenerate embedded manuals
...
[ci skip]
2017-11-28 17:37:27 -08:00
Dmitry Astapov
8cd58b71ab
bal: show percentage of budget spent
2017-11-26 14:57:41 +00:00
Dmitry Astapov
6ea5da2d9d
bal: --budget shows budget performance
...
Budget goals specified with periodic transactions (as with
hledger-budget) can now be displayed in balance report (but not in bs/is/cf).
--budget shows the target amount and percentage alongside the actual
amount, per account and period.
Unbudgeted accounts will be hidden, unless --show-unbudgeted is used.
Budgeted accounts are displayed folded (depth-clipped) at a depth
matching the budget specification. Unbudgeted accounts, if shown, are
displayed at their usual depth (in full detail, or according to --depth).
2017-11-26 14:57:41 +00:00
Dmitry Astapov
23f3da4e92
cli: --auto adds automated postings to reports
...
Ledger-style automated postings, previously supported only by
hledger-budget, have landed as a first-class feature. The --auto
flag activates them, so that any postings they generate are
included in reports.
2017-11-26 14:57:41 +00:00
Dmitry Astapov
f101d5b515
cli: --forecast adds periodic transactions to reports
...
Ledger-style periodic transactions, previously supported only by
hledger-budget, have landed as a first-class feature. The --forecast
flag activates them, so that any transactions they generate are
included in reports.
2017-11-26 14:57:41 +00:00
Dmitry Astapov
0dfffed52c
doc: expand documentation for period expressions
...
Document "first day of period" behavior. Document new period
expressions DayOfYear and WeekdayOfMonth.
2017-11-26 14:57:41 +00:00
Simon Michael
419395e3d5
doc: argument files: fix cookbook link
...
[ci skip]
2017-10-31 12:41:05 -07:00
Simon Michael
676eb6e1a2
update embedded manuals
2017-10-31 12:38:37 -07:00
Simon Michael
a3fa09b604
doc: rename/flesh out "argument files" doc, add to cookbook
2017-10-31 12:37:13 -07:00
Simon Michael
a9c4ac24cd
prices: doc: link to market prices doc
2017-10-31 12:37:13 -07:00
Simon Michael
da1cf3b72d
update embedded manuals
2017-10-17 07:08:20 -07:00
Simon Michael
24d8336728
tag: first arg filters tag names, the rest filter transactions ( #261 )
2017-10-17 07:07:34 -07:00
jeevcat
3a9ea65b99
Rewrite of BalanceAssertion type to track its source position.
...
Fixes #481 .
2017-10-16 13:25:03 -07:00
Simon Michael
e33cce52bc
import: make --dry output valid journal format
...
[ci skip]
2017-10-14 08:59:09 -07:00
Simon Michael
e658c301e2
import: doc: update builtin manuals
...
[ci skip]
2017-10-02 17:56:13 -10:00
Simon Michael
732d589955
import: doc: manual edits
...
[ci skip]
2017-10-01 09:57:55 -10:00
Simon Michael
302723b1be
lib,cli,ui,web: allow megaparsec 6.2
...
Forgot to commit this last time.
[ci skip]
2017-10-01 09:49:51 -10:00
Simon Michael
5de51c9bad
fix warnings/errors found by make stacktest
2017-09-30 13:00:22 -10:00
Simon Michael
7520da5e0c
update embedded manuals
2017-09-30 11:46:03 -10:00
Simon Michael
bfb4a38afb
update cabal files
2017-09-30 11:45:33 -10:00
Simon Michael
4a49b86175
bump version strings & lower bounds to 1.4
2017-09-30 11:44:53 -10:00
Simon Michael
0af0961e10
doc: options help tweaks
2017-09-30 11:29:25 -10:00
Simon Michael
6632aedd93
update embedded manuals
2017-09-30 07:00:57 -10:00
Simon Michael
3e866563d1
cli: tweak commands list
2017-09-30 06:58:25 -10:00
Simon Michael
3967e57395
doc: changelog/relnote updates
2017-09-30 06:52:15 -10:00
Simon Michael
e5f794d2cb
cli,ui,web: a @FILE argument reads flags & args from FILE, one per line
2017-09-30 06:49:31 -10:00
Simon Michael
8c86d9b578
doc: update manuals re --sort-amount
2017-09-29 19:31:44 -10:00
Simon Michael
b5602fd771
bal: --sort-amount sorts tree-mode multi-column balance reports
2017-09-29 18:49:47 -10:00
Simon Michael
32d5428197
doc: draft 1.4 changelogs
...
[ci skip]
2017-09-26 16:22:30 -10:00
Simon Michael
d9d92b3bf1
bs/bse/is: --sort-amount puts large liabilities/equities/incomes at top
...
Compound balance commands like these can now be aware of normal account
balance sign, and sort negative balances accordingly.
This also adds utility-ht as a dependency, only for the uncurry function
right now but it looks potentially useful to have.
2017-09-25 19:06:38 -10:00
Simon Michael
35e2e94228
bal/bs/cf/is: --sort-amount sorts by amount instead of account name
2017-09-25 06:17:46 -10:00
Simon Michael
c61a4cca92
regenerate embedded manuals
2017-09-22 16:14:30 -10:00
Simon Michael
fead7c5138
cli, ui, web: make -NUM a shortcut for --depth NUM
2017-09-22 16:14:30 -10:00
Simon Michael
0b7a50d0f0
import: sort new transactions by date, across files
2017-09-21 10:31:15 -10:00
Simon Michael
7edacdf443
cli: import command! hledger import *.csv adds new txns to main file
2017-09-17 18:57:51 -07:00
Simon Michael
1edb828a75
lib, print: rename --new's save files to .latest.*, easier to manage
2017-09-17 13:26:42 -07:00
Simon Michael
c79c8b9883
print: help tweak
2017-09-15 10:08:58 -07:00
Simon Michael
669fa706c0
print: --new shows only transactions added since last time
...
First cut, error messages could be refined etc.
2017-09-15 09:55:17 -07:00
Simon Michael
e3c4a76119
add & use simpler readJournalFilesWithOpts/InputOpts api
2017-09-14 17:43:32 -07:00
Simon Michael
a218ce12ad
cli: docs: update manuals
2017-09-14 06:23:11 -07:00
Simon Michael
076424dedd
cli: docs: note new aliases in manual
2017-09-14 06:19:59 -07:00
Simon Michael
6e7a14b656
cli: new, comprehensive commands list
2017-09-14 05:55:44 -07:00
Simon Michael
bc66c75bd2
cli: some new short command aliases
...
accounts: a
balance: b
print: p, txns
register: r
2017-09-14 05:53:12 -07:00
Simon Michael
e3902ebc6f
cli: make tags a builtin command
2017-09-12 19:54:39 -07:00
Simon Michael
d2d7dbbce0
cli: make rewrite a builtin command
2017-09-12 19:51:27 -07:00
Simon Michael
89f694707b
cli: make register-match a builtin command
2017-09-12 19:43:41 -07:00
Simon Michael
bf99c74198
cli: make print-unique a builtin command
2017-09-12 19:37:31 -07:00
Simon Michael
258efdf83c
cli: make prices a builtin command
2017-09-12 19:28:01 -07:00
Simon Michael
4e6aa06b62
cli: make equity a builtin command
2017-09-12 19:17:47 -07:00
Simon Michael
fe9cd2a186
cli: make check-dupes a builtin command
2017-09-12 19:09:00 -07:00
Simon Michael
44e3d72926
checkdates: disable/document stack script stuff
2017-09-12 18:50:25 -07:00
Simon Michael
b4d70731e8
checkdates: docs
2017-09-12 18:24:22 -07:00
Simon Michael
3dc8dc428a
cli: comments
2017-09-12 18:23:38 -07:00
Simon Michael
84320fe97f
cli: fix import warning
2017-09-12 18:04:40 -07:00
Simon Michael
d2c8edb023
cli: refactor: simplify imports
2017-09-12 17:54:59 -07:00
Simon Michael
7f5985067d
cli: begin merging addons, make check-dates a builtin command
2017-09-12 17:54:25 -07:00
Simon Michael
55cebad0d5
cli: refactor: move commands to a subdirectory, reinstate test command
2017-09-12 10:04:36 -07:00
Simon Michael
5fcd4b35ad
cli: update benchmark after commands refactor
2017-09-11 18:55:01 -07:00
Simon Michael
a8ff9e91f6
cli: fix haddock error
2017-09-11 18:36:20 -07:00
Simon Michael
dc191ec76e
cli: refactor: new Commands module
...
Builtin commands are now gathered more tightly in a single module,
Hledger.Cli.Commands, reducing duplication and facilitating change.
The tests command was difficult and has been dropped for now.
The obsolete convert/info/man commands have been dropped.
cli: refactor: a proper commands list, better Main/Commands separation
The legacy "convert" command has been dropped.
The activity command's module is now named consistently.
2017-09-11 16:50:08 -07:00
Simon Michael
453cf431b2
cli: drop support for directory < 1.2
2017-09-08 11:42:38 -07:00
Simon Michael
ce83b789cf
cli: fix unused import warning
...
Only seen with GHC 7.10 for some reason.
2017-09-08 11:42:38 -07:00
Simon Michael
f972027918
cli: doc: queries: tweak wording
2017-09-07 08:38:14 -07:00
Simon Michael
81d7d3f709
cli: doc: queries: clarifications, especially not:
2017-09-07 08:35:53 -07:00
Simon Michael
efbbcda7e6
doc: tweak description/payee/note docs ( #598 , #608 )
2017-09-05 14:06:43 -07:00
Simon Michael
079e76a370
doc: update description/payee/note docs ( #598 , #608 )
2017-09-05 11:44:02 -07:00
Simon Michael
9501b43471
lib: pivot -> journalPivot, drop implicit tags notion ( #598 , #608 )
2017-09-05 10:48:35 -07:00
Jakub Zárybnický
13a6584440
ui, web: Enable --pivot and --anon in ui and web ( #474 )
2017-09-04 20:45:31 -07:00
Simon Michael
ddb67c0c0b
bse: update embedded manuals
2017-08-28 17:29:24 -07:00
Nicholas Niro
d7f2d5eac3
doc: commands: Added an entry for the new command balancesheetequity.
2017-08-28 20:20:29 -04:00
Nicholas Niro
5e3c8aaaff
Implemented the new Cli command 'balancesheetequity`.
...
This new command shows the same information as balancesheet but also
includes the Equity accounts (equity:<account name>).
2017-08-28 16:58:48 -04:00
Simon Michael
b246d0e990
cf: more restrictive regexp ( #584 )
2017-08-27 08:26:47 -07:00
Simon Michael
831ab78a74
lib, cli, ui: allow ansi-terminal 0.7
2017-08-26 07:47:34 -07:00
Simon Michael
b324d3de95
lib, cli, ui, web: drop oldtime flag, require time 1.5+
...
Should be safe to do now, I hope.
2017-08-25 16:56:41 -07:00
Simon Michael
2036260bb8
cli, web: simplify shakespeare bounds
2017-08-25 16:46:35 -07:00
Simon Michael
230dfea207
update tested-with GHC versions
2017-08-25 16:40:29 -07:00
Simon Michael
6448053448
lib, cli, web: remove ghc < 7.6 support
2017-08-25 16:36:17 -07:00
Simon Michael
8e35bfdfc8
cli: package.yaml: source dir first for clarity
2017-08-25 16:09:17 -07:00
Simon Michael
6e402e1ed6
cli: package.yaml: simplify dep lists, whitespace
2017-08-25 15:52:08 -07:00
Simon Michael
e24a1a2dc0
cli, web: remove unnecessary bound to satisfy hackage server
2017-08-25 09:21:50 -07:00
Simon Michael
12673b1738
update changelogs
2017-08-25 09:18:26 -07:00
Hans-Peter Deifel
37d7c248e2
Allow megaparsec-6.1
2017-08-24 15:56:49 -07:00
Simon Michael
d8696c5ea0
cli: clearer command-line help for --date2 ( fixes #604 )
2017-08-21 17:19:06 -07:00
Simon Michael
21951aa273
bump version harder: fix some yaml/cabal bounds I had missed
2017-08-01 10:11:42 -07:00
Simon Michael
cb0cb1e1e1
regenerate embedded manuals
2017-07-31 15:52:41 -07:00
Simon Michael
1efbbbc7ac
regenerate cabal files
2017-07-31 15:01:23 -07:00
Simon Michael
5706353881
bump version strings & lower bounds to 1.3.99
2017-07-31 14:02:35 -07:00
Simon Michael
87e281a45d
restore upper bounds on hledger packages
...
I dropped these last month, perhaps without meaning to.
They probably should stay. hledger-ui (eg) will still build
with minor updates of hledger-lib or hledger, but will require
either a release or a hackage revision to build with a major
update.
2017-07-30 11:42:52 -07:00
Simon Michael
d7d5f8a064
add support for megaparsec 6 ( fixes #594 )
...
Older megaparsec is still supported.
Also cleans up our custom parser types,
and some text (un)packing is done in different places
(possible performance impact).
2017-07-27 19:20:46 -07:00
Simon Michael
b9571bd088
bal/bs/cf/is: consistently separate columns with a double space
...
Previously, amounts wider than the column headings would be separated
by only a single space. Also there was an extra space before the first
column.
2017-07-27 09:09:03 -07:00
Simon Michael
8851ebc29f
bs/cf/is: support --output-file and --output-format=txt|csv
...
The CSV output should be reasonably ok for dragging into
a spreadsheet and reformatting.
2017-07-25 19:43:45 -07:00
Simon Michael
71b206dfc5
lib: writeOutput clarification
2017-07-25 16:04:00 -07:00
Simon Michael
7204b1b9a1
lib: make output-file and output-format flags available separately
...
Kind of.. the output-file flag's help mentions output-format
2017-07-25 16:03:59 -07:00
Simon Michael
f49756231a
refactor compoundBalanceCommandMultiColumnReport etc.
2017-07-25 16:03:59 -07:00
Simon Michael
48d909c695
refactor compoundBalanceCommandMultiColumnReport etc., more correct docs
2017-07-25 14:28:52 -07:00
Simon Michael
5d93c39922
clarify balance report/cumulative/historical/tree mode shenanigans
2017-07-25 13:55:54 -07:00
Simon Michael
783c4c155c
whitespace
2017-07-25 13:51:26 -07:00
Simon Michael
f0119ec9c1
refactor compoundBalanceCommand
2017-07-25 13:22:03 -07:00
Simon Michael
115ed3aead
bs/is: show a trailing blank line in single column reports, for consistency
2017-07-25 12:46:56 -07:00
Simon Michael
9d4d6ebc4d
bs/cf/is: show one trailing blank line, not two
2017-07-25 12:43:56 -07:00
Simon Michael
c89bec0e17
bs/is: don't let an empty subreport disable the grand totals ( fixes #588 )
2017-07-25 09:21:09 -07:00
Simon Michael
083df72582
refactor: BalanceCommand -> CompoundBalanceCommand
...
More verbose, but also more precise.
2017-07-25 09:21:09 -07:00
Simon Michael
d4f09efc95
refactor balanceCommand
2017-07-25 09:21:09 -07:00
Simon Michael
117ab0ca4c
refactor: BalanceView -> BalanceCommandSpec, cleanups
2017-07-25 09:21:09 -07:00
Simon Michael
5fca083ad2
BalanceView wording, mention case insensitivity
2017-07-25 09:21:09 -07:00
Simon Michael
422e0923f1
refactor BalanceView
2017-07-25 09:21:09 -07:00
Simon Michael
9b9a1a7a30
help: mention -h & output options in default output
2017-07-24 22:19:57 +01:00
Simon Michael
e908d96fd9
bin: new hledger-tags addon, lists tags in matched transactions
2017-07-12 22:11:36 +01:00
Simon Michael
69c41cdd99
cli, help: usage tweaks
...
[ci skip]
2017-07-08 08:34:45 +01:00
Simon Michael
bd2d9b829c
help: yet another manual tweak; update builtin manuals
...
[ci skip]
2017-07-08 08:15:33 +01:00
Simon Michael
ed47bc52ff
help: update manual
...
[ci skip]
2017-07-08 08:06:52 +01:00
Simon Michael
5a033fad89
help: update manual
...
[ci skip]
2017-07-08 08:04:59 +01:00
Simon Michael
9938aa5e79
help: allow substring matching
...
[ci skip]
2017-07-08 07:37:15 +01:00
Simon Michael
5e69d6de84
help: use more standard names for tool manuals
...
[ci skip]
2017-07-08 07:36:52 +01:00
Simon Michael
6df81962ed
cli, bin: mention -h in commands list and addons' usage messages
...
[ci skip]
2017-07-08 06:49:25 +01:00
Simon Michael
50977288bb
doc: updates ( #579 )
2017-07-07 15:58:26 +01:00
Simon Michael
9195989979
doc: update builtin manuals
2017-07-07 15:42:22 +01:00
Simon Michael
9eb1520b6f
help: add --info/--man/--pager/--cat flags, & choose best one by default ( #579 )
...
You can select a docs format/viewer with one of the `--info`, `--man`, `--pager`, `--cat` flags.
Otherwise, it will use info if available, otherwise man if available,
otherwise $PAGER if defined, otherwise less if available, otherwise it
prints on stdout (and always prints on stdout when piped).
Preferring info over man might not suit everyone.
2017-07-07 15:42:22 +01:00
Simon Michael
daa9550929
cli: fix -h/--help debug output ( #579 )
2017-07-07 15:42:16 +01:00
Simon Michael
ee735514fe
doc: update builtin manuals
2017-07-07 02:08:38 +01:00
Simon Michael
7e896572a7
make --help and -h the same, drop --man and --info for now ( #579 )
2017-07-07 02:08:34 +01:00
Simon Michael
d4457931ef
cli: document journalApplyValue
2017-07-05 08:08:20 +01:00
Simon Michael
c54aef03e7
cli: changelog typo
2017-06-30 23:02:31 +01:00
Simon Michael
28c420109d
doc: changelogs for 1.3
2017-06-30 22:26:36 +01:00
Simon Michael
af952532c9
bump package versions to 1.3
2017-06-30 20:57:47 +01:00
Simon Michael
c4248072db
doc: bump version to 1.3, update builtin manuals
2017-06-30 20:45:50 +01:00
David Reaver
a9959b30c2
Fix date of 1.2 release in CHANGES
2017-06-20 08:45:35 -07:00
Simon Michael
40699af34a
doc: update builtin manuals
2017-06-15 19:16:39 -07:00
Simon Michael
eb42ea04e5
use consistent UPC order for --unmarked/--pending/--cleared ( #564 )
2017-06-15 19:16:39 -07:00
Simon Michael
cca95d2974
doc: update builtin manuals
2017-06-15 19:16:39 -07:00
Simon Michael
e119941648
rename "uncleared" status to "unmarked" and --uncleared to --unmarked ( #564 )
...
See the issue and linked mail list discussion. Ambiguity between the
uncleared state, and the "not cleared" --uncleared flag causes confusion
and friction. At this point it seems best to break with Ledger and
past hledger, pick a new name and drop --uncleared to put an end to it.
2017-06-15 19:16:39 -07:00
Simon Michael
d0771a8526
doc: regenerate builtin manuals
2017-06-15 19:16:39 -07:00
Simon Michael
f168d74010
doc: update status docs
2017-06-15 19:16:39 -07:00
Simon Michael
ab073e01e3
lib: add -P short flag for --pending ( #564 )
2017-06-15 19:16:39 -07:00
Simon Michael
8b073014e4
lib, cli: -U/--uncleared no longer matches pending things ( #564 )
...
Also begin using "marked"/"unmarked" terminology where it's helpful.
2017-06-15 19:16:39 -07:00
Simon Michael
fd74da0836
cli: drop an unnecessary test grouping causing unwanted output
2017-06-09 18:27:04 -07:00
Simon Michael
85e5bd0978
cli: hide successes in hledger package's tests output, also
2017-06-09 18:26:33 -07:00
Justin Le
54d33ce028
show colorized amounts for totals of bs/is/cf ( #567 )
2017-06-08 10:33:46 -07:00
Justin Le
6857cd64a8
Fixing bs/is/cf --flat regressions ( #566 )
...
* fixing bs/is/cf --flat regressions
* fixed Tree forcing for non-period reports
2017-06-07 07:03:13 -07:00
Simon Michael
1755f71202
bump version/month in all generated docs
2017-06-06 09:22:39 -07:00
Simon Michael
af11cd6243
bump package versions to 1.2.98 (1.3 alpha)
2017-06-06 09:21:51 -07:00
afarrow
26d2fe3827
Fix typo in help docs ( #560 )
2017-05-31 16:20:21 -07:00
Simon Michael
c9e7bbdc7c
clarify recent print changes a bit ( #551 )
2017-05-30 13:57:52 -07:00
Simon Michael
6c95909fa2
stop forcing tree mode for now, need is unclear ( fixes #552 )
2017-05-23 10:05:04 -07:00
Simon Michael
118bc85726
bs/is: fix "Ratio has zero denominator" error (take 2) ( #535 )
2017-05-04 10:49:03 -07:00
Simon Michael
c8e4bc0098
bs/is: fix "Ratio has zero denominator" error with no matched accounts ( #518 )
2017-05-04 10:24:00 -07:00
Simon Michael
2de0109953
allow megaparsec 5.3
2017-04-29 17:16:27 -07:00
Simon Michael
6c2d2c0a6a
bal: cleanup
...
[ci skip]
2017-04-25 19:39:09 -07:00
Simon Michael
bc111c49ca
bal: document colour support
...
[ci skip]
2017-04-25 18:48:54 -07:00
Simon Michael
10d85bedec
bal: show negative amounts in red
...
The balance command now shows negative amounts in red, when it thinks
ANSI codes are supported, ie when TERM is not "dumb" and stdout is not
being redirected or piped somewhere.
2017-04-25 18:34:09 -07:00
Simon Michael
d9488ea01b
doc: move cost/market value into general options section
...
[ci skip]
2017-03-31 19:18:17 -07:00
Simon Michael
ff598f2635
doc: make changelogs from release notes
2017-03-31 18:11:44 -07:00
Simon Michael
6ee66979ff
doc: regenerate files
2017-03-31 18:01:32 -07:00
Simon Michael
1850fb732f
bump version to 1.2
2017-03-31 17:58:11 -07:00
Simon Michael
e105cdee98
bs/cf/is: more informative usage, mention begin date ( #518 )
2017-03-31 17:41:25 -07:00
Simon Michael
7baf73952f
doc: bs/cf/is: terminology/links/mention begin date ( #518 )
2017-03-31 17:40:48 -07:00
Simon Michael
e50dede708
cashflow: make totals row and -N more like balance/bs/is ( #518 )
2017-03-31 16:39:47 -07:00
Simon Michael
b82e800ae6
bs/cf/is: fix subtitle appearing above total (and put on one line) ( #527 )
2017-03-30 17:18:30 -07:00
Simon Michael
586d86488e
doc: regenerate files
2017-03-29 21:08:02 -07:00
Simon Michael
1f36c1cb8c
doc: options cleanups
2017-03-29 20:45:30 -07:00
Simon Michael
a3c3d58f75
doc: bugs/troubleshooting cleanup
2017-03-29 20:45:30 -07:00
Simon Michael
0055f99c77
doc: more options doc cleanups
2017-03-29 20:45:30 -07:00
Simon Michael
01a2aa9394
doc: update generated files
2017-03-29 14:35:59 -07:00
Simon Michael
7df15a8279
doc: flags/usage/manual cleanups
2017-03-29 14:20:30 -07:00
Moritz Kiefer
f4b3f1c094
Add an option to use unicode in balance tables ( #528 )
...
* Add an option to use unicode in balance tables
fixes #522
* Add a test for unicode tables
* Document --pretty-tables
* Support --pretty-tables in BalanceView
2017-03-29 11:12:01 -07:00
Simon Michael
8d1b1fbfc5
cli: fix a commands list error when no addons are in path
2017-03-29 08:13:09 -07:00
Simon Michael
b402fc7e7d
lib: optserror -> usageError, consolidate with other error functions ( #529 )
2017-03-29 08:00:51 -07:00
Simon Michael
0e9b3dc4b9
cli: avoid processValue which prints stack traces ( fixes #529 )
2017-03-29 07:45:07 -07:00
Simon Michael
895a66eb06
cli: first of several cleanups; separate commands list & usage ( #297 )
2017-03-28 18:44:34 -07:00
Simon Michael
c6eaf9abb3
fix BalanceView warning, get travis passing
2017-03-28 04:48:27 -07:00
Simon Michael
64a97774c4
doc: update generated manuals
2017-03-28 04:09:29 -07:00
Simon Michael
abfd6394ee
bin: name hledger-check-dupes like other validation commands
2017-03-28 04:08:36 -07:00
Simon Michael
e2faf08088
cli: simplify addons detection, fix deduplication
2017-03-28 04:07:01 -07:00
Justin Le
a0b1e1488a
clarified -N for cashflow
2017-03-27 14:35:47 -07:00
Justin Le
2be4aabb36
edited docs to reflect changes in is/bs/cf
2017-03-27 14:32:24 -07:00
Justin Le
1e9e6f29e2
is/bs/cf without -E will now hide empty amounts properly, and still have properly aligned rows
2017-03-27 14:18:27 -07:00
Justin Le
7616056fbe
added 'qualifiers' to odd customized usages of bs/is/cf (ie, historical for is) to prevent misleading reports
2017-03-27 14:01:48 -07:00
Justin Le
b06739f714
matched the logic for Balance.hs to allow date: for historical queries to be correct
2017-03-27 13:53:24 -07:00
Justin Le
4b0ba0f011
odd behavior on -A was bcause of missing parentheses around if statements
2017-03-27 13:22:41 -07:00
Simon Michael
863989e0e7
print: bring back the short -x form of --explicit ( #442 )
2017-03-27 05:17:35 -07:00
Simon Michael
59704dcb6b
doc: regenerate doc files
2017-03-27 05:12:03 -07:00
Justin Le
f7f6d5f8e5
average total for multicolumn bs/is/cf
2017-03-26 01:40:37 -07:00
Justin Le
abfa0a6e01
Multicolumn reports for bs/cf/is, and -T/-A support ( #518 )
...
* factored out multi-column balance reporting into table creation and string rendering
* preliminary multicolumn balance reporting for BalanceView
* added -T and -A options for balance views
* support for overriding balanceview defaults
* fixed unecessary whitespace stripping to make tree view work
* no need for ViewPatterns in BalanceView
* fixed regression where balancesheet didn't ignore the start date when in single column mode
* removed trailing whitespace to pass tests
* handling warnings in Balance.hs
* force -E to line up lines for bs/is/cf
2017-03-22 22:57:40 +00:00
Justin Le
0c7b4e668c
fixed warnings in Balance.hs
2017-03-22 07:09:14 +00:00
Justin Le
34a2c8e7e6
fixed warning in BalanceView.hs
2017-03-18 10:40:03 +00:00
Justin Le
f5a530d620
bugfix for #514 , is and cf are now period reports, and bs, as a snapshot report, is treated as a special case
2017-03-18 10:40:03 +00:00
Peter Simons
e2c8a6ae42
Use more accurate license tag in Cabal file.
2017-03-15 23:07:57 +00:00
Simon Michael
3c13da3ca2
update cabal files to hpack 0.17.0/stack 1.4 format #512
2017-03-15 23:04:35 +00:00
Steven R. Baker
75e169d369
Add missing assrt param to documentation.
...
I was working through the documentation, and this wouldn't work as-is. I noticed that there is an additional argument `assrt` which is not used here. Passing `True` causes this example to work.
2017-02-11 12:08:33 -08:00
Justin Le
600132445c
documentation changed to reflect new bs/is/cf and -V behavior
2017-02-04 16:38:18 -08:00
Justin Le
b41d11c6e9
documentation and cleanup for BalanceView
2017-02-04 16:38:18 -08:00
Justin Le
5ef30d1d4d
full documentation of new command structure
2017-02-04 16:38:18 -08:00
Justin Le
bc67c2a769
fixed small regression in number of newlines at the end of incomestatement, balancesheet, cashflow outputs
2017-02-04 16:38:18 -08:00
Justin Le
baf232d3d9
moved -V/--value to be a global report option, so it works with balance, print, register, balancesheet, incomestatement, cashflow, etc.
2017-02-04 16:38:18 -08:00
Justin Le
573eda15e6
support all single-column balance features for balancesheet/incomestatement/cashflow
2017-02-04 16:38:18 -08:00
Justin Le
321ace107e
BalanceView system implemented for incomestatement and cashflow
2017-02-04 16:38:18 -08:00
Justin Le
a6f98f1170
abstracting over balancesheet, incomestatement, and cashflow with BalanceView
2017-02-04 16:38:18 -08:00
Simon Michael
a30583f6a1
allow megaparsec 5.2 #503
2017-02-01 16:24:37 -08:00
Simon Michael
6ed238a3d6
doc: regenerate built-in help
...
[ci skip]
2017-01-26 09:03:30 -08:00
Simon Michael
3e054e4f86
doc: addon list tweaks
...
Are we done yet ?
[ci skip]
2017-01-26 08:25:03 -08:00
Simon Michael
0247ca9be1
doc: update addons intro
...
[ci skip]
2017-01-26 08:19:02 -08:00
Simon Michael
4ee496cc98
doc: separate & update addons list
...
[ci skip]
2017-01-26 07:28:56 -08:00
Simon Michael
f1ec6a6647
doc: regenerate hledger docs
2017-01-26 06:39:10 -08:00
Simon Michael
b7092f278b
cli, addons: reduce boilerplate a little with hledgerCommandMode helper
2017-01-25 17:10:10 -08:00
Simon Michael
6859b94f4b
cli: omit source addons from list when compiled version is present, again
...
Source and compiled versions of all addons in bin are cluttering up
the commands list. I think this was reasonably well behaved, so I'm
re-enabling it, possibly with a slight fix (.c shadowing .exe).
Some notes:
- when there's only one addon with its base filename, its extension is not displayed (as before)
- addons with (case insensitive) .exe extension or no extension are considered compiled
- when there's exactly two addons with the same base filename, and one of them looks compiled, only that one is kept
- modification time is not checked; an old compiled addon overrides a newer source version
- when there's more than two addons with same base filename, all are kept
2017-01-24 19:34:48 -08:00
Simon Michael
4b3d3fc2fa
doc: move last addon docs out of hledger manual; add hledger-iadd
...
[ci skip]
2017-01-24 15:39:38 -08:00
Simon Michael
1fec6f624c
addons, doc: consolidate addon docs in the scripts, rather than the hledger man page
2017-01-24 15:03:16 -08:00
Simon Michael
daf6732368
addons, doc: a new help scheme, more automated and usable
...
The previous cleanup defined long help separately from the usage text
generated by cmdargs. This meant keeping flag descriptions synced
between the two, and also the short help was often too verbose and
longer than the long help.
Now, the non-usage bits of long help are defined as pre and postambles
within the cmdargs mode, letting cmdargs generate the long help
including all flags. We derive the short help from this by truncating
at the start of the hledger common flags.
Most of the bundled addons (all but hledger-budget) now use the
new scheme and have pretty reasonable -h and --help output.
We can do more to reduce boilerplate for addon authors.
2017-01-24 09:27:43 -08:00
Simon Michael
f4eb9e23e3
addons: add -h & --help to most of them; CliOpts cleanups
2017-01-23 06:17:17 -08:00
Simon Michael
4221381f18
cli: "QUERY" instead of old "PATTERNS" in command help
2017-01-22 10:05:10 -08:00
Mykola Orliuk
25d4917ea2
doc: extend with budget addon section
2017-01-20 13:42:17 -08:00
Mykola Orliuk
7437c96ff6
Make hledger-rewrite tool suitable for re-factoring original journals ( #490 )
...
* cli: fix bug in pivot for postings without tag
Without this fix for postings without tag query checked effective
account which is always empty text ("").
* rewrite: inherit dates, change application order
For budgeting it is important to inherit actual date of posting if it
differs from date of transaction. These dates will be added
as a separate line of comment.
More natural order of rewrites is when result of first defined one is
available for all next rewrites.
* rewrite: factor out Hledger.Data.AutoTransaction
* rewrite: add diff output
With this option you can modify your original files without loosing
inter-transaction comments etc. I.e. you can run:
hledger-rewrite --diff Agency \
--add-posting 'Expenses:Taxes *0.17' \
| patch
As result multiple files should be updated.
Also it is nice to review your changes using colordiff instead of
patch.
* lib: track source lines range for journal
* doc: auto entries and diff output for rewrite
2017-01-20 07:33:24 -08:00
Mykola Orliuk
295af41f38
cli: fix bug in pivot for postings without tag ( #491 )
...
Without this fix for postings without tag query checked effective
account which is always empty text ("").
2017-01-19 07:53:00 -08:00