Changing defaults in Fancy Invoice

Andrew Greig algreig at bigpond.net.au
Thu May 10 19:36:29 EDT 2007


Thanks Derek,

That sorted that out, 10 lines it is, now.  I also found out that if I
change the font size, the rows enlarge to accommodate.  But now my
invoice has spread off the right side of the page.  In the notes
included in the fancy-invoice.scm file, it is suggested that the future
may lie with html templates being supplied by various users, and the
best selected for incorporation into gnc. Is that as easy as it sounds?

I have a current Invoice Template I created in OpenOffice.org for A4
page and DL window-faced envelopes, to make that into an html document
should not be too hard.  Should I proceed down that path?

Thanks
Andrew Greig





On Wed, 2007-05-09 at 19:11 -0400, Derek Atkins wrote:
> Quoting Andrew Greig <algreig at bigpond.net.au>:
> 
> > Thanks Derek,
> >
> > I have searched the file and only found one reference to "24" and that
> > was in the comments at line 335.  The only other thing I found which may
> > be relevant is this:
> >
> > (gnc:register-inv-option
> >   (gnc:make-number-range-option
> >    (N_ "Display") (N_ "Minimum # of entries")
> >    "u" (N_ "The minimum number of invoice entries to display. (-1)") 23
> >    4 23 3 1))
> >
> > How should this be altered, to give me 10 entries? Or am I still on the
> > wrong train?
> 
> Nope, this is the right place.  The API for make-number-range-option
> is defined in src/app-utils/options.scm which says tat those five
> numbers are:  default-value, lower-bound, upper-bound, num-decimals,
> and step-size.  So the default value is 23, the lower bound is 4,
> the upper bound is 23.  I have no idea why the num-decimals is set
> to 3.    So, change that first '23' to '9'.
> 
> Be warned that every time you update gnucash you'll have to make
> these same changes.
> 
> > Andrew Greig
> 
> -derek
> 



More information about the gnucash-user mailing list