mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;doc:areg,ui: note how separately-dated postings get combined
This commit is contained in:
parent
8bfde51ae8
commit
7970ce7434
@ -266,6 +266,12 @@ Each line represents one transaction, and shows:
|
||||
- or the historical total, which includes any undisplayed transactions before the start of the report period (and matching the filter query if any).
|
||||
This will be the running historical balance (what you would see on a bank's website, eg) if not disturbed by a query.
|
||||
|
||||
Note, this screen combines each transaction's in-period postings to a
|
||||
single line item, dated with the earliest in-period transaction or
|
||||
posting date (like hledger's `aregister`). So custom posting dates can
|
||||
cause the running balance to be temporarily inaccurate.
|
||||
(See [hledger manual > aregister and posting dates](hledger.md#aregister-and-posting-dates).)
|
||||
|
||||
Transactions affecting this account's subaccounts will be included in the register
|
||||
if the accounts screen is in tree mode,
|
||||
or if it's in list mode but this account has subaccounts which are not shown due to a depth limit.
|
||||
|
@ -64,16 +64,19 @@ This command also supports the
|
||||
[output format](hledger.html#output-format) options.
|
||||
The output formats supported are `txt`, `csv`, and `json`.
|
||||
|
||||
### aregister and custom posting dates
|
||||
### aregister and posting dates
|
||||
|
||||
Transactions whose date is outside the report period can still be
|
||||
shown, if they have a posting to this account dated inside the report
|
||||
period. (And in this case it's the posting date that is shown.)
|
||||
This ensures that `aregister` can show an accurate historical running
|
||||
balance, matching the one shown by `register -H` with the same
|
||||
arguments.
|
||||
aregister always shows one line (and date and amount) per transaction.
|
||||
But sometimes transactions have postings with different dates. Also,
|
||||
not all of a transaction's postings may be within the report period.
|
||||
To resolve this, aregister shows the earliest of the transaction's
|
||||
date and posting dates that is in-period, and the sum of the in-period
|
||||
postings. In other words it will show a combined line item with just
|
||||
the earliest date, and the running balance will (temporarily, until
|
||||
the transaction's last posting) be inaccurate. Use `register -H` if
|
||||
you need to see the individual postings.
|
||||
|
||||
To filter strictly by transaction date instead, add the `--txn-dates`
|
||||
flag. If you use this flag and some of your postings have custom
|
||||
dates, it's probably best to assume the running balance is wrong.
|
||||
There is also a `--txn-dates` flag, which filters strictly by
|
||||
transaction date, ignoring posting dates. This too can cause an
|
||||
inaccurate running balance.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user