counter number format not used in tax invoice

Derek Atkins derek at ihtfp.com
Thu Jan 18 10:23:10 EST 2018


Did you create the new invoice AFTER you updated the format?

That format is only used when creating new invoices, which is when the
InvoiceID is created.  The Reports only take what's already in the
invoice.

-derek

On Thu, January 18, 2018 10:17 am, Paul de Vries wrote:
> gnucash 2.6.18 on mac osx
>
> i want the current year as part of the invoice number, so in book options
> i specified the invoice number format as 'F2018-%04d'.
> on the tax invoice the the invoice number is shown as '000001'.
>
> changing the format using %ld %li %lld %lli doesn't change the output so i
> suspect the definition is elsewhere.
>
> a workaround would be to use a format like '2018001', numeric, with
> counter at '2018001', but i want the option for more variations.
>
> how can i do this?
>
>
>
>
>
> searching through the sources i found:
> ./Contents/Resources/share/gnucash/scm/gnucash/report/taxinvoice.eguile.scm:
> (invoiceid (gncInvoiceGetID opt-invoice))
> ./libgnucash/engine/gncInvoice.c:
> const char * gncInvoiceGetID (const GncInvoice *invoice) { if (!invoice)
> return NULL; return invoice->id; }
> but i cannot find where this struct is built. is the printable form stored
> in the database or created at print time?
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-user mailing list