Changing defaults in Fancy Invoice

Andrew Greig algreig at bigpond.net.au
Thu May 10 20:44:30 EDT 2007


Touche, Derek.

Which O'Reilly book will I have to wade through.  A google for eguile
has revealed a lot of stale info (circa 2002).  Is there a good online
source of info of which you are aware?

Surf's up, jump in.

Andrew Greig






On Thu, 2007-05-10 at 20:31 -0400, Derek Atkins wrote:
> Well, it will require a little scheme hacking..  It depends on your
> definition of being a programmer.  I mean, you've already made changes
> to the source code in your current work, so by MY definition you ARE
> a programmer..
> 
> -derek
> 
> Quoting Andrew Greig <algreig at bigpond.net.au>:
> 
> > Derek,
> >
> > Does one need to be a programmer to take this path?  I would be happy to
> > contribute (my current involvement with things OpenSource, is to be a
> > distributor of OOo) but I am not a programmer.  The learning may be fun
> > though.
> >
> > Andrew Greig
> >
> >
> >
> >
> >
> >
> > On Thu, 2007-05-10 at 19:42 -0400, Derek Atkins wrote:
> >> Invoice "templates" would require something along the lines of eguile.
> >> Such integration of eguile hasn't happened.   I SUSPECT that it would
> >> only require work in scheme to get it to work, but I don't know for sure.
> >> If you want to work on eguile integration I'd be happy to encourage you :)
> >>
> >> -derek
> >>
> >> Quoting Andrew Greig <algreig at bigpond.net.au>:
> >>
> >> > 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