Re: invoice counter without leading zeroes

Derek Atkins derek at
Sat Jun 8 10:06:21 EDT 2013

And what exactly did you use for 'x'? Because 'x' is not a valid printf operator for 64-bit int.  Try using '%ld'


Sent from my HTC smartphone

----- Reply message -----
From: "Gour" <gour at>
To: <gnucash-user at>
Subject: invoice counter without leading zeroes
Date: Sat, Jun 8, 2013 9:07 AM

On Sat, 08 Jun 2013 08:06:28 -0400
"Derek Atkins" <derek at> wrote:

> You didn't say what you tried to put into the field....

e.g. x/BO1/BU1 where 'x' should be natural intereger denoting invoice
number without leading zeroes, although even getting just invoice
number without leading zeroes could be good-enough if we plan to use /jeffs-gnucash-utils to tweak invoice template

> Also note that it will only affect new invoices.

That's also good to know. Let me try creating some new invoices...


Even the intelligent are bewildered in determining what is action 
and what is inaction. Now I shall explain to you what action is, 
knowing which you shall be liberated from all misfortune. | Hlapicina (Croatia) | GPG: 52B5C810

A person is considered still further advanced when he regards honest 
well-wishers, affectionate benefactors, the neutral, mediators, the
envious, friends and enemies, the pious and the sinners all with an
equal mind. | Hlapicina (Croatia) | GPG: 52B5C810

gnucash-user mailing list
gnucash-user at
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

More information about the gnucash-user mailing list