Skip to main content

Order history plugin for InvenTree

Project description

License: MIT PyPI Build

InvenTree Order History

An InvenTree plugin for generating historical ordering data.

This plugin provides a number of tools for generating historical ordering data, which can be displayed dynamically in the user interface, or exported to a file for further processing.

Description

The Order History plugin provides historical order information in a number of different contexts throughout the user interface:

Context Screenshot
All Build Orders Build Order History
All Purchase Orders Purchase Order History
Sales Orders for a specific Part Sales Order History

Installation

Via User Interface

The simplest way to install this plugin is from the InvenTree plugin interface. Enter the plugin name (inventree-order-history) and click the Install button:

Install Plugin

Via Pip

Alternatively, the plugin can be installed manually from the command line via pip:

pip install -U inventree-order-history

Note: After the plugin is installed, it must be activated via the InvenTree plugin interface.

Configuration

The plugin can be configured via the InvenTree plugin interface. The following settings are available:

Setting Description
Build Order History Enable display of build order history information
Purchase Order History Enable display of purchase order history information
Sales Order History Enable display of sales order history information
Return Order History Enable display of return order history information
Allowed Group Specify a group which is allowed to view order history information. Leave blank to allow all users to view order history information.

Plugin Settings

Dashboard Widgets

The plugin provides four custom dashboard widgets, each displaying a bar chart of completed orders per month for the rolling 12-month window. Widgets are added from the InvenTree dashboard by clicking Add Widget:

Widget Description
Build Order History Completed build orders per month
Purchase Order History Completed purchase orders per month
Sales Order History Completed sales orders per month
Return Order History Completed return orders per month

Each widget only appears if the corresponding order type is enabled in the plugin settings (e.g. Build Order History must be enabled for the build order widget to be available). If a User Group is configured, only members of that group will see any of the widgets.

Months with no completed orders are shown as zero rather than being omitted, giving a consistent 12-bar view.

Dashboard Widgets

Contributing

Backend

Backend code is written in Python, and is located in the order_history directory.

Frontend

Frontend code is written in JavaScript, and is located in the frontend directory. Read the frontend README for more information.

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

inventree_order_history-1.0.0.tar.gz (189.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inventree_order_history-1.0.0-py3-none-any.whl (193.9 kB view details)

Uploaded Python 3

File details

Details for the file inventree_order_history-1.0.0.tar.gz.

File metadata

  • Download URL: inventree_order_history-1.0.0.tar.gz
  • Upload date:
  • Size: 189.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for inventree_order_history-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6fe45c55b1bafa136b3f784c4e05fb2f4184248f2294709710a6690efa0bb47f
MD5 77d5bf0e856c718c46d97a5aa797037a
BLAKE2b-256 cfdd21c0227d4561e8361b6f5b3cc10abb31ff5ecacc4635d06a0c33ba41d306

See more details on using hashes here.

File details

Details for the file inventree_order_history-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inventree_order_history-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8549eb6f3846978fb94019a9125d3c25dafda475f19bbf10ae37fd0349e72774
MD5 c42887ea77d5e9e768be6913e988b897
BLAKE2b-256 4a7bf088eca818017fd33372e013c2d822e7d80f3cdfa610601e5240483a9ed2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page