GnuCash c935c2f+
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
gnucash_business.py File Reference

High level python wrapper classes for the business parts of GnuCash. More...

Go to the source code of this file.

Data Structures

class  python.gnucash_business.GnuCashBusinessEntity
 
class  python.gnucash_business.Customer
 
class  python.gnucash_business.Employee
 
class  python.gnucash_business.Vendor
 
class  python.gnucash_business.Job
 
class  python.gnucash_business.Address
 
class  python.gnucash_business.BillTerm
 
class  python.gnucash_business.TaxTable
 
class  python.gnucash_business.TaxTableEntry
 
class  python.gnucash_business.Invoice
 
class  python.gnucash_business.Bill
 
class  python.gnucash_business.Entry
 

Functions

 python.gnucash_business.decorate_to_return_instance_instead_of_owner (dec_function)
 

Variables

dict python.gnucash_business.owner_dict
 
dict python.gnucash_business.customer_dict
 
dict python.gnucash_business.employee_dict
 
dict python.gnucash_business.vendor_dict
 
dict python.gnucash_business.billterm_dict
 
dict python.gnucash_business.taxtable_dict
 
dict python.gnucash_business.taxtableentry_dict
 
dict python.gnucash_business.invoice_dict
 
dict python.gnucash_business.entry_dict
 

Detailed Description

High level python wrapper classes for the business parts of GnuCash.

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

Definition in file gnucash_business.py.

Function Documentation

◆ decorate_to_return_instance_instead_of_owner()

python.gnucash_business.decorate_to_return_instance_instead_of_owner (   dec_function)

Definition at line 176 of file gnucash_business.py.

176def decorate_to_return_instance_instead_of_owner(dec_function):
177 def new_get_owner_function(self):
178 (owner_type, instance) = dec_function(self)
179 if owner_type == GNC_OWNER_CUSTOMER:
180 return Customer(instance=instance)
181 elif owner_type == GNC_OWNER_JOB:
182 return Job(instance=instance)
183 elif owner_type == GNC_OWNER_EMPLOYEE:
184 return Employee(instance=instance)
185 elif owner_type == GNC_OWNER_VENDOR:
186 return Vendor(instance=instance)
187 else:
188 return None
189 return new_get_owner_function
190

Variable Documentation

◆ billterm_dict

dict python.gnucash_business.billterm_dict
Initial value:
1= {
2 'LookupByName' : BillTerm,
3 'GetDiscount' : GncNumeric,
4 'GetParent' : BillTerm,
5 'ReturnChild' : BillTerm
6 }

Definition at line 299 of file gnucash_business.py.

◆ customer_dict

dict python.gnucash_business.customer_dict
Initial value:
1= {
2 'GetAddr' : Address,
3 'GetShipAddr' : Address,
4 'GetDiscount' : GncNumeric,
5 'GetCredit' : GncNumeric,
6 'GetTerms' : BillTerm,
7 'GetCurrency' : GncCommodity,
8 'GetTaxTable': TaxTable,
9 }

Definition at line 253 of file gnucash_business.py.

◆ employee_dict

dict python.gnucash_business.employee_dict
Initial value:
1= {
2 'GetBook' : Book,
3 'GetAddr' : Address,
4 'GetWorkday' : GncNumeric,
5 'GetRate' : GncNumeric,
6 'GetCurrency' : GncCommodity
7 }

Definition at line 267 of file gnucash_business.py.

◆ entry_dict

dict python.gnucash_business.entry_dict
Initial value:
1= {
2 'GetGUID' : GUID,
3 'GetQuantity': GncNumeric,
4 'GetInvAccount': Account,
5 'GetInvPrice': GncNumeric,
6 'GetInvDiscount': GncNumeric,
7 'GetInvTaxTable': TaxTable,
8 'GetBillAccount': Account,
9 'GetBillPrice': GncNumeric,
10 'GetBillTaxTable': TaxTable,
11 'Copy': Entry,
12 'GetInvoice': Invoice,
13 'GetBill': Invoice
14 }

Definition at line 360 of file gnucash_business.py.

◆ invoice_dict

dict python.gnucash_business.invoice_dict
Initial value:
1= {
2 'GetTerms': BillTerm,
3 'GetCurrency': GncCommodity,
4 'GetToChargeAmount': GncNumeric,
5 'GetPostedLot': GncLot,
6 'GetPostedTxn': Transaction,
7 'GetPostedAcc': Account,
8 'GetTotal': GncNumeric,
9 'GetTotalOf': GncNumeric,
10 'GetTotalSubtotal': GncNumeric,
11 'GetTotalTax': GncNumeric,
12 'PostToAccount': Transaction,
13 'GetBook': Book,
14 }

Definition at line 335 of file gnucash_business.py.

◆ owner_dict

dict python.gnucash_business.owner_dict
Initial value:
1= {
2 'GetGUID' : GUID,
3 'GetCustomer' : Customer,
4 'GetVendor' : Vendor,
5 'GetEmployee' : Employee,
6 'GetJob' : Job,
7 'GetAddr' : Address,
8 'GetCurrency' : GncCommodity,
9 'GetEndOwner': GnuCashBusinessEntity,
10 'GetBalanceInCurrency': GncNumeric,
11 }

Definition at line 231 of file gnucash_business.py.

◆ taxtable_dict

dict python.gnucash_business.taxtable_dict
Initial value:
1= {
2 'GetParent': TaxTable,
3 }

Definition at line 310 of file gnucash_business.py.

◆ taxtableentry_dict

dict python.gnucash_business.taxtableentry_dict
Initial value:
1= {
2 'GetAccount': Account,
3 'GetAmount': GncNumeric,
4 }

Definition at line 319 of file gnucash_business.py.

◆ vendor_dict

dict python.gnucash_business.vendor_dict
Initial value:
1= {
2 'GetAddr' : Address,
3 'GetTerms' : BillTerm,
4 'GetCurrency' : GncCommodity,
5 'GetTaxTable': TaxTable,
6 }

Definition at line 279 of file gnucash_business.py.