GnuCash  4.11-137-g155922540d+
Functions | Variables
new_book_with_opening_balances.py File Reference

Replicate the account structure of a book and apply basis opening balances from the original. More...

Go to the source code of this file.

Functions

def new_book_with_opening_balances.initialize_split (book, value, account, trans)
 
def new_book_with_opening_balances.record_opening_balance (original_account, new_account, new_book, opening_balance_per_currency, commodity_tuple)
 
def new_book_with_opening_balances.recursivly_build_account_tree (original_parent_account, new_parent_account, new_book, new_commodity_table, opening_balance_per_currency, account_types_to_open)
 
def new_book_with_opening_balances.reconstruct_account_name_with_mnemonic (account_tuple, mnemonic)
 
def new_book_with_opening_balances.find_or_make_account (account_tuple, root_account, book, currency)
 
def new_book_with_opening_balances.choke_on_none_for_no_account (opening_account, extra_string)
 
def new_book_with_opening_balances.create_opening_balance_transaction (commodtable, namespace, mnemonic, new_book_root, new_book, opening_trans, opening_amount, simple_opening_name_used)
 
def new_book_with_opening_balances.main ()
 

Variables

tuple new_book_with_opening_balances.OPENING_DATE = (1, 1, 2011)
 
 new_book_with_opening_balances.ACCOUNT_TYPES_TO_OPEN
 
tuple new_book_with_opening_balances.OPENING_BALANCE_ACCOUNT = ( 'Equity', 'Opening Balances')
 
tuple new_book_with_opening_balances.PREFERED_CURRENCY_FOR_SIMPLE_OPENING_BALANCE = ("CURRENCY", "CAD")
 

Detailed Description

Replicate the account structure of a book and apply basis opening balances from the original.

Author
Mark Jenkins, ParIT Worker Co-operative mark@.nosp@m.pari.nosp@m.t.ca

Definition in file new_book_with_opening_balances.py.

Variable Documentation

◆ ACCOUNT_TYPES_TO_OPEN

new_book_with_opening_balances.ACCOUNT_TYPES_TO_OPEN
Initial value:
1 = set( (
2  ACCT_TYPE_BANK,
3  ACCT_TYPE_CASH,
4  ACCT_TYPE_CREDIT,
5  ACCT_TYPE_ASSET,
6  ACCT_TYPE_LIABILITY,
7  ACCT_TYPE_STOCK,
8  ACCT_TYPE_MUTUAL,
9  ACCT_TYPE_INCOME,
10  ACCT_TYPE_EXPENSE,
11  ACCT_TYPE_EQUITY,
12  ACCT_TYPE_RECEIVABLE,
13  ACCT_TYPE_PAYABLE,
14  ACCT_TYPE_TRADING,
15 ))

Definition at line 90 of file new_book_with_opening_balances.py.