Problems with gncTaxTableGetEntries in Guile

Chris Dennis cgdennis at btinternet.com
Tue Feb 24 10:54:22 EST 2009


Derek Atkins wrote:
> Chris Dennis <cgdennis at btinternet.com> writes:
> 
>> I've grep'ed fairly thoroughly through the source, and I can't find
>> anything obviously wrong.  business-core.i includes gncTaxTable.h, which
>> has the line
>>
>>    GList *gncTaxTableGetEntries (const GncTaxTable *table);
> 
> We might need to do something like:
> 
> typedef GList* GncTaxTableEntryList;
> 
> Then change this to return a GncTaxTableEntryList.

I'll give that a go.

> And then add a Swig type for GncTaxTableEntryList that defines it
> to be a list-of GncTaxTableEntry*.

I don't know where that's defined.  Can you point me to the file to be 
changed?

> 
>> Is there anywhere else that defines the SWIG wrapper?
> 
> Probably not.. I bet it's getting confused by the GList*.
> 
>> I'd like to be able to include details of the tax (specifically VAT)
>> charged on each line of the invoice, e.g.
>>
>>      Description   Qty   VATrate   UnitPrice       VAT    Total
>>      Book            1       0%       £20.00     £0.00   £20.00
>>      Computer        1      15%      £100.00    £15.00  £115.00
> 
> Wow, umm....   That's extrememly detailed!  Are you sure you need
> all that information?

Yes.  That's typical of many invoices in the UK.

> 
>> cheers
>>
>> Chris
> 
> -derek
> 

cheers

Chris

-- 
Chris Dennis                                  cgdennis at btinternet.com
Fordingbridge, Hampshire, UK


More information about the gnucash-devel mailing list