Provide consolidated line items for Sales Order Shipment reports
Project description
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>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inventree_consolidated_shipment_lines-0.2.0.tar.gz.
File metadata
- Download URL: inventree_consolidated_shipment_lines-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dad483d16cc8023f335aba4e28a932bc752508550c405453f757d4e95cbd3d48
|
|
| MD5 |
886be4809bfe64b6e8e9b1c53ea2bed9
|
|
| BLAKE2b-256 |
e042fbd3cafc3ebc776487dab2073f51f9b27553749e7c8bc68eef6730f0311e
|
File details
Details for the file inventree_consolidated_shipment_lines-0.2.0-py3-none-any.whl.
File metadata
- Download URL: inventree_consolidated_shipment_lines-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78c8ad329baa88c4273fe97bb2c35b5a40d021813f72be33cb539f2b125e0ea
|
|
| MD5 |
a7457f7dae869bd32172998b7ab38e92
|
|
| BLAKE2b-256 |
80b0b0d9aa43f69c45bbd792e0ea4b67f6e99bbbb99fac741843831f8d260265
|