Skip to content

Commit 479ecc7

Browse files
committed
Fixed GetInvoiceFromTxn to convert to the right type of Python object for a GncInvoice.
1 parent c0d52f9 commit 479ecc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/python/gnucash_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,9 @@ def GetNthSplit(self, n):
822822
return self.GetSplitList().pop(n)
823823

824824
def GetInvoiceFromTxn(self):
825-
from gnucash.gnucash_business import Transaction
825+
from gnucash.gnucash_business import Invoice
826826
return self.do_lookup_create_oo_instance(
827-
gncInvoiceGetInvoiceFromTxn, Transaction )
827+
gncInvoiceGetInvoiceFromTxn, Invoice )
828828

829829
def __eq__(self, other):
830830
return self.Equal(other, True, False, False, False)

0 commit comments

Comments
 (0)