Simon Michael
c5df73910f
csv: update some parse errors which weren't in human format
...
cf
https://www.reddit.com/r/plaintextaccounting/comments/axekse/hledger_how_to_create_curved_brackets_with_rule/
2019-03-05 06:23:11 -08:00
Simon Michael
16157bc711
lib, web: tweaks to keep building with GHC 7
2019-03-01 15:07:17 -08:00
Simon Michael
420eef4a40
lib: fix some transaction balancing cases
...
I needed to be more careful about ordering, as johannesgerer's original
code was, and the tests missed it. I think I have it now.
Found the PR whose code I have been reworking, it was #438 .
2019-02-21 16:50:32 -08:00
Simon Michael
ca565795ad
lib: transaction, [v]post*, balassert* constructors, for tests etc.
2019-02-21 16:20:04 -08:00
Simon Michael
0bc16d4af6
lib, cli, web: rename porigin -> poriginal
2019-02-20 20:23:54 -08:00
Simon Michael
ba850f3871
lib: more transaction balancing/assertions/assignments cleanup
2019-02-20 09:14:30 -08:00
Simon Michael
8789a442a8
lib: inclusive balance assertions (=* and ==*)
2019-02-20 09:14:30 -08:00
Simon Michael
3b47b58aec
lib: clarify transaction balancing & balance assertion checking
2019-02-20 09:14:30 -08:00
Simon Michael
b34b262c76
lib: document mapM'
...
[ci skip]
2019-02-17 08:36:59 -08:00
Simon Michael
bc7a1476ed
refactor: lib: hlint cleanups
2019-02-14 05:15:49 -08:00
Simon Michael
03877057fb
refactor: cli: commands: hlint clean
2019-02-14 05:15:49 -08:00
Simon Michael
226add41d3
lib: slight cleanup (spelling, hlint)
...
[ci skip]
2019-02-14 05:15:49 -08:00
Simon Michael
9e3cdef1e9
lib: balance assertion docs ( #290 )
...
[ci skip]
2019-02-13 15:52:07 -08:00
Jakob Schöttl
161ca660dc
Support register --invert option to negate amounts
2019-02-09 15:55:41 -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
d1f122f15e
refactor: clarify, note issues ( #893 )
2019-02-01 15:35:33 -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
550aa408eb
lib: refactor, add embedFileRelative
2019-01-26 15:52:58 -08:00
Dmitry Astapov
f2aaaf3310
lib, cli: merge --show-unbudgeted into --empty
2019-01-25 12:53:09 -08:00
Simon Michael
550e33a558
journal: fix balance assertions/assignments & prices ( #824 )
...
Hopefully this is will do it. This restores the past behaviour:
- parsing prices in balance assertions/assignments
- ignoring them in assertions
- using them in assignments
- and printing them
and clarifies tests and docs.
2019-01-25 12:41:10 -08:00
Simon Michael
94d5c6f111
journal: allow prices in balance assertions, but ignore ( #824 , #958 )
2019-01-25 08:59:37 -08:00
Simon Michael
b02f81572c
lib: comment
...
[ci skip]
2019-01-25 08:51:45 -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
92e7370f1f
lib: fix alignment in budget report
2019-01-24 14:56:22 -08:00
Simon Michael
a61216ac3c
journal: allow account types to be set with a type: tag
2019-01-18 16:40:35 -08:00
Simon Michael
573a13fc27
lib: expectParseStateOn helper
2019-01-18 16:40:35 -08:00
Simon Michael
763903ebda
journal: save account directives' comments, tags, declaration order
2019-01-18 16:40:35 -08:00
Simon Michael
90bf354566
lib: allow more account directive info in Account records
2019-01-18 16:40:35 -08:00
Simon Michael
899946f270
journal: account directive: stop supporting account sort codes
...
Eg "account 1000". (Introduced in 1.9, deprecated in 1.11, removed in 1.13.)
2019-01-18 16:40:35 -08:00
Dmitry Astapov
faa5b0fba7
lib: fix parsing of status/code/desc/comments in period txn
2019-01-16 17:17:18 -08:00
Simon Michael
9e4b302af7
lib: setFullPrecision, setMinimalPrecision ( #941 )
2019-01-16 14:45:50 -08:00
Simon Michael
c5ae8e6891
comments
2019-01-16 13:58:04 -08:00
Simon Michael
5ee79797e1
better fix for #949 , don't reverse same-day assertions with --auto
2019-01-16 09:10:58 -08:00
Simon Michael
274b1c12a1
whitespace
2019-01-15 12:58:05 -08:00
Simon Michael
f1441be404
lib: basic unit test for parseAndFinaliseJournal
2019-01-15 12:57:51 -08:00
Simon Michael
944554557a
tweak readJournalFiles type signature
2019-01-15 06:18:56 -08:00
Simon Michael
228fc9eb3c
preserve correct file order when using --auto ( fixes #949 )
...
And clarify parseAndFinaliseJournal a bit.
2019-01-15 06:14:47 -08:00
Simon Michael
e99f80d374
lib: try to clarify periodic transaction double-space error
2019-01-14 15:33:13 -08:00
Simon Michael
70b11ed0a4
journal: make balance assertions exact again ( #941 )
...
Going with option 1b from the issue: calculated and asserted amounts
are compared exactly, disregarding display precision.
But now balance assertion failure messages show those exact amounts at
full precision, avoiding confusion.
2019-01-08 16:51:11 +00:00
Simon Michael
c331be7f23
journal: clarify balance assertion/display precision more ( #941 )
2019-01-06 22:17:20 +00:00
Simon Michael
187fcf75ed
journal: clarify balance assertion/display precision interaction
...
Surprisingly, balance assertions were checking to maximum precision,
which meant it was possible, with a display-precision-limiting
commodity directive, to have a failing assertion with the error
message showing asserted and actual amounts that looked the same.
Now we round the calculated account balance (but not the asserted
balance) to display precision before comparing. This should ensure
assertions always behave as you would expect from visual inspection.
2019-01-06 08:30:54 +00:00
Simon Michael
72eb48bb29
lib: clarify checkBalanceAssertion etc.
2019-01-06 08:24:07 +00:00
Simon Michael
86a91c514d
lib: disallow prices in balance assertions/assignments ( fix #824 )
...
(and in Ledger-style {=FIXEDLOTPRICES} )
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
cd1455e9ea
lib: note aquantity zero with AUTO amounts
2019-01-05 07:35:54 +00:00
Simon Michael
5908414d77
lib: amultiplier -> aismultiplier
2019-01-05 07:35:54 +00:00
Simon Michael
3b0cb701ac
lib: reorder Amount fields for clearer debug output
2019-01-05 07:35:54 +00:00
Simon Michael
2e525f5600
lib: accountdirectivep: update unit tests
2018-12-02 16:41:16 -08:00
Jesse Rosenthal
11a5809c5c
journal: improve unassignable error.
2018-12-02 13:29:00 -08:00