mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
Unit check option (#5175)
* Add option to control parameter units * Check setting before validation * Update part parameter settings page * Update unit tests * Update docs
This commit is contained in:
BIN
docs/docs/assets/images/part/part_parameters_enforce.png
Normal file
BIN
docs/docs/assets/images/part/part_parameters_enforce.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
@ -92,6 +92,12 @@ If a part parameter is created with a value which is incompatible with the units
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
|
||||
This behaviour can be disabled if required, so that any parameter value is accepted:
|
||||
|
||||
{% with id="enforce_units", url="part/part_parameters_enforce.png", description="Enforce part parameters" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
|
||||
### Parameter Sorting
|
||||
|
||||
Parameter sorting takes unit conversion into account, meaning that values provided in different (but compatible) units are sorted correctly:
|
||||
|
Reference in New Issue
Block a user