Changing defaults in Fancy Invoice

Derek Atkins warlord at MIT.EDU
Wed May 9 19:11:28 EDT 2007


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

-- 
       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