How to remove Subtotle and Tax rows from invoice template
Jerry Bond
gbond at rochester.rr.com
Fri Oct 2 10:08:15 EDT 2009
Thanks for the suggestion--again appreciate the response!
"You would needto add new options and then only display the rows if the
option is turned on."
Doubt that I could do that, but may screw around one of these days and
see if I can bork the app! I know I can always edit the exported
invoice in an HTML editor--that's what I have done in the past, but am
now trying to figure out how to avoid that annoying and time-consuming
step.
BTW: I tried both the optional invoice creators listed in the FAQs, but
they do not seem to work any more (on this setup at least) and neither
is particularly user-friendly. It would be nice if someone
knowledgeable would update one of those (I would think the Latex option
was preferable) and create a simple GUI for it.
Record another vote for a new and better invoice module to GnuCash...
Jerry
Derek Atkins wrote:
> Hi,
>
> Jerry Bond <gbond at rochester.rr.com> writes:
>
>
>> Thanks for answering this post!
>>
>> I am working with the Printable Invoice, using a Custom Style Sheet and a
>> modified invoice.scm template (with what I think to be the relevant sections
>> below).
>>
>> Turning that "Totals" item off makes no visible change at all that I can see.
>> What I would like to do is eliminate the rows "Totals" and "Taxes," leaving
>> only "Amount Due."
>>
>> -----
>>
> [snip]
>
>> ; nope, just show the total tax.
>> (add-subtotal-row table used-columns tax-collector
>> "grand-total" (_ "Tax")))
>>
>> (if (and show-payments (not (null? lot)))
>> (let ((splits (sort-list!
>> (gnc-lot-get-split-list lot)
>> (lambda (s1 s2)
>> (let ((t1 (xaccSplitGetParent s1))
>> (t2 (xaccSplitGetParent s2)))
>> (< (xaccTransOrder t1 t2) 0))))))
>> (for-each
>> (lambda (split)
>> (if (not (equal? (xaccSplitGetParent split) txn))
>> (add-payment-row table used-columns
>> split total-collector)))
>> splits)))
>>
>> (add-subtotal-row table used-columns total-collector
>> "grand-total" (_ "Amount Due")))
>>
>
> Looks like there's no option to disable those rows. You would need
> to add new options and then only display the rows if the option is
> turned on.
>
> -derek
>
>
More information about the gnucash-user
mailing list