Documents numbering

The regulations enforces generally to have a consistent numbering scheme on you commercial documents like invoices and quote. This scheme have to follow a chronological order. BonneFacture allow you to set a personalised numbering scheme and even to make it match the one of another system so you can use both in parallel. We will clarify theses advanced features.

Numbering format

For each type of document, a numbering scheme is defined on the "User Profile > Messaging Options" page. In this scheme, the array of zeroes represent the counter that will be incremented each time you issue a document of this type. The number of zeroes represents the desired padding. The other characters will not be changed, so you can change INV for IN or add the acronym of your company.

Example:

INV0000 => INV0001, INV0002, INV0003, ...
IN-CW-000 => IN-CW-001, IN-CW-002, IN-CW-003, ...

Generation and usage

The number is generated and allocated, either at the beginning of the edition, or when the document is actually issued to it's recipient. The first option is the simpler to understand. You create document 1, then 2, then 3. But, if you don't sent them in the same order or if you don't send one of the document, the order is disturbed. You can choose the other option by checking the "Generate the message number on issuing" box on the messaging option page.

You can supervise the numbering process as the last and the next numbers are shown on the "User Profile > Messaging Options" page.

Date elements

If you need to add date elements in your scheme to have, for example, INV-2006-2019-10-001 for the first invoice of October 2006-2019. You have to add place-holder codes into your schemes:

  • %d will be replaced by the number of the day,
  • %m will be replaced by the number of the current month, starting 01 for January,
  • %y will be replaced by the last two digits of the year, for example 17,
  • %Y will be replaced by the full year, for example 2006-2019.

Example:

INV-%Y-%m-000 => INV-2006-2019-11-001, INV-2006-2019-11-002, INV-2006-2019-11-003, ...
INV-%y%m%d-00 => INV-171103-01, INV-171103-02, INV-171103-03, ...

Adding recipient acronyms in the numbers is not supported.

Back to home-page.