# Units implementation in dolibarr

**URL:** <https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012>\
**Category:** Talk between Dolibarrians\
**Created:** [March 14, 2022, 9:33am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012 "2022-03-14T09:33:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arre](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/arre/32/2599_2.png) [@Arre](https://www.dolibarr.org/forum/u/Arre)\
**Post date:** [March 14, 2022, 9:33am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/1 "2022-03-14T09:33:20Z")

</div>

Units implementation in dolibarr

Do you need different management units for the same product/service, in different workflows?

Example:  
For my AAA reference,  
buy in “pallet” (of 125m2)  
manage my stocks in “m2”  
sell in “package” (of 1.25 m2)  
consume for a manufacturing to the “kg” (with 1 kg = 0.8 m2) etc… (these unit factors may differ from one reference to another)

_Poll ([view on site](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/1))_

See the topic on github:

> <https://github.com/Dolibarr/dolibarr/issues/20349>
>
> \### Feature Request
> 
> Hi
> 
> On all forums, there is lots of topics about conver…sion, packaging and units for products and service.
> There is a begining of unit implementation with PRODUCT\_USE\_UNITS and in purchase prices.
> 
> I think this would be great to implement :
> \* a real decimal conversion between units in the unit dictionary (not scale) (including time conversion for services?)
> \* allow do define specific conversion for each product/service (replacing dictionary and/or adding new)
> \* allow to visualise any data in dolibarr in any conversion relative to a product/service
> \* use any existing conversion to enter an order/invoice/inventory/BOM... line (with a well designed conversion tool like a "pocket-calculator/translator" for example)
> \* use any existing conversion to setup customer/provider prices
> 
> note : this idea could seem to be too large and could be divided into a simple unit system AND a real implementation of packaging.
> But i don't think so:
> A vendor has to be able to sell a crate of 10 salad or 1 salad, buy 1kg of metaland sell one metter of tube, with different prizes and only one product, without OF or packaging workflow. (there is physically only one stock and no additionnal value converting one to each other)
> There are way more examples all over the forum and each day in industry, services and stores.
> In a next step (not in this project) : a WMS-compatibility (API?) and/or a packaging notion could be added to shipment and receipt.
> 
> Of course, the existing system with only a quantity and no "units" feature have to continue to work.
> 
> I have already ask to the frensch community if this kind of idea would be intersintg:
> https://www.dolibarr.fr/forum/t/sondage-unites-de-stock-vente-achat/39044
> 
> and started functional specifications (it's only the V1 !!)
> https://dzen.art/CDCF\_uniteplus\_V1.pdf
> 
> and consider to promot/explain the project with video, here is a trial : (please do not share, this video will be soon deleted) subtitle available in english.
> https://youtu.be/t8QgxFC\_jP8  
> 
> I know that a really big dev-job, so i will work with a dev compagny which is able to make a such project.
> Actually, i only work for taking advices, communicate about the idea and building spec.
> The project may represent 15-20 days of dev (?) so i want to help a quick implementation with a crowdfunding.
> 
> This post IS NOT to discuss about "how" but only about intereset.
> 
> What main developper of dolibarr (and others :) ) think about that ?
> Should i continue ? stop ? change something ?

See the french discussion :

> **[SONDAGE: unités de stock/vente/achat/](https://www.dolibarr.fr/forum/t/sondage-unites-de-stock-vente-achat/39044)**
>
> Avez vous besoin d’unité de gestion différentes pour un même produit, dans différents workflow ? Exemple : Pour ma référence AAA, j’achète en « palette » (de 125m2) Je gère mes stocks en « m2 » Je vends en « paquet »...

---

<div class="post-metadata">

**Author:** ![Arre](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/arre/32/2599_2.png) [@Arre](https://www.dolibarr.org/forum/u/Arre)\
**Post date:** [March 15, 2022, 5:56pm UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/2 "2022-03-15T17:56:32Z")

</div>

[EDIT: solve a problem with poll in this forum : you can vote if you want now]

---

<div class="post-metadata">

**Author:** ![isoscent](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/isoscent/32/3200_2.png) [@isoscent](https://www.dolibarr.org/forum/u/isoscent)\
**Post date:** [March 16, 2022, 6:36am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/3 "2022-03-16T06:36:04Z")

</div>

Opening the Unit of Measures in Dolibarr making a problem upon creating P.O. as I posted

---

<div class="post-metadata">

**Author:** ![Arre](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/arre/32/2599_2.png) [@Arre](https://www.dolibarr.org/forum/u/Arre)\
**Post date:** [March 17, 2022, 12:49pm UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/4 "2022-03-17T12:49:20Z")

</div>

> [@isoscent](#):
>
> as I posted

where ?

which problem ?

---

<div class="post-metadata">

**Author:** ![isoscent](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/isoscent/32/3200_2.png) [@isoscent](https://www.dolibarr.org/forum/u/isoscent)\
**Post date:** [March 22, 2022, 4:18am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/5 "2022-03-22T04:18:22Z")

</div>

> [@Purchase Order module](https://www.dolibarr.org/forum/t/purchase-order-module/22016):
>
> Something is wrong on the Order Module the line is not displaying so i cannot even validate it. It say Dolibarr is calculating with the Vendors ??? I tried to replicated the activities, I log in to another server for another company, with the same thing I am making PO for auditing. Something is very wrong. cold_sweat

---

<div class="post-metadata">

**Author:** ![Arre](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/arre/32/2599_2.png) [@Arre](https://www.dolibarr.org/forum/u/Arre)\
**Post date:** [April 13, 2022, 8:10am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/6 "2022-04-13T08:10:44Z")

</div>

Hi, here are the V3 functionnal specification.

 ![ENuniteplus_1pourqui](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/6068740d2d900d7fd5faa5699ae83ea6ed1019e5.jpeg)

 ![ENuniteplus_2pourquoi](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/c/c5fb44cee25699559c4f043eb2d273b0313e74db.png)

 ![ENuniteplus_3comment](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/c/c8bf47607ffedb15d174b2997012b2eed2f4508d.png)

 ![ENuniteplus_4non](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/0/01223db48d136549c37890c4049e023b0979569d.png)

---

<div class="post-metadata">

**Author:** ![Arre](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/arre/32/2599_2.png) [@Arre](https://www.dolibarr.org/forum/u/Arre)\
**Post date:** [April 13, 2022, 8:11am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/7 "2022-04-13T08:11:21Z")

</div>

> **[CDCF\_uniteplus\_V3EN.pdf](https://www.dzen.art/CDCF_uniteplus_V3EN.pdf)**
>
> 1422.45 KB

---

<div class="post-metadata">

**Author:** ![Arre](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/arre/32/2599_2.png) [@Arre](https://www.dolibarr.org/forum/u/Arre)\
**Post date:** [April 13, 2022, 8:12am UTC](https://www.dolibarr.org/forum/t/units-implementation-in-dolibarr/22012/8 "2022-04-13T08:12:34Z")

</div>

Feel free to comment/approve/desapprove … 🙂
