GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
python.gnucash_business.TaxTableEntry Class Reference
Inheritance diagram for python.gnucash_business.TaxTableEntry:

Public Member Functions

 __init__ (self, account=None, percent=True, amount=None, instance=None)
 

Detailed Description

Definition at line 111 of file gnucash_business.py.

Constructor & Destructor Documentation

◆ __init__()

python.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.

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

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