# BOM Manually insert reference number

**URL:** <https://www.dolibarr.org/forum/t/bom-manually-insert-reference-number/29387>\
**Category:** Other native modules\
**Created:** [September 18, 2024, 1:36pm UTC](https://www.dolibarr.org/forum/t/bom-manually-insert-reference-number/29387 "2024-09-18T13:36:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlycm](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@charlycm](https://www.dolibarr.org/forum/u/charlycm)\
**Post date:** [September 18, 2024, 1:36pm UTC](https://www.dolibarr.org/forum/t/bom-manually-insert-reference-number/29387/1 "2024-09-18T13:36:35Z")

</div>

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](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/d/dc4352e8d8639e3983a88c19874ba8c15312b0e1.png)

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.

---

<div class="post-metadata">

**Author:** ![DG-Rilling](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DG-Rilling](https://www.dolibarr.org/forum/u/DG-Rilling)\
**Post date:** [September 22, 2024, 12:45pm UTC](https://www.dolibarr.org/forum/t/bom-manually-insert-reference-number/29387/2 "2024-09-22T12:45:58Z")

</div>

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:
