Consolidated Shipment Lines
This InvenTree plugin provides consolidated line items for Sales Order Shipment reports.
Where multiple stock items are allocated against a single line item in a sales order, this plugin will consolidate those allocations into a single group for the purpose of shipment reporting.
This allows grouping of allocated stock items into a single line item in the shipment report, rather than listing each individual stock item separately.
Installation
InvenTree Plugin Manager
The recommended installation method is via the InvenTree Plugin Manager.
Command Line
To install manually via the command line, run the following command:
pip install inventree-consolidated-shipment-lines
Configuration
... todo ...
Usage
When installed and activated, this plugin will automatically provide the context variable consolidated_line_items to any report template which is associated with a Sales Order Shipment.
This consolidated_line_items variable is a list of Python dict objects, where each element in the list has the folowing structure:
{
"line_item": <SalesOrderLineItem instance>,
"stock_items": [<StockItem instance>, ...],
"quantity": <total quantity allocated>,
"serial_numbers": <serial number string>,
}
The list of consolidated line items can be iterated over in the report template to generate custom reports:
<table>
<thead>
<tr>
<th>Reference</th>
<th>Part</th>
<th>Quantity</th>
<th>Serial Numbers</th>
</tr>
</thead>
<tbody>
{% for entry in consolidated_line_items %}
<tr>
<td>{{ entry.line_item.reference }}</td>
<td>{{ entry.line_item.part.name }}</td>
<td>{{ entry.quantity }}</td>
<td>{{ entry.serial_numbers }}</td>
</tr>
{% endfor %}
</tbody>
</table>
Metadata
Release files for inventree-consolidated-shipment-lines 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inventree_consolidated_shipment_lines-0.3.3.tar.gz | 5.4 kB | Without provenance | Details for inventree_consolidated_shipment_lines-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inventree_consolidated_shipment_lines-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for inventree_consolidated_shipment_lines-0.3.3-py3-none-any.whl |
Total release size: 11.5 kB
Release files / inventree_consolidated_shipment_lines-0.3.3.tar.gz
| Download URL | inventree_consolidated_shipment_lines-0.3.3.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cca50bb7624ff2779c6c61f18e0f202831d2d6fe494c0271a20a0b17c88c638e
|
|
BLAKE2b-256 checksum How to use checksums |
1f857d20dc4c4e4fca9dbbdb58b021b3df77cccd81239def265d3b0b3ce98a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / inventree_consolidated_shipment_lines-0.3.3-py3-none-any.whl
| Download URL | inventree_consolidated_shipment_lines-0.3.3-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b39577ec796f0aa02138f61dae3bb856e113b6bc37c6e56b284d83adc1405583
|
|
BLAKE2b-256 checksum How to use checksums |
ac10743221aee79d2b1dae4c07960ba6f669f02ceb2c756baafe6c487d6f0782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for inventree-consolidated-shipment-lines 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.