mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
2001-05-17 Dave Peticolas <dave@krondo.com>
* src/doc/design/engine.texinfo: update docs git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4234 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5771ed73ef
commit
a0371f860c
@ -1746,6 +1746,7 @@ In addition to the above, Accounts contain a key-value pair frame.
|
||||
* General Account API::
|
||||
* Account Type API::
|
||||
* Account Getters::
|
||||
* Account Tax API::
|
||||
@end menu
|
||||
|
||||
|
||||
@ -1890,7 +1891,7 @@ engine, but one day it may be!
|
||||
@end deftypefun
|
||||
|
||||
|
||||
@node Account Getters, , Account Type API, Accounts
|
||||
@node Account Getters, Account Tax API, Account Type API, Accounts
|
||||
@subsection Account Getters
|
||||
|
||||
@deftypefun GNCAccountType xaccAccountGetType (Account * @var{account})
|
||||
@ -2024,6 +2025,44 @@ not be modified in any way.
|
||||
@end deftypefun
|
||||
|
||||
|
||||
@node Account Tax API, , Account Getters, Accounts
|
||||
@subsection Account Tax API
|
||||
|
||||
This set of API calls is related to tax information. All accounts have a
|
||||
tax-related boolean flag that can be set or unset. There is an
|
||||
additional set of API calls related to United States taxes that have
|
||||
`US' in the function call names. Future API calls that are specific to
|
||||
other countries should include the appropriate 2-letter country code in
|
||||
the function names.
|
||||
|
||||
@deftypefun gboolean xaccAccountGetTaxRelated (Account * @var{account})
|
||||
Return the tax-related flag of @var{account}.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun void xaccAccountSetTaxRelated (Account * @var{account}, gboolean @var{tax_related})
|
||||
Set the tax-related flag of @var{account}.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun {const char *} xaccAccountGetTaxUSCode (Account * @var{account})
|
||||
Get the US-specific tax code associated with @var{account}, or
|
||||
@code{NULL} if there is none. These codes are internal to GnuCash
|
||||
and currently defined in @file{src/scm/report/txf-export.scm}.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun void xaccAccountSetTaxUSCode (Account * @var{account}, const char * @var{code})
|
||||
Set the US-specific tax code associated with @var{account}.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun {const char *} xaccAccountGetTaxUSPayerNameSource (Account * @var{account})
|
||||
Get the payer name source associated with @var{account}. See
|
||||
@file{src/scm/repot/taxtxf.scm} for details.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun void xaccAccountSetTaxUSPayerNameSource (Account * @var{account}, const char * @var{source})
|
||||
Set the payer name source associated with @var{account}.
|
||||
@end deftypefun
|
||||
|
||||
|
||||
@node Account Groups, GNCBooks, Accounts, Engine
|
||||
@section Account Groups
|
||||
@tindex AccountGroup
|
||||
|
Loading…
Reference in New Issue
Block a user