Dmitry Astapov
d5801f382c
test: reordered cases in rules parser change error msg
2020-06-22 12:10:47 -07:00
Dmitry Astapov
ed01e57b23
lib: tabular rules separator cannot be space
2020-06-22 12:10:47 -07:00
Dmitry Astapov
c397b90b5b
lib: memoize "if blocks that assign filed f" for 50% CSV reader speedup
2020-06-22 12:10:47 -07:00
Dmitry Astapov
834e9ec104
lib: condition tables in csv rules + tests
2020-06-22 12:10:47 -07:00
Simon Michael
784d882e01
csv: combine amount assignments better, fix 1.17.1 regression ( #1226 )
2020-04-16 19:04:36 -07:00
Simon Michael
a1361ecc04
csv: don't force a second posting with amount1
...
A rewrite and simplification of the posting-generating code. The
"special handling for pre 1.17 rules" should now be less noticeable.
amount1/amount2 no longer force a second posting or explicit amounts
on both postings. (Only amount/amount-in/amount-out do that.)
Error messages and handling of corner cases may be more robust, also.
2020-03-16 16:18:58 -07:00
Simon Michael
7564963a62
;csv: tests documenting some current surprises
2020-03-10 15:01:55 -07:00
Simon Michael
ababccd8e0
;tests: rename hledger-csv -> csvtest.sh
2020-03-09 15:13:37 -07:00
Simon Michael
02f2e3bd9b
csv: refine unknown accounts more thoroughly, a better fix for #1192
2020-02-26 22:45:49 -08:00
Simon Michael
58bb0df5ab
csv: undo failed #1192 fix, causing "_unknown_" accounts; refactor
...
Restore the old logic, while also trying to clarify this
transaction-generating code, and add some tests.
See also #1198 .
2020-02-26 21:46:11 -08:00
Simon Michael
d537f1fe07
csv: allow single field matching; more docs and tests
2020-02-26 08:55:55 -08:00
Simon Michael
017d3355f8
csv: allow manual assignment of "expenses:unknown" again ( fix #1192 )
2020-02-15 13:52:59 -08:00
Brian Wignall
e12b0a4f05
Get "make functest" working again
2020-01-07 15:58:54 -08:00
Brian Wignall
28f9f043e5
Get "make functest" (mostly) working again
2020-01-07 15:58:54 -08:00
Aleksandar Dimitrov
8df4e1ed83
Remove --separator command line argument
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
93c27891f2
Fix numbering in csv.test
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
02d9205af7
Allow separator to be overridden from command line
...
This also fixes that parsing separators on the command line and the
rules file was not handled the same way.
2020-01-05 14:45:57 -08:00
Aleksandar Dimitrov
8163053027
Add functional test
2020-01-05 14:45:57 -08:00
Simon Michael
8b4ae4cd43
;csv: another commented test for auto-generation of balancing posting
...
and remove some junk.
[ci skip]
2019-11-23 12:54:34 -08:00
Simon Michael
464983f99a
;csv: add some commented tests for #1111/#1133
...
[ci skip]
2019-11-23 12:26:22 -08:00
Dmitry Astapov
aa051a05cf
lib: support generation of (un)balanced virtual postings in csv reader
2019-11-23 10:28:10 -08:00
Dmitry Astapov
e49da20f8c
test: balance-style -> balance-type
2019-11-13 09:06:25 -08:00
Dmitry Astapov
39bc183340
lib: csv reader gets balance-style directive
2019-11-13 09:06:25 -08:00
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
ec56c45c6b
;tests: flatten functional test files a bit
...
[ci skip]
2019-07-08 08:28:03 +01:00