GnuCash
5.6-150-g038405b370+
|
Recurse over all accounts in a book and marks the first one having target_account_code as tax related. More...
Go to the source code of this file.
Functions | |
def | change_tax_code.mark_account_with_code_as_tax_related (account, target_code) |
Variables | |
string | change_tax_code.TARGET_ACCOUNT_CODE = '1234' |
change_tax_code.gnucash_session = Session("/home/mark/python-bindings-help/test.xac") | |
Recurse over all accounts in a book and marks the first one having target_account_code as tax related.
Definition in file change_tax_code.py.
def change_tax_code.mark_account_with_code_as_tax_related | ( | account, | |
target_code | |||
) |
Looks at account to see if it has the target_account_code, if so set the account tax related flag to True and return True. If not, recursively tries to do the same to all children accounts of account. Returns False when recursion fails to find it.
Definition at line 12 of file change_tax_code.py.