GnuCash fec5643+
Loading...
Searching...
No Matches
Public Member Functions | Static Protected Attributes
python.gnucash_core.Transaction Class Reference
Inheritance diagram for python.gnucash_core.Transaction:
python.gnucash_core.GnuCashCoreClass

Public Member Functions

 GetNthSplit (self, n)
 
 GetInvoiceFromTxn (self)
 
 __eq__ (self, other)
 
- Public Member Functions inherited from python.gnucash_core.GnuCashCoreClass
 do_lookup_create_oo_instance (self, lookup_function, cls, *args)
 

Static Protected Attributes

str _new_instance = 'xaccMallocTransaction'
 
- Static Protected Attributes inherited from python.gnucash_core.GnuCashCoreClass
 _module = gnucash_core_c
 

Detailed Description

A GnuCash Transaction

Consists of at least one (generally two) splits to represent a transaction
between two accounts.


Has a GetImbalance() method that returns a list of all the imbalanced
currencies. Each list item is a two element tuple, the first element is
the imbalanced commodity, the second element is the value.

Warning, the commodity.get_instance() value can be None when there
is no currency set for the transaction.

Definition at line 867 of file gnucash_core.py.

Member Function Documentation

◆ __eq__()

python.gnucash_core.Transaction.__eq__ (   self,
  other 
)

Definition at line 890 of file gnucash_core.py.

890 def __eq__(self, other):
891 return self.Equal(other, True, False, False, False)
892

◆ GetInvoiceFromTxn()

python.gnucash_core.Transaction.GetInvoiceFromTxn (   self)

Definition at line 885 of file gnucash_core.py.

885 def GetInvoiceFromTxn(self):
886 from gnucash.gnucash_business import Invoice
887 return self.do_lookup_create_oo_instance(
888 gncInvoiceGetInvoiceFromTxn, Invoice )
889

◆ GetNthSplit()

python.gnucash_core.Transaction.GetNthSplit (   self,
  n 
)

Definition at line 882 of file gnucash_core.py.

882 def GetNthSplit(self, n):
883 return self.GetSplitList().pop(n)
884

Field Documentation

◆ _new_instance

str python.gnucash_core.Transaction._new_instance = 'xaccMallocTransaction'
staticprotected

Definition at line 881 of file gnucash_core.py.


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