GnuCash 2.4.99
Public Member Functions
python-bindings::gnucash_business::Invoice Class Reference
Inheritance diagram for python-bindings::gnucash_business::Invoice:
python-bindings::gnucash_core::GnuCashCoreClass python-bindings::gnucash_business::Bill

Public Member Functions

def __init__

Detailed Description

Definition at line 141 of file gnucash_business.py.


Constructor & Destructor Documentation

def python-bindings::gnucash_business::Invoice::__init__ (   self,
  book = None,
  id = None,
  currency = None,
  owner = None,
  date_opened = None,
  instance = None 
)
Invoice Contstructor

You must provide a book, id, currency and owner
(Customer, Job, Employee, Vendor) or an existing swig proxy object
in the keyword argument instance.

Optionally, you may provide a date the invoice is opened on
(datetime.date or datetime.datetime), otherwise today's date is used.

Definition at line 142 of file gnucash_business.py.

00144                                                  :
00145         """Invoice Contstructor
00146 
00147         You must provide a book, id, currency and owner
00148         (Customer, Job, Employee, Vendor) or an existing swig proxy object
00149         in the keyword argument instance.
00150 
00151         Optionally, you may provide a date the invoice is opened on
00152         (datetime.date or datetime.datetime), otherwise today's date is used.
00153         """
00154         if instance == None:
00155             if book==None or id==None or currency==None or owner==None:
00156                 raise Exception(
00157                     "you must call Invoice.__init__ "
00158                     "with either a book, id, currency and owner, or an existing"
00159                     "low level swig proxy in the argument instance")
00160             GnuCashCoreClass.__init__(self, book)
00161             self.SetID(id)
00162             self.SetCurrency(currency)
00163             self.SetOwner(owner)
00164             if date_opened == None:
00165                 date_opened = datetime.date.today()
00166             self.SetDateOpened(date_opened)
00167         else:
00168             GnuCashCoreClass.__init__(self, instance=instance)


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines