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

Public Member Functions

def __init__

Detailed Description

Definition at line 187 of file gnucash_business.py.


Constructor & Destructor Documentation

def python-bindings::gnucash_business::Entry::__init__ (   self,
  book = None,
  invoice = None,
  date = None,
  instance = None 
)
Invoice Entry constructor

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

The optional invoice argument can be set to a Bill or Invoice
that you would like to associate the entry with. You might as well
assign one now, as an Entry can't exist without one, but you can
always use Invoice.AddEntry or Bill.AddEntry later on.

By default, the entry will be set to today's date unless you
override with the date argument.

Definition at line 188 of file gnucash_business.py.

00189                                                                          :
00190         """Invoice Entry constructor
00191         
00192         You must provide a book or be initizing this with an existing
00193         swig proxy object via the instance keyword argument.
00194 
00195         The optional invoice argument can be set to a Bill or Invoice
00196         that you would like to associate the entry with. You might as well
00197         assign one now, as an Entry can't exist without one, but you can
00198         always use Invoice.AddEntry or Bill.AddEntry later on.
00199 
00200         By default, the entry will be set to today's date unless you
00201         override with the date argument.
00202         """
00203         if instance == None:
00204             if book==None:
00205                 raise Exception(
00206                     "you must call Entry.__init__  with either a "
00207                     "book or an existing "
00208                     "low level swig proxy in the argument instance")
00209             GnuCashCoreClass.__init__(self, book)
00210 
00211             if date == None:
00212                 date = datetime.date.today()
00213             self.SetDate(date)
00214             if invoice != None:
00215                 invoice.AddEntry(self)
00216         else:
00217             GnuCashCoreClass.__init__(self, instance=instance)    
00218 
00219 # Owner
00220 GnuCashBusinessEntity.add_methods_with_prefix('gncOwner')


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