Printing tax table name in invoice.scm

Bill Keegan billk at umpire.dhs.org
Mon Mar 26 05:50:24 EDT 2007


On 03/26/2007 02:33 AM, Derek Atkins wrote:

>Hi,
>
>Bill Keegan <billk at umpire.dhs.org> writes:
>
>  
>
>>I'm using gnucash 1.8.9. I'd like to print the tax table name for the 
>>tax table applied per line item. The most successful result has been from
>>
>>    
>>
>>>    (if (taxtable-col column-vector)
>>> (addto! row-contents
>>>    (gnc:entry-get-inv-tax-table entry)))
>>>      
>>>
>>resulting in "#[unknown]" (less the quotes) in the new column I've 
>>added. Any advise as well as were I can find the answer would be 
>>appreciated.
>>    
>>
>
>Well, first, this will only work on Customer invoices, not
>Vendor Bills or Employee Expenses.   Second, this returns the
>taxtable, not the NAME of the taxtable.  Third, you would need
>to set up the column (which you dont show in this code snippet).
>
>The "#[unknown]" probably means that it doesn't know how to
>print out the reference to the taxtable.  Right now the
>gncTaxTableGetName() isn't wrapped, so you wont be able to
>use that API until the 2.2 swigification (which probably wraps
>it by default).
>
>-derek
>
>  
>
I understand your points re: 1,2,3 above, right now it's just invoicing 
I'd like to perform and I've butchered a new column. Would I add the new 
wrapper to return the name in gw-business-core-spec.scm and 
gw-business-core.scm?

bill




More information about the gnucash-user mailing list