[GNC-dev] Fetching invoice tax list and general business information in python
Tim van Osch
timvanosch at pollex.nl
Wed Oct 12 06:41:54 EDT 2022
Hey everyone,
I would like to render my invoice using the python bindings but I am having
two issues.
The main issue I am having is getting the tax values of an invoice per tax
table. Something like this:
*VAT 21% *€152.00
*VAT 6% *€23.00
I found the method: Invoice.GetTotalTaxList() which is expected to return
an AccountValueList. Unfortunately in the python bindings it returns a list
of _gnc_monetary, which I think is a wrong/incomplete typing.
Does anyone know how I can fetch the tax values per table for an invoice in
Python?
The second issue is retrieving the "general" information about my business
(name, address, tax number, etc). I think the term for this data is slots.
So the question is, how/can I read slots through the python bindings?
Thank you.
Sincerely,
Tim van Osch.
More information about the gnucash-devel
mailing list