Hi,
I'm building an application that uses data stored by gnucash. The
application is build on the python bindings. I'm extracting a subset of the
attributes of invoices and related entries but I cannot find a way to
extract the VAT value. The data I'm working on contains only percentages. I
can get the amount and the TaxTable but other operations fail with this
message:
TypeError: in method 'gncTaxTableEntryGetAmount', argument 1 of type
'GncTaxTableEntry const *'
Here's the calls I'm using:
import pprint
tt = session.book.TaxTableLookupByName('HOOG')
pprint.pprint(tt.EntryGetAmount())
I expected a TaxTable to consist of multiple TaxTableEntries, but this is
what I get when I retrieve the entries using tt.GetEntries():
[<gnucash.gnucash_core_c._gnc_monetary; proxy of <Swig Object of type
'_gnc_monetary *' at 0xb491a3c8> >]
What is the correct way of getting the VAT value? I really wouldn't like to
resort to a calculation.
Thanks, Bas
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel