mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 09:49:06 -06:00
Fixed GetInvoiceFromTxn to convert to the right type of Python object for a GncInvoice.
This commit is contained in:
1 parent
c0d52f93ff
commit
479ecc7b2b
1 file changed
+2
-2
@@ -822,9 +822,9 @@ class Transaction(GnuCashCoreClass):
|
||||
return self.GetSplitList().pop(n)
|
||||
|
||||
def GetInvoiceFromTxn(self):
|
||||
from gnucash.gnucash_business import Transaction
|
||||
from gnucash.gnucash_business import Invoice
|
||||
return self.do_lookup_create_oo_instance(
|
||||
gncInvoiceGetInvoiceFromTxn, Transaction )
|
||||
gncInvoiceGetInvoiceFromTxn, Invoice )
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.Equal(other, True, False, False, False)
|
||||
|
||||
Reference in new issue
Block a user