Simon Michael
308c554603
;doc: update CLI usage texts
2021-11-26 05:57:12 -10:00
Simon Michael
aba46874f2
;dev: is: code notes
2021-11-25 11:55:58 -10:00
Simon Michael
7f320ebfa9
imp: balcmds: support --declared on bs/cf/is also ( #1765 )
2021-11-25 11:55:58 -10:00
Simon Michael
6319d6148f
feat: bal: with --declared, include declared leaf accounts ( #1765 )
...
Together with -E, this shows a balance for both used and declared
accounts (excluding empty parent accounts, which are usually not
wanted in list-mode reports).
This is somewhat consistent with --declared in the accounts and payees
commands, except for the leaf account restriction.
The idea of this is to be able to see a useful "complete" balance
report, even when you don't have transactions in all of your declared
accounts yet. I mainly want this for hledger-ui, but there's no harm
in exposing it in the balance CLI as well.
2021-11-23 09:47:04 -10:00
Simon Michael
94d92b9760
Revert "feat: bal: with --declared, include all declared accounts ( #1765 )"
...
This reverts commit a5e19b7391 .
(It breaks filtering by account.)
2021-11-22 12:06:23 -10:00
Simon Michael
a5e19b7391
feat: bal: with --declared, include all declared accounts ( #1765 )
...
Together with -E, this allows showing a balance for all accounts, both
used and declared. I mainly want this for hledger-ui, but there's no
harm in exposing it in the balance command as well. This is somewhat
consistent with the accounts and payees commands.
2021-11-22 11:08:33 -10:00
Simon Michael
6e3695c317
;dev: commodities: note todo
2021-11-22 09:59:49 -10:00
Simon Michael
066a67ad09
;doc: update CLI usage texts
2021-11-20 22:07:40 -10:00
Simon Michael
c709a22c64
imp: stats: also show run time and throughput
...
CliOpts has a new field, progstarttime_.
Currently the new stats are always printed on stdout, ignoring --output-file/--output-format.
2021-11-20 20:51:21 -10:00
Simon Michael
20d8f9f7e2
;doc: bal: fix list formatting
2021-11-18 22:30:03 -10:00
Simon Michael
678d3b0a06
;doc: bal: fix link
2021-11-18 22:28:42 -10:00
Simon Michael
be5e6e4167
;doc: update CLI usage texts
2021-11-18 22:24:59 -10:00
Simon Michael
66b969a74c
;imp: bal --layout: streamline help more ( #1751 )
2021-11-18 21:27:47 -10:00
Stephen Morgan
4b6fe2c0bd
;doc: balance: Update docs to mention --layout.
2021-11-18 21:26:02 -10:00
Stephen Morgan
d82416b7b9
imp: balance: Add single-line display with elision back in, this time
...
with a separate option --layout=wide,WIDTH.
2021-11-18 21:26:02 -10:00
Stephen Morgan
de2776c996
imp!: balance: Stop eliding long amounts. ( #1739 )
...
This feature has caused a lot of confusion, and we now have better ways
of making sure columns don't get too wide.
2021-11-18 21:26:02 -10:00
Stephen Morgan
7e21f05a83
imp: balance: Implement multi-line display for multicommodity balance reports.
...
This allows more control over how multicommodity amounts are displayed.
In addition to the default single-line display, and the recent commodity
column display, we now have multi-line display. This is controlled by
the --layout option, which has possible values "wide", "tall", and
"bare". The --commodity-column option has been hidden, but is equivalent
to --layout=bare.
squash
2021-11-18 21:26:02 -10:00
Stephen Morgan
3dce61ea09
fix: prices: Do not try to generate prices when there would be a zero
...
denominator.
Also correctly generate reverse prices for zero amounts.
2021-11-18 20:59:52 -10:00
Stephen Morgan
f345fd0b78
imp: balance: Allow --related flag for balance reports. ( #1469 )
2021-11-08 14:03:50 -10:00
Stephen Morgan
9d5397deb6
fix: print: auto: The print command should always display inferred
...
amounts for --auto generated postings. (#1276 )
2021-10-31 09:42:58 -10:00
Stephen Morgan
1bc04685b7
pkg: Drop base-compat-batteries dependency.
...
Our supported stackage versions are now new enough that we don't need
any of the compatibility features anymore.
2021-10-31 07:56:07 -10:00
Dmitry Astapov
4b1919de02
fix: roi: use posting dates when available, honor --date2
...
This will not change the results computed for the typical use-case,
just makes "roi" more thorough/consistent by supporting posting dates
when they are provided.
2021-10-11 11:22:46 -10:00
Simon Michael
e4263e69e1
areg: begin respecting --date2: show txns' date2 ( #1731 )
2021-10-10 10:34:45 -10:00
Stephen Morgan
bf3e82f780
imp: pretty: Replace --pretty-tables argument with --pretty=WHEN
...
argument, which takes yes or no. Default is no for now.
2021-09-21 14:53:52 -10:00
Simon Michael
44d494af07
;doc: update CLI usage texts
2021-09-20 16:55:22 -10:00
Stephen Morgan
378df77001
cln: Remove unnecessary normaliseMixedAmount(SquashPricesForDisplay)? functions.
2021-09-20 14:49:34 -10:00
Arjen Langebaerd
c0fd79a40e
fix: extend application of commodity style to prices (except precision) and make --commodity-style a general flag
2021-09-20 08:55:55 -10:00
Stephen Morgan
4cfd3cb590
lib!: Remove GenericSourcePos, and replace it with either SourcePos or
...
(SourcePos, SourcePos).
This has been marked for possible removal for a while. We are keeping
strictly more information. Possible edge cases arise with Timeclock and
CsvReader, but I think these are covered.
The particular motivation for getting rid of this is that
GenericSourcePos is creating some awkward import considerations for
little gain. Removing this enables some flattening of the module
dependency tree.
2021-09-20 08:38:33 -10:00
Stephen Morgan
8a6d824900
imp: csv: sql: Use . as a decimal point in sql output for Print command.
2021-09-18 14:32:21 -10:00
Simon Michael
9dca1dc7b6
imp: prices: use --infer-market-prices instead of --costs
...
This command now reuses the --infer-market-prices flag, and uses
a new --infer-reverse-prices flag, instead of the old
--costs and --inverted-costs flags, which are now deprecated and hidden.
2021-09-18 12:12:31 -10:00
Simon Michael
326d6e8dae
ref: ReportOptions{infer_value_} renamed to infer_prices_
...
For more consistency with the flag name (--infer-market-prices).
And BalancingOpts{infer_prices_} is now infer_transaction_prices_.
2021-09-18 12:12:31 -10:00
Simon Michael
daa9fddec9
imp: cli: --infer-market-price renamed to --infer-market-prices
...
It was too easy to get this wrong, even some of the docs did.
Now either plural or singular spelling works
(since we accept flag prefixes).
2021-09-18 12:12:31 -10:00
Simon Michael
ddec2cedf3
;doc: update CLI usage texts
2021-09-09 14:44:09 -10:00
Stephen Morgan
6905e40c4d
pkg!: cli: Add --today option to explicitly set the current date. ( #1674 )
...
rawOptsTo* in hledger-lib now takes a day as an argument, and does not
live in the IO monad, since it's now pure.
This is so that we can run tests containing future transactions that
won't fail as soon as ‘the future’ actually arrives.
2021-09-09 14:40:39 -10:00
Dmitry Astapov
555a68faa5
fix: roi: rare bug with PnL applied on the first day of investment
2021-09-03 11:02:43 -10:00
Stephen Morgan
8274da81fc
cln: tests: Remove test and tests, which are just aliases for testCase
...
and testGroup.
Replacing these removes a layer of indirection, and reduces the need to
depend on Hledger.Utils.Test.
2021-08-30 16:32:19 -10:00
Stephen Morgan
1ed06f3bc8
pkg!: Remove Hledger.Utils.UTF8IOCompat module.
...
This module does nothing beyond define error' and usageError, which have
been moved to Hledger.Utils.
2021-08-30 15:57:33 -10:00
Stephen Morgan
13206d0b18
cln: Rename balancingOpts to defbalancingopts, to be consistent with definputopts, defreportopts, etc.
2021-08-28 19:12:04 -10:00
Stephen Morgan
35be02a4f3
cln: hlint: Clean up some examples of using sortOn.
2021-08-27 06:13:56 -10:00
Stephen Morgan
32dad455fd
cln: hlint: Clean up section related warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
8bf7c95697
cln: hlint: Clean up Functor related hlint warnings, and NOINLINE warning.
2021-08-27 06:13:56 -10:00
Stephen Morgan
beecb3c9ac
cln: hlint: Clean up list related hlint warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
330c21659f
cln: hlint: Clean up Maybe related hlint warnings.
2021-08-27 06:13:56 -10:00
Stephen Morgan
3431b1b0d9
cln: hlint: Clean up map-fusion related hlint warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
eb6047e81b
cln: hlint: Remove redundant where and lambda warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
71032c637e
cln: hlint: Remove cons warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
46b0745412
cln: hlint: Remove Either and Bifunctor related warnings.
2021-08-26 21:00:35 -10:00
Stephen Morgan
119e20aa36
cln: hlint: Remove guards warning.
2021-08-26 07:23:11 -10:00
Stephen Morgan
fed75c58e9
cln: hlint: Clean up hlint warnings not already ignored in hlint.yaml.
2021-08-25 20:44:36 -10:00
Simon Michael
03db46cc81
;doc: close: mention another cause of non-zero bse
2021-08-24 11:15:26 -10:00