How to remove Subtotle and Tax rows from invoice template
Derek Atkins
warlord at MIT.EDU
Fri Oct 2 09:45:29 EDT 2009
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
--
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-user
mailing list