[GNC-dev] Fetching invoice tax list and general business information in python

Tim van Osch <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <CACUm6+XEZD_SeS_XbtboOTEcta0R56ydrVbs_DhREEdUcDUysQ@mail.gmail.com>
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.
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.