Skip to content

Commit

Permalink
Add doc for account, display_account and account_base variables
Browse files Browse the repository at this point in the history
  • Loading branch information
matclab authored and jwiegley committed Aug 7, 2024
1 parent 4cbd4eb commit 7718901
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/ledger3.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 7718901

Please sign in to comment.