|
GnuCash 2.4.99
|
Public Member Functions | |
| def | __init__ |
Definition at line 109 of file gnucash_business.py.
| 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 110 of file gnucash_business.py.
00111 : 00112 """TaxTableEntry constructor 00113 00114 You must provide an account, or be initizing this with an existing 00115 swig proxy object via the instance keyword argument. 00116 00117 You may also optionally set the percent keyword argument to False to get 00118 a fixed value instead of percentage based tax (which is the default, or 00119 when percent=True). 00120 00121 The tax will be zero percent or zero unless you set the amount keyword 00122 argument to a GncNumeric value as well. 00123 """ 00124 00125 if instance == None: 00126 if account==None: 00127 raise Exception( 00128 "you must call TaxTableEntry.__init__ with either a " 00129 "account or an existing " 00130 "low level swig proxy in the argument instance") 00131 GnuCashCoreClass.__init__(self) 00132 self.SetAccount(account) 00133 if percent: 00134 self.SetType(GNC_AMT_TYPE_PERCENT) 00135 else: 00136 self.SetType(GNC_AMT_TYPE_VALUE) 00137 if amount != None: 00138 self.SetAmount(amount) 00139 else: 00140 GnuCashCoreClass.__init__(self, instance=instance)
1.7.4