GnuCash 7574033+
Loading...
Searching...
No Matches
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 871 of file gnucash_core.py.

Member Function Documentation

◆ __eq__()

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

Definition at line 894 of file gnucash_core.py.

894 def __eq__(self, other):
895 return self.Equal(other, True, False, False, False)
896

◆ GetInvoiceFromTxn()

python.gnucash_core.Transaction.GetInvoiceFromTxn ( self)

Definition at line 889 of file gnucash_core.py.

889 def GetInvoiceFromTxn(self):
890 from gnucash.gnucash_business import Invoice
891 return self.do_lookup_create_oo_instance(
892 gncInvoiceGetInvoiceFromTxn, Invoice )
893

◆ GetNthSplit()

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

Definition at line 886 of file gnucash_core.py.

886 def GetNthSplit(self, n):
887 return self.GetSplitList().pop(n)
888

Field Documentation

◆ _new_instance

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

Definition at line 885 of file gnucash_core.py.


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