def __init__(self,owner=None):
     PropertiesObject.__init__(self,[ 'id', 'name', 'accountholder', 'accountnumber', 'allowincasso', 'owner' ])
     if owner:
         self.owner = owner
         self.id = owner.GetID()
         self.name = owner.GetName()
         sc = StructuredComment(owner.GetNotes())
         self.accountholder = sc.get_string('AccountHolder')
         self.accountnumber = sc.get_int('AccountNumber')
         self.allowincasso = sc.get_bool('AllowIncasso')
 def __init__(self,initial=None):
     PropertiesObject.__init__(self,[ 'description', 'amount', 'invoiceid', 'owner', 'accountholder', 'accountnumber', 'allowincasso' ], initial)
Пример #3
0
 def __init__(self,taxtable=None):
     PropertiesObject.__init__(self,[ 'taxtable', 'name' ])
     if taxtable:
         self.taxtable = taxtable
         self.name = taxtable.GetName()