BOM Manually insert reference number

Is there a way to manually insert the BOM’s reference number?. When I validate the BOM the system automatically assign a number, but I want it to be a custom number.

image

I know that in the BOM module I can set up customs reference number but I have differents choices depending on what kind of BOM I’m creating, so it cannot work.

This will not work without intervening in the source code…
But I would take my cue from the invoice module, where there are 4 different numberings depending on the invoice type.
see: ~/htdocs/core/modules/facture/mod_facture_mercury.php

These different types for the BOM could then be used with a complimentary field to select the appropriate BOM type and the resulting different numbering types.

Maybe this first hint will help :wink: