summaryrefslogtreecommitdiff
path: root/doc/ledger3.texi
diff options
context:
space:
mode:
authormatclab <mathieu@clabaut.net>2024-07-15 16:20:39 +0200
committerJohn Wiegley <johnw@newartisans.com>2024-08-07 09:47:10 -1000
commit771890169d9f2263ad07ddabd592a7acb794f4ef (patch)
tree906eee697d26b1e9ba21cb89d0fecae78997627d /doc/ledger3.texi
parent4cbd4ebbc071793c13e7b1baf33fb521a7e880ad (diff)
downloadfork-ledger-771890169d9f2263ad07ddabd592a7acb794f4ef.tar.gz
fork-ledger-771890169d9f2263ad07ddabd592a7acb794f4ef.tar.bz2
fork-ledger-771890169d9f2263ad07ddabd592a7acb794f4ef.zip
Add doc for account, display_account and account_base variables
Diffstat (limited to 'doc/ledger3.texi')
-rw-r--r--doc/ledger3.texi21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index 8c3ab3e8..fe4cd209 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -8510,6 +8510,19 @@ Assets:Cash ยค 123,45
@end smallexample
@end defun
+@defvar account
+@defvarx a
+@defvarx A
+Return the concerned account.
+
+It may be appended with @code{.note} or @code{.depth} to get either the note
+or the depth of the account
+@end defvar
+
+@defvar account_base
+Return the last part of the account hierarchy.
+@end defvar
+
@defun amount_expr
Return the calculated amount of the posting according to the @option{--amount}
option.
@@ -8573,6 +8586,14 @@ $ ledger -f expr.dat --format "%(date) %(account)\n" reg assets
2015/01/16 Assets:Cash
@end smallexample
+@defvar display_account
+Return the concerned account, surrounded with @code{[]} or @code{()} for
+virtual postings.
+
+It may be appended with @code{.note} or @code{.depth} to get either the note
+or the depth of the account
+@end defvar
+
@defvar display_amount
@defvarx t
@value{FIXME:UNDOCUMENTED}