How to get tax table value for invoice report?
Derek Atkins
warlord at MIT.EDU
Tue May 25 11:43:04 EDT 2010
Valdis Vītoliņš <valdis.vitolins at odo.lv> writes:
> I need to get name of Tax table name (because I have tax value in name)
> http://code.gnucash.org/docs/HEAD/structGncTaxTable.html
> Or better should be concatenated tax table name, entry amount and type (e.g.
> VAT 21%, or VAT 10%)
> http://code.gnucash.org/docs/HEAD/structGncTaxTableEntry.html
>
> Usually we don't need to sum different tax table entries in one general tax,
> so dealing with
> several entries is hypothetical case and is important only for localizations.
>
> (Or, if I could choose which entry to use from several, I could define one tax
> table "VAT" with entries 0%, 10%, 21%)
Well, really your only option is the tax table name... Keep in mind
that you can have multiple tax table entries on a single tax table (for
multiple taxes, like GST+PST). If you want to list the actual
percentages and accounts then you need to extract the list of tax table
entries and then enumerate them..
Personally I'd recommend just using the tax table name.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list