;doc: update command help

This commit is contained in:
Simon Michael 2023-08-22 08:40:46 +01:00
parent 5f1bf0404a
commit 95b67ef86b
4 changed files with 27 additions and 19 deletions

View File

@ -457,7 +457,7 @@ or one of the equivalent simpler flags:
- -V/--market : like --value=end - -V/--market : like --value=end
- -X COMM/--exchange COMM : like --value=end,COMM - -X COMM/--exchange COMM : like --value=end,COMM
See Cost reporting and Valuation for more about these. See Cost reporting and Value reporting for more about these.
Combining balance report types Combining balance report types
@ -808,7 +808,7 @@ Period of generated transactions:
- possibly restricted by a period specified in the periodic - possibly restricted by a period specified in the periodic
transaction rule. transaction rule.
Data layout Balance report layout
The --layout option affects how balance reports show multi-commodity The --layout option affects how balance reports show multi-commodity
amounts and commodity symbols, which can improve readability. It can amounts and commodity symbols, which can improve readability. It can
@ -914,6 +914,11 @@ Examples:
"total","VEA","36.00" "total","VEA","36.00"
"total","VHT","294.00" "total","VHT","294.00"
- Note: bare layout will sometimes display an extra row for the
no-symbol commodity, because of zero amounts (hledger treats zeroes
as commodity-less, usually). This can break hledger-bar confusingly
(workaround: add a cur: query to exclude the no-symbol row).
- Tidy layout produces normalised "tidy data", where every variable - Tidy layout produces normalised "tidy data", where every variable
has its own column and each row represents a single data point. See has its own column and each row represents a single data point. See
https://cran.r-project.org/web/packages/tidyr/vignettes/tidy-data.html https://cran.r-project.org/web/packages/tidyr/vignettes/tidy-data.html

View File

@ -29,9 +29,9 @@ commands, including check:
- parseable - data files are well-formed and can be successfully - parseable - data files are well-formed and can be successfully
parsed parsed
- balancedwithautoconversion - all transactions are balanced, - autobalanced - all transactions are balanced, after converting to
inferring missing amounts where necessary, and possibly converting cost. Missing amounts and missing costs are inferred automatically
commodities using costs or automatically-inferred costs where possible.
- assertions - all balance assertions in the journal are passing. - assertions - all balance assertions in the journal are passing.
(This check can be disabled with -I/--ignore-assertions.) (This check can be disabled with -I/--ignore-assertions.)
@ -46,8 +46,9 @@ check:
- commodities - all commodity symbols used have been declared - commodities - all commodity symbols used have been declared
- balancednoautoconversion - transactions are balanced, possibly using - balanced - all transactions are balanced after converting to cost,
explicit costs but not inferred ones without inferring missing costs. If conversion costs are required,
they must be explicit.
Other checks Other checks
@ -60,7 +61,7 @@ therefore optional:
- payees - all payees used by transactions have been declared - payees - all payees used by transactions have been declared
- recentassertions - all accounts with balance assertions have a - recentassertions - all accounts with balance assertions have a
balance assertion no more than 7 days before their latest posting balance assertion within 7 days of their latest posting
- tags - all tags used by transactions have been declared - tags - all tags used by transactions have been declared
@ -83,13 +84,13 @@ Cookbook -> Scripting.
More about specific checks More about specific checks
hledger check recentassertions will complain if any balance-asserted hledger check recentassertions will complain if any balance-asserted
account does not have a balance assertion within 7 days before its account has postings more than 7 days after its latest balance
latest posting. This aims to prevent the situation where you are assertion. This aims to prevent the situation where you are regularly
regularly updating your journal, but forgetting to check your balances updating your journal, but forgetting to check your balances against the
against the real world, then one day must dig back through months of real world, then one day must dig back through months of data to find an
data to find an error. It assumes that adding a balance assertion error. It assumes that adding a balance assertion requires/reminds you
requires/reminds you to check the real-world balance. That may not be to check the real-world balance. (That may not be true if you
true if you auto-generate balance assertions from bank data; in that auto-generate balance assertions from bank data; in that case, I
case, I recommend to import transactions uncleared, then use the recommend to import transactions uncleared, and when you manually review
manual-review-and-mark-cleared phase as a reminder to check the latest and clear them, also check the latest assertion against the real-world
assertions against real-world balances. balance.)

View File

@ -61,6 +61,8 @@ certain date.
Note deduplication (and updating of state files) can also be done by Note deduplication (and updating of state files) can also be done by
print --new, but this is less often used. print --new, but this is less often used.
Related: CSV > Working with CSV > Deduplicating, importing.
Import testing Import testing
With --dry-run, the transactions that will be imported are printed to With --dry-run, the transactions that will be imported are printed to

View File

@ -54,7 +54,7 @@ $ hledger print assets:cash | hledger -f- -I reg expenses:food
There are some situations where print's output can become unparseable: There are some situations where print's output can become unparseable:
- Valuation affects posting amounts but not balance assertion or - Value reporting affects posting amounts but not balance assertion or
balance assignment amounts, potentially causing those to fail. balance assignment amounts, potentially causing those to fail.
- Auto postings can generate postings with too many missing amounts. - Auto postings can generate postings with too many missing amounts.
- Account aliases can generate bad account names. - Account aliases can generate bad account names.