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
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
e927e587e6
lib,cli: auto/forecast/budget option/docs cleanup, consistency
2017-12-31 10:01:18 -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
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
3f124cf123
add, web: suggest implied and declared account names also
2017-12-29 12:19:44 -08:00
Dmitry Astapov
ac80c39535
lib: command-line help for --auto/--forecast matches docs
2017-12-14 17:20:07 -08:00
Simon Michael
b425e50ad1
change paths in code, scripts, readme
2017-12-06 18:16:35 -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
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
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
5de51c9bad
fix warnings/errors found by make stacktest
2017-09-30 13:00:22 -10:00
Simon Michael
3e866563d1
cli: tweak commands list
2017-09-30 06:58:25 -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
b5602fd771
bal: --sort-amount sorts tree-mode multi-column balance reports
2017-09-29 18:49:47 -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
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
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
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
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
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
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
d8696c5ea0
cli: clearer command-line help for --date2 ( fixes #604 )
2017-08-21 17:19:06 -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
69c41cdd99
cli, help: usage tweaks
...
[ci skip]
2017-07-08 08:34:45 +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
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
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
eb42ea04e5
use consistent UPC order for --unmarked/--pending/--cleared ( #564 )
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
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
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
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
6c2d2c0a6a
bal: cleanup
...
[ci skip]
2017-04-25 19:39:09 -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
e105cdee98
bs/cf/is: more informative usage, mention begin date ( #518 )
2017-03-31 17:41:25 -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