Skip to main content

Generate component shortfall reports

Project description

License: MIT PyPI PEP

Component Shortfall

An InvenTree plugin for generating component shortfall reports.

Description

The Component Shortfall plugin calculates which components are insufficient to fulfil outstanding demand. It aggregates requirements from open sales orders and active build orders, then traverses each assembly's BOM recursively to determine sub-component requirements.

For each component it computes:

Shortfall = Required − Stock on Hand − On Order − In Production

Results are exported as an .xlsx file and can also be emailed automatically on a configurable schedule.

Installation

Via User Interface

Install from the InvenTree plugin interface using the package name inventree-component-shortfall.

Via Pip

pip install -U inventree-component-shortfall

Note: After installation the plugin must be activated via the InvenTree plugin interface.

Configuration

Setting Description
Hide No Shortfall Omit components with zero shortfall from the report (default: enabled)
Shortfall Report Days How often (in days) the scheduled report runs; set to 0 to disable (default: 7)
Shortfall Report Group User group that receives periodic email reports
Shortfall Horizon (Months) Only consider orders due within this many months; orders with no due date are always included; set to 0 for no limit (default: 12)

Usage

Dashboard Widget

A Shortfall Report dashboard item is available in the InvenTree UI. Click Generate to run the report on demand. The report can optionally be filtered by part category.

The generated .xlsx file contains the following columns for each component:

Column Description
Part ID / Name / IPN Part identification
Category Part category path
Current Stock Stock on hand
On Order Quantity on open purchase orders
In Production Quantity allocated to active build orders
Required Quantity Total quantity needed across all outstanding orders
Shortfall Deficit after accounting for stock, on-order, and in-production quantities

Scheduled Email Reports

When a Shortfall Report Group is configured, the plugin sends an HTML email with the report attached to all active users in that group. The frequency is controlled by the Shortfall Report Days setting.

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_component_shortfall-0.3.0.tar.gz (101.0 kB view details)

Uploaded Source

Built Distribution

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

inventree_component_shortfall-0.3.0-py3-none-any.whl (102.2 kB view details)

Uploaded Python 3

File details

Details for the file inventree_component_shortfall-0.3.0.tar.gz.

File metadata

File hashes

Hashes for inventree_component_shortfall-0.3.0.tar.gz
Algorithm Hash digest
SHA256 76258d8f89ba246eed929f2028f21068ac6baf64d1300766156b9c2bbfb54dc5
MD5 d794ee84cd721160d0f8b68ce35e97ac
BLAKE2b-256 7def8393638d63b6239d2f2b00aa2faf55eef628ad889f52bc0c6bb1cc4d0dc9

See more details on using hashes here.

File details

Details for the file inventree_component_shortfall-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for inventree_component_shortfall-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30e16dfe103bea3d2eaa6254561742a27ea93c5f2323b382d2d68b54733cc7b6
MD5 2cc8d9716cb74b7f6e4ff85df7ecec94
BLAKE2b-256 c0c5c5fd555a9cbf459c33e888d972ffb601b164bb54cfd66fa7bb05e80995f0

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