Simon Michael
c4d7cc198a
csv: finalise and check journals generated from CSV ( #1000 )
...
Invalid transactions generated from CSV will now be rejected.
I updated some csv tests to avoid this, except for 21, which
probably needs more cleanup.
2019-11-07 18:58:12 -08:00
Dmitry Astapov
fb5bca0b46
test: update csv tests for expenses:unknown being new default
2019-11-05 22:10:41 +00:00
Dmitry Astapov
c66ccc5cee
lib: do not try to balance transaction in csv reader
2019-11-05 21:16:42 +00:00
Dmitry Astapov
95ec5715cc
lib: better compatibility code in csv reader
2019-11-05 21:16:42 +00:00
Dmitry Astapov
d62f84bec2
lib: csv reader does not generate postings if account=""
2019-11-05 21:16:42 +00:00
Dmitry Astapov
8d24a40150
lib: csv parser fills out amounts on all postings, if possible
2019-11-05 21:16:42 +00:00
Dmitry Astapov
490d2407f4
test: expense:unknown -> expenses:unknown
2019-11-05 21:16:42 +00:00
Dmitry Astapov
3c7d5d466d
lib, doc, test: csv parser gains "end" command for "if" block
2019-11-05 21:16:42 +00:00
Dmitry Astapov
32cbe4c7b3
lib: better inference for unknown account names in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
38db7eb24d
lib: implement skip end in csv reader
2019-11-05 21:16:42 +00:00
Dmitry Astapov
f1ab107400
lib, doc: extended "skip" in "if" body to "skip N"
2019-11-05 21:16:42 +00:00
Dmitry Astapov
1acebe1493
test: csv reader test for #1001
2019-11-05 21:16:42 +00:00
Dmitry Astapov
5bd407b3b9
test: show that #1000 is fixed
2019-11-05 21:16:42 +00:00
Dmitry Astapov
fa61fdbe1b
test: add a test for #1076 (conditional line skips in csv)
2019-11-05 21:16:42 +00:00
Dmitry Astapov
f74df08e98
lib: fix accidental switch of income:unknown and expence:unknown in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
825b9ce5b3
lib: fixed amount vs amount1 conflict detection in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
f40d045251
test: updated csv parser tests to nicer format
2019-11-05 21:16:42 +00:00
Dmitry Astapov
24bba96ea2
lib: more robust multi-line joining in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
9440664fc4
test: cleaner tests for CSV parser proposal
2019-11-05 21:16:42 +00:00
Dmitry Astapov
09f8d62458
test: example on which recursive interpolation in CSV parser fails
2019-11-05 21:16:42 +00:00
Dmitry Astapov
e4476dd2f1
lib: more robust "unknown" account assignment in csv parser
2019-11-05 21:16:42 +00:00
Dmitry Astapov
294fb4172c
test: recursive interpolation in csv rules ( #500 )
2019-11-05 21:16:42 +00:00
Dmitry Astapov
725bee02f2
test: csv file with multiline description ( #841 , #416 )
2019-11-05 21:16:42 +00:00
Dmitry Astapov
c5bab0ae40
test: added test for #570
2019-11-05 21:16:42 +00:00
Dmitry Astapov
0e1ead74c3
test: update old csv tests for new output format
2019-11-05 21:16:42 +00:00
Dmitry Astapov
a07a084fb7
test: tests for multi-posting CSV import
2019-11-05 21:16:42 +00:00
Simon Michael
312e772468
prices: style price amounts; always show full precision
2019-10-20 07:09:34 -07:00
Simon Michael
f09111b8b9
;prices: convert tests to new format
...
[ci skip]
2019-10-20 05:40:49 -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
6dcddadd9f
;journal: in generated-transaction:/posting: tags, add a space before the value
2019-10-07 14:54:36 -10:00
Simon Michael
39635b2fde
;valuation: test documenting new end-date behaviour ( #1083 )
...
[ci skip]
2019-09-05 21:03:30 -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
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
84100ca91f
;tests: fix query-tag test
2019-07-27 06:51:15 +01:00
Simon Michael
07c4b3e0ab
;tests: consolidate query tests slightly
...
[ci skip]
2019-07-26 23:22:46 +01:00
Simon Michael
0b793bca1b
tags: add --values flag
2019-07-26 23:18:21 +01:00
Simon Michael
35799142dd
Merge pull request #914 from simonmichael/rule-tags
...
tags for matching rule-generated txns and postings
2019-07-17 18:38:14 +01:00
Caleb Maclennan
e68e558761
payees: Split command into descriptions, payees, and notes
2019-07-15 08:22:16 +01:00
Caleb Maclennan
a45b42bed5
payees: Add test for what payees command would be expected to do
2019-07-15 08:22:16 +01:00
Simon Michael
5ceb278296
;journal: tests: note surprising decimal mark parsing
...
[ci skip]
2019-07-09 11:31:56 +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
Simon Michael
3059a0b2ca
;close: tests: convert to new format
...
[ci skip]
2019-07-08 08:57:45 +01:00
Simon Michael
ec56c45c6b
;tests: flatten functional test files a bit
...
[ci skip]
2019-07-08 08:28:03 +01:00
Simon Michael
0557440f14
;tests: move 0unittests up, delete unused examples symlink
...
[ci skip]
2019-07-08 08:02:54 +01:00
Simon Michael
19ba1628bf
;print: more valuation-related tests
...
[ci skip]
2019-07-08 06:00:28 +01:00
Jakob Schöttl
4d76535b6d
Add CLI/shelltest tests for date-options
2019-06-30 10:38:06 +02:00
Simon Michael
016808fd06
;journal: tests for recursive aliases, application order ( #1055 )
...
[ci skip]
2019-06-21 12:16:56 -07:00
Simon Michael
8c7b23e25f
;tests: aliases: convert to shelltest v3 format ( #1055 )
...
[ci skip]
2019-06-19 10:44:57 -07:00
Simon Michael
33d03284c3
;valuation: more tests; document default amount style issue
...
[ci skip]
2019-06-17 08:19:23 -07:00
Caleb Maclennan
18e19b9ad2
;tests: normalize tests, examples, and docs using 2spcs before comments
2019-06-13 12:12:21 -07:00