counter number format not used in tax invoice (solved)

Paul de Vries paul.de.vries at xs4all.nl
Thu Jan 18 13:37:11 EST 2018


> (...)

> It sounds like the format you're using is either invalid, or you didn't
> assign it correctly.  What do your invoices say for the Invoice ID when
> you create them in the dialog?

in the dialog for creating a new invoice the number field is blank which would default to the next sequential number in the specified format.

with format '%04d' in the invoice it shows as '000001'.

where can i find the format specification for mac? it is a bsd unix.

SOLVED:

in old mails i see that 'G_INT64_FORMAT' should be used. looking in the sources i saw only 'G_GINT64_FORMAT'.
in glib for osx there is this fragment:

+#ifdef __LP64__
+#define G_GINT64_MODIFIER "l"
+#define G_GINT64_FORMAT "li"
+#define G_GUINT64_FORMAT "lu"
+#else
+#define G_GINT64_MODIFIER "ll"
+#define G_GINT64_FORMAT "lli"
+#define G_GUINT64_FORMAT "llu"
+#endif

and surprise surprise 'F2018-%04li' shows as 'F2018-0001'.

i wonder why 'li' works and 'ld' doesn't.

thanks for your help!
-paul.


More information about the gnucash-user mailing list