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
0720cf9341
csv: doc: note how --rules-file affects all files in command
2017-09-17 13:37:06 -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
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
55cebad0d5
cli: refactor: move commands to a subdirectory, reinstate test command
2017-09-12 10:04:36 -07:00
Simon Michael
3b1637341c
lib: doctests: fix unused import warning
2017-09-08 10:58:13 -07:00
Simon Michael
0175a0231d
lib: make doctests build with ghc 7.10 again
2017-09-08 10:25:42 -07:00
Simon Michael
5ae011b249
lib: add missing parsec lower bound, possibly related to #596 , fpco/stackage#2835
...
[ci skip]
2017-09-06 07:32:13 -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ý
72cf6a8219
lib: Fix filtering by payee and note ( #598 )
2017-09-05 08:37:19 -07:00
Simon Michael
b246d0e990
cf: more restrictive regexp ( #584 )
2017-08-27 08:26:47 -07:00
Christian G. Warden
deaf9cfbef
Exclude Fixed Assets from Cashflow Report
...
Add "fixed" to the regex used to exclude asset accounts from cashflow
reports. Assumes accounts are set up something like:
assets:fixed assets:equipment
assets:fixed assets:vehicles
assets:fixed assets:buildings
2017-08-27 04:41:05 -07:00
Simon Michael
6b6e185827
lib: doc: note #583 issue number
2017-08-26 08:29:53 -07:00
Simon Michael
831ab78a74
lib, cli, ui: allow ansi-terminal 0.7
2017-08-26 07:47:34 -07:00
Simon Michael
f02d35ff39
lib, web: remove obsolete conditionals for old GHC
2017-08-25 17:15:26 -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
3778db9ec7
lib: similar package.yaml whitespace
2017-08-25 16:53:41 -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
d9e72d389e
lib: fix a deps problem in package.yaml breaking test suite with ghc 8.2
2017-08-25 14:39:35 -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
32cc9dc62b
timedot: doc: fix links to journal manual
...
[ci skip]
2017-08-21 17:46:05 -07:00
Simon Michael
1ebf1fec28
timedot: also provide syntax for seconds, days, weeks, months & years
2017-08-21 17:28:57 -07:00
Simon Michael
5cdb60b69b
timedot: allow minutes to be logged as Nm
2017-08-20 13:00:29 -07:00
Simon Michael
16c07c537b
csv: also switch which posting is converted to cost
...
After switching the postings, make sure it's the second which is converted
to cost.
2017-08-15 08:40:52 -07:00
Simon Michael
501634d2e9
doc: journal: makeinfo-version-related encoding change, hopefully correct
2017-08-15 08:18:06 -07:00
Simon Michael
cd589a5e4e
doc: csv: improve CSV conversion tips
...
[ci skip]
2017-08-15 08:17:15 -07:00
Simon Michael
ce5724fee1
csv: switch the order of generated postings, so account1 is first
...
This is subjective, but simplifies things as we'll be adding more than
two postings. Free-form entry templates will allow custom orderings
in future.
2017-08-15 08:16:49 -07:00
Mark Hansen
e98d213ca2
Add link to Visual Studio Code hledger plugin
2017-08-02 05:37:26 -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
f4acef58b1
lib: doctests: refactor, include Text.*
2017-07-31 07:09:57 -07:00
Simon Michael
20442196fb
lib: refactor
2017-07-31 07:09:06 -07:00
Simon Michael
f1c5cce575
lib: another doctests fix, replace wrong haddock char
2017-07-31 07:09:06 -07:00
Simon Michael
dbef13b13f
lib: more consistent deps, fixing doctests with Cabal 2 ( fixes #596 )
2017-07-31 07:09:06 -07:00
Simon Michael
ecfc8224dd
lib: cleanup up megaparsec 6 compat module, simplify error type ( #594 )
2017-07-28 07:53:02 -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
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
8313695306
doc: journal: update sample in generated manuals
2017-07-24 22:19:25 +01:00
Nicholas Niro
93fbc0e989
lib: Fix of a bug with the -H option.
...
This patch fixes a bug that happened when using the -H option on
a period without any transaction. Previously, the behavior was no
output at all even though it should have shown the previous ending balances
of past transactions. (This is similar to previously using -H with -E,
but with the extra advantage of not showing empty accounts)
2017-07-15 08:02:03 +01:00
Nicholas Niro
f0914ff08e
lib: Added a new much more thorough test to MultiBalanceReports.
...
This test makes sure that -H works correctly and it does not show
empty accounts.
2017-07-15 08:02:03 +01:00
Nicholas Niro
9873bcfcba
lib: Added a new transaction to samplejournal.
...
The new entry effectively adds a loan which is placed in the checking account.
This loan is then closed by the "pay off" transaction (which was already
present).
This is mainly to be used as a test point for the -H option; to make
sure -H does not show empty accounts.
All previous tests were changed to reflect the new change.
The documentation of the journal module was updated too.
2017-07-15 08:02:03 +01:00
Nicholas Niro
a7f6b551c5
lib: Implemented a testing context for the module MultiBalanceReports.
...
Of the 2 tests, the first is a simple test on a specific period.
The second is expected to fail at this point until the new upcoming
code to fix the issue with the history option is implemented.
For the record : this issue happens when we use the -H flag for a period
that does not contain any transactions. Currently, the ending balance
values are only taken into account if the current period contains
a Transaction containing one of the previous populated accounts.
For example, if we have a statement on the 2008/01/01 for $1
and we do a command (with -H) to check the value on the
(without transactions) 2008/01/02, we will not get the $1 from
2008/01/01. In that same example, if we had a transaction for the same
account as 2008/01/01 in say 2008/01/03 then the -H command would
successfully show the statement from 2008/01/03 with the initial amount
that we set in 2008/01/01.
2017-07-15 08:02:03 +01:00
Nicholas Niro
fe2a1b35da
lib: Added 2 new tests to BalanceReport.
...
These tests verify the behavior when we input a very specific period.
The second test is meant to make sure that the new upcoming code in
MultiBalanceReports will not change anything in the behavior of
the module BalanceReport.
2017-07-15 08:02:03 +01:00
Nicholas Niro
a204908be6
lib: Added a comment to explain the type MultiBalanceReportTotals
2017-07-15 08:02:03 +01:00
Simon Michael
ee735514fe
doc: update builtin manuals
2017-07-07 02:08:38 +01:00
Simon Michael
b3b33336b4
csv: show the "creating/using rules file" message only with --debug
2017-07-06 14:07:46 +01:00
Simon Michael
e94f04311d
csv: fix multiple includes in one rules file
2017-07-05 16:08:13 +01:00
Simon Michael
6614aab5d7
csv: add newest-first directive for more robust same-day ordering
2017-07-05 15:24:17 +01:00
Simon Michael
5ce66fb0de
doc, site: final 1.3 changelogs, release notes, announcement
...
[ci skip]
2017-07-01 18:56:57 +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
Simon Michael
1d5f3a44d5
lib: debug: add a log0 that writes to debug.log in the current directory
...
Seems to work somewhat, might have some laziness issues.
2017-06-30 19:14:57 +01:00
Simon Michael
41d62d669b
doc: journal: note that transaction code must be parenthesised
2017-06-30 14:49:19 +01:00
David Reaver
a9959b30c2
Fix date of 1.2 release in CHANGES
2017-06-20 08:45:35 -07:00
Simon Michael
59af88b796
ui: add temporary --status-toggles for testing toggle styles ( #564 )
2017-06-18 16:20:30 -07:00
Simon Michael
22e751983b
ui: allow multiple status filters to be active at once ( #564 )
2017-06-15 19:16:39 -07:00
Simon Michael
dcc58d4a2b
lib: rename ClearedStatus type to Status
...
(and fix hard-coded enum count)
2017-06-15 19:16:39 -07:00
Simon Michael
430c49154a
lib: rename Query's Status constructor to StatusQ
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
794647780d
doc: fixes for builtin manuals
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
5d28120f6d
lib: multiple status: query terms are OR'd ( #564 )
...
Like desc: and acct:. I think this is more intuitive and useful,
so now eg "status: status:!" works (equivalent to -UP or "not:status:*").
2017-06-15 19:16:39 -07:00
Simon Michael
7fc921db86
lib, cli: -U/-P/-C flags can be combined ( #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
c5d63f03ce
lib: clean up status functional tests, document ClearedStatus ( #564 )
2017-06-15 19:16:39 -07:00
Simon Michael
dae17093c3
lib: hide successful hunit tests, to avoid obscuring failed doctests ( #568 )
2017-06-07 06:42:58 -07:00
Carel Fellinger
da9aa81ec7
Update AutoTransaction.hs
...
lib: fix unit test some more after 5c095534
2017-06-07 12:56:43 +02:00
Simon Michael
7cc2d86ac0
lib: fix unit tests after 5c095534
2017-06-06 09:43:05 -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
Simon Michael
5c09553481
lib: keep amounts aligned when rendering a transaction with posting flags
...
Related to #563 , when rendering a transaction, we reserve two more chars
of width so that amounts remain aligned when there are posting flags.
Affects hledger-ui's transaction screen, print, hledger-rewrite etc.
2017-06-04 21:26:18 -07:00
Simon Michael
1adc636554
lib: show pending posting flags when rendering a transaction ( fix #563 )
...
This affects hledger-ui's transaction screen, print, hledger-rewrite etc.
A pending flag on postings is now displayed, just like a cleared flag.
Also there will now be a space between flag and account name.
And it's slightly better at aligning amounts, due to now considering
virtual posting parentheses/brackets or something.
2017-06-04 17:54:57 -07:00
Simon Michael
c9e7bbdc7c
clarify recent print changes a bit ( #551 )
2017-05-30 13:57:52 -07:00
Simon Michael
aca7c0d93b
lib: clarify journalBalanceTransactions
2017-05-30 13:57:52 -07:00
Christian G. Warden
d39040c634
Add Support for Rewriting Multipler Postings Into Different Commodities ( #557 )
...
When generating a new posting as a multiple of an existing posting,
support conversion to a different commodity. For example, postings in
hours can be used to generate postings in USD.
Automatic transactions generated from rewrite rules use the commodity,
amount style, and transaction price if the rewrite defines a commodity.
2017-05-30 07:30:15 -07:00
Joe Horsnell
35f77ee5e4
Fix trivial typo (#balance-assertions anchor) in CSV docs. ( #559 )
2017-05-30 07:27:14 -07:00
Simon Michael
dca7ffc10b
doc: journal: meaning of --uncleared, matching tips ( #553 )
...
[ci skip]
2017-05-24 19:17:29 -07:00
Simon Michael
34af40024a
doc: journal: expand transactions/postings/status sections ( #553 )
2017-05-24 17:44:32 -07:00
Simon Michael
a5b545c4eb
doc: clarify some transaction price details
...
- remove inaccurate print examples
- note #551
- note Ledger's fixed price syntax
- note how posting order can affect -B
- edits for clarity
2017-05-22 17:52:14 -07:00
Jan Zerebecki
f403b1e709
Fix link to queries ( #550 )
2017-05-22 07:29:55 -07:00
Simon Michael
5e00d2f31c
csv: refactor ( #548 )
2017-05-14 18:17:56 +09:00
Nicolas Wavrant
309d1ccd59
CsvReader: simplify '-' signs if there exist more than one ( #548 )
...
It prevents hledger to crash later, as it fails to read
amount strings containing more than one '-'
Fix #524
2017-05-14 09:34:33 +09:00
Simon Michael
2de0109953
allow megaparsec 5.3
2017-04-29 17:16:27 -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
9a86c9ee52
lib: begin supporting colour
...
Add some basic helpers for working with ANSI colour codes,
and make strWidth and the various string layout functions aware of them.
2017-04-25 18:27:25 -07:00
Simon Michael
48a84cdd58
lib: note an issue with journalfieldnames ordering
2017-04-19 09:05:21 -07:00
Simon Michael
2ac77338f8
doc: csv tweaks
2017-04-19 09:04:44 -07:00
Dmitry Astapov
c4c4be5fad
Fix parsing of blank/empty balances + testcases ( #539 )
2017-04-18 09:07:30 -07:00
Dmitry Astapov
451f9d7307
"balance" parser for csv reader ( #537 )
...
* "balance" parser for csv reader
* Some docs for
2017-04-14 14:52:03 -07:00
Simon Michael
f9ad13b1c1
doc: journal: drop obsolete info
2017-04-13 08:42:52 -07:00
Simon Michael
d9488ea01b
doc: move cost/market value into general options section
...
[ci skip]
2017-03-31 19:18:17 -07:00