;doc: forecasting: mention --verbose-tags

This commit is contained in:
Simon Michael 2023-05-24 12:37:46 -10:00
parent 5e55258e59
commit 766657cb09

View File

@ -5025,9 +5025,11 @@ Balance changes in 2023-05-01..2023-09-30:
## Forecast tags
The `generated-transaction` tags are added by hledger; they indicate transactions generated by --forecast, and show which rule was responsible. If you ever need to match forecast transactions, you could use `tag:generated-transaction` in a query.
Forecast transactions generated by --forecast have a hidden tag, `_generated-transaction`.
So if you ever need to match forecast transactions, you could use `tag:_generated-transaction` (or just `tag:generated`) in a query.
(The same tag is also present, hidden, with the name `_generated-transaction`. In some automation scenarios you might have previously saved forecasted transactions in the journal, and this hidden tag could be used to match the transactions generated "just now".)
For troubleshooting, you can add the `--verbose-tags` flag. Then, visible `generated-transaction` tags will be added also,
so you can view them with the `print` command. Their value indicates which periodic rule was responsible.
## Forecast period, in detail