SaleOrder pdf is created before the sequence

Hello,
So I’m bit of an issue, I created a sequence for my Sales, the thing is when I finalize the sale,
it uses an arbitrary number (maybe the number of previous Sale Order created)


But when I do a version 2, it is the right thing

I don’t want to do a 2 version each time to have my sequence number right, is it a bug ?

Thank you !

Hello,

As long as the file is in the « Draft quotation » status, the sequence number is not assigned : the number # 4 which appears is the unique identifier of the object in the database.

In the « Draft quotation » status, there is no PDF report stored in the Documents area (see paper clip)
You must change the status of the file, by clicking on the « Finalize » button

In the « Finalized quotation » state, there is at least one PDF report stored in the Documents area (see paper clip)

When making a new version, another document appears in the Documents area (see paper clip)

When you click on paper clip, you get the two official PDF documents which both carry the official sequence SO0011.

There was only one record in database with the id n ° 4

Best Regards,
PakMax