mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-29 12:29:18 +00:00
[plugin] Auto issue orders (#9565)
* Add builtin plugin for auto-issuing orders * Add plugin to auto-issue orders * Add placeholder documentation * Fix typo * Adds image macro - To replace img.html - includes checking if file exists * Fix tooltips * More docs * Adjust plugin settings filters * docs * More docs * More docs * Updates * Less restrictive URL checking * Refactor build order page * Fix typo * Allow 429 * Debug output * More debug * Construct assets dir * Cleanup * Update docs README * Refactoring more pages * Fix image link * Fix SSO settings * Add hook to check for missing settings - Ensure that all settings are documented! * Add missing user settings * Update docstring * Tweak SSO.md * Image updates * More updates * Tweaks * Exclude orders without a target_date * Fix for issuing build orders * Further refactoring * Fixes * Image refactoring * More refactoring * More refactoring * Refactor app images * Fix pathing issues * Suppress some openapidocs warnings in logs (much easier to debug docs build issues) * Fix image reference * Reduce error messages * Fix image links * Fix image links * Reduce docs log output * Ensure settings are loaded before displaying them * Fix for UI test * Fix unit test * Test tweaks
This commit is contained in:
@@ -8,9 +8,7 @@ It may be desirable to track individual stock items, or groups of stock items, w
|
||||
|
||||
Individual stock items can be assigned a batch code, or a serial number, or both, or neither, as requirements dictate.
|
||||
|
||||
{% with id="batch_and_serial", url="stock/batch_and_serial.png", description="Batch and serial number" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
{{ image("stock/batch_and_serial.png", title="Batch and Serial Number Tracking") }}
|
||||
|
||||
Out of the box, the default implementations for both batch codes and serial numbers are (intentionally) simplistic.
|
||||
|
||||
@@ -26,9 +24,7 @@ Multiple stock items may share the same batch code without restriction, even acr
|
||||
|
||||
Batch codes can be generated automatically based on a provided pattern. The default pattern simply uses the current date-code as the batch number, however this can be customized within a certain scope.
|
||||
|
||||
{% with id="batch_code_pattern", url="stock/batch_code_template.png", description="Batch code pattern" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
{{ image("stock/batch_code_template.png", title="Batch code pattern") }}
|
||||
|
||||
#### Context Variables
|
||||
|
||||
@@ -57,17 +53,13 @@ By default, serial numbers must be unique across any given [Part](../part/index.
|
||||
|
||||
However, it is also possible to specify that serial numbers must be globally unique across all types of parts. This is configurable in the settings display (see below):
|
||||
|
||||
{% with id="serial_numbers_unique", url="stock/serial_numbers_unique.png", description="Serial number uniqueness" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
{{ image("stock/serial_numbers_unique.png", title="Serial number uniqueness") }}
|
||||
|
||||
#### Generating Serial Numbers
|
||||
|
||||
When creating a group of serialized stock items, it can be very useful for the user to be able to generate a group of unique serial numbers, with one serial number for each serialized stock item.
|
||||
|
||||
{% with id="serial_next", url="stock/serial_next.png", description="Serial number entry" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
{{ image("stock/serial_next.png", title="Serial number entry") }}
|
||||
|
||||
For a given serial number *schema* (either the in-built schema or a custom schema defined by a plugin), a group (or *range*) of serial numbers can be generated using a number of possible patterns:
|
||||
|
||||
@@ -129,15 +121,11 @@ If a provided serial number (or group of numbers) is not considered valid, an er
|
||||
|
||||
##### Example: Invalid Quantity
|
||||
|
||||
{% with id="serial_error_quantity", url="stock/serial_error_quantity.png", description="Serial number - invalid quantity" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
{{ image("stock/serial_error_quantity.png", title="Serial number - invalid quantity") }}
|
||||
|
||||
##### Example: Duplicate Serial Numbers
|
||||
|
||||
{% with id="serial_error_unique", url="stock/serial_error_unique.png", description="Serial number - duplicate values" %}
|
||||
{% include 'img.html' %}
|
||||
{% endwith %}
|
||||
{{ image("stock/serial_error_unique.png", title="Serial number - duplicate values") }}
|
||||
|
||||
##### Example: Invalid Serial Numbers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user