[PATCH] stylesheet-fancy.scm and a new 'Easy' Invoice for Gnucash 1.8.9

James Strandboge jamie at tpptraining.com
Thu Jun 17 10:32:34 EDT 2004


On Tue, 2004-06-15 at 12:29, Derek Atkins wrote: 
> James Strandboge <jamie at tpptraining.com> writes:

> > I find this updated stylesheet very useful, but it may be more
> > appropriate to just have this be a separate 3rd stylesheet.
> 
> I agree that this should probably be a third stylesheet...

I have attached a new stylesheet and patch against stylesheets.scm to
add it to gnucash.

> > easy-invoice.scm is a new invoice based on invoice.scm.  Its named 'Easy
> > Invoice' because it is easily configurable, but I am not entirely
> > satisfied with the name, and would be more than happy to change it.  :) 
> > The main features of this invoice (beyond those found in invoice.scm) is
> > that it supports options for displaying My Company (data from
> > File/Properties), invoice width, and an added 'ID String'.
> 
> What kind of options did you add for displaying "My Company"?
> What's the "ID String" and how is it used?
"My Company" has no options other than to display it or not display it. 
When displayed, it shows up on the right hand side, across from the
customer's address and is right justified.  There is a bug in my
previous easy-invoice.scm that is fixed in the attached version (if
File/Properties values are blank, and My Company is selected, the page
errors out).

"ID-String" is simply text (it can be anything) that is displayed on the
right side of the page directly across from "Invoice #."  If left blank,
nothing is displayed, but our company uses the format:

<b><u>Tax ID: 00-0000000</u></b>

as the "ID-String" (incidentally, I was very pleased when I realized
that simple HTML formatting tags like <b>, <i> and others could be used
in Extra Notes and ID-String).  The above entry gives the same
formatting as "Invoice #," but the user can put whatever text he/she
wants there.  Since we use it for our Tax-ID, I just named it
"ID-String," but it certainly can be renamed to something even more
general.

Jamie

-- 
Targeted Performance Partners, LLC
Web: http://www.tpptraining.com
E-mail: jamie at tpptraining.com
Tel: (585) 271-8370
Fax: (585) 271-8373
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stylesheet-easy.scm
Type: text/x-scheme
Size: 11296 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20040617/da1ae076/stylesheet-easy-0001.bin
-------------- next part --------------
--- ./stylesheets.scm.orig	Thu Jun 17 09:35:49 2004
+++ ./stylesheets.scm	Thu Jun 17 09:35:34 2004
@@ -10,3 +10,4 @@
 (use-modules (gnucash main)) ;; FIXME: delete after we finish modularizing.
 (use-modules (gnucash report stylesheet-plain))
 (use-modules (gnucash report stylesheet-fancy))
+(use-modules (gnucash report stylesheet-easy))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: easy-invoice.scm
Type: text/x-scheme
Size: 27770 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20040617/da1ae076/easy-invoice-0001.bin


More information about the gnucash-devel mailing list