Shipment Sheet re-Validation Bug

I have a bug where setting a shipment back to draft status, then re-validating it, corrupts the shipment sheet number.

Description of the bug is as follows.

  • Validate shipment sheet
    • Generates shipment number in custom format [ACSxxxxx]
  • Set shipment sheet back to draft
  • Make changes
  • Re-Validate Shipment sheet
    • shipment sheet number has now changed to [EXPxxx]

Does anyone know what’s causing this or how to fix it?

Ta.

which dolibarr version? and do you have any pictures of this?

Which php version is probably needed too.

You can find the information in Home → Admin Tools in left side menu

I would also recommend that you post your bug here on github

Dolibar version is 18.0.3
PHP version 7.3.33

I don’t have any pictures of the bug currently. I have ‘fixed’ the errors by deleting the shipment and re-creating it to force it to auto generate the correct shipment number.

so you can not reproduce the bug? that is unfortunate.

At first I thought that that PHP version was too old, but then I checked here and the minimum php version is 7.1, so it should not be that.

I can reproduce it but I would need process a shipment, and I am trying not validate shipments until I am satisfied they are correct.

Found a solution of GitHub!

https://github.com/Dolibarr/dolibarr/commit/75a7d0de9b7efb8999de58712226e150973b1b7f

Yes, it’s included on V18.0.4