From 771890169d9f2263ad07ddabd592a7acb794f4ef Mon Sep 17 00:00:00 2001 From: matclab Date: Mon, 15 Jul 2024 16:20:39 +0200 Subject: Add doc for account, display_account and account_base variables --- doc/ledger3.texi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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} -- cgit v1.2.3