GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
python-bindings.gnucash_business.TaxTableEntry Class Reference
Inheritance diagram for python-bindings.gnucash_business.TaxTableEntry:
python-bindings.gnucash_core.GnuCashCoreClass

Public Member Functions

def __init__
 
- Public Member Functions inherited from python-bindings.gnucash_core.GnuCashCoreClass
def do_lookup_create_oo_instance
 

Detailed Description

Definition at line 111 of file gnucash_business.py.

Constructor & Destructor Documentation

def python-bindings.gnucash_business.TaxTableEntry.__init__ (   self,
  account = None,
  percent = True,
  amount = None,
  instance = None 
)
TaxTableEntry constructor

You must provide an account, or be initizing this with an existing
swig proxy object via the instance keyword argument.

You may also optionally set the percent keyword argument to False to get
a fixed value instead of percentage based tax (which is the default, or
when percent=True).

The tax will be zero percent or zero unless you set the amount keyword
argument to a GncNumeric value as well.

Definition at line 112 of file gnucash_business.py.

113  def __init__(self, account=None, percent=True, amount=None, instance=None):
114  """TaxTableEntry constructor
115 
116  You must provide an account, or be initizing this with an existing
117  swig proxy object via the instance keyword argument.
118 
119  You may also optionally set the percent keyword argument to False to get
120  a fixed value instead of percentage based tax (which is the default, or
121  when percent=True).
122 
123  The tax will be zero percent or zero unless you set the amount keyword
124  argument to a GncNumeric value as well.
125  """
126 
127  if instance == None:
128  if account==None:
129  raise Exception(
130  "you must call TaxTableEntry.__init__ with either a "
131  "account or an existing "
132  "low level swig proxy in the argument instance")
133  GnuCashCoreClass.__init__(self)
134  self.SetAccount(account)
135  if percent:
136  self.SetType(GNC_AMT_TYPE_PERCENT)
137  else:
138  self.SetType(GNC_AMT_TYPE_VALUE)
139  if amount != None:
140  self.SetAmount(amount)
141  else:
142  GnuCashCoreClass.__init__(self, instance=instance)

The documentation for this class was generated from the following file: