GnuCash c935c2f+
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 817 of file gnucash_core.py.

Member Function Documentation

◆ __eq__()

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

Definition at line 840 of file gnucash_core.py.

840 def __eq__(self, other):
841 return self.Equal(other, True, False, False, False)
842

◆ GetInvoiceFromTxn()

python.gnucash_core.Transaction.GetInvoiceFromTxn (   self)

Definition at line 835 of file gnucash_core.py.

835 def GetInvoiceFromTxn(self):
836 from gnucash.gnucash_business import Invoice
837 return self.do_lookup_create_oo_instance(
838 gncInvoiceGetInvoiceFromTxn, Invoice )
839

◆ GetNthSplit()

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

Definition at line 832 of file gnucash_core.py.

832 def GetNthSplit(self, n):
833 return self.GetSplitList().pop(n)
834

Field Documentation

◆ _new_instance

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

Definition at line 831 of file gnucash_core.py.


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