2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-28 09:03:41 +00:00

[docs] dimensionless units (#11209)

* [docs] dimensionless units

- Closes https://github.com/inventree/InvenTree/issues/11148
- Update docs for creating dimensionless units

* Fix image location
This commit is contained in:
Oliver
2026-01-27 19:31:33 +11:00
committed by GitHub
parent df90934f0c
commit be7c94f979
2 changed files with 21 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -72,6 +72,27 @@ Custom units can be defined to provide a new physical quantity, link existing un
!!! tip "More Info" !!! tip "More Info"
For further information, refer to the [pint documentation](https://pint.readthedocs.io/en/stable/advanced/defining.html) regarding custom unit definition For further information, refer to the [pint documentation](https://pint.readthedocs.io/en/stable/advanced/defining.html) regarding custom unit definition
### Built-in Custom Units
InvenTree provides the following built-in custom units:
| Unit | Description |
| ---- | ----------- |
| `piece` | A single item, dimensionless |
| `each` | A single item, dimensionless |
| `dozen` | Twelve items, dimensionless |
| `hundred` | One hundred items, dimensionless |
| `thousand` | One thousand items, dimensionless |
### Create Custom Units ### Create Custom Units
To view, edit and create custom units, locate the *Physical Units* tab in the [settings panel](../settings/global.md). To view, edit and create custom units, locate the *Physical Units* tab in the [settings panel](../settings/global.md).
### Dimensionless Units
It is possible to define custom dimensionless units. These units can be used to provide context to otherwise dimensionless quantities.
To create a new dimensionless unit, you must enter the literal `1` as the definition of the unit:
{{ image("concepts/unit_dimensionless.png", "Creating a dimensionless custom unit") }}