Skip to main content

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)
Exclude Pending Build Orders Exclude build orders with pending status from shortfall calculations (default: disabled)
Exclude Pending Sales Orders Exclude sales orders with pending status from shortfall calculations (default: disabled)
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)
Shortfall Parameter Template A parameter template used to record the shortfall quantity directly against each part; leave blank to disable (default: disabled)

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

Shortfall Parameter Recording

When a Shortfall Parameter Template is configured, the plugin writes the shortfall quantity as a part parameter on each affected component after every report run:

  • Parts with shortfall > 0 — the parameter value is created or updated with the shortfall quantity.
  • Parts with shortfall = 0 — any existing parameter value for that template is deleted, keeping the data set clean.

This makes shortfall data queryable and filterable directly from the InvenTree part list, and allows the values to be used in other automations or reports. The parameter template must already exist in InvenTree before selecting it in this setting.

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.

Release files for inventree-component-shortfall 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inventree-component-shortfall 0.7.2
File Size Uploaded
inventree_component_shortfall-0.7.2.tar.gz 240.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inventree-component-shortfall 0.7.2
File Interpreter ABI Platform
inventree_component_shortfall-0.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 487.1 kB

Release files / inventree_component_shortfall-0.7.2.tar.gz

Download URL inventree_component_shortfall-0.7.2.tar.gz
Size 240.7 kB
Tags Source
SHA-256 checksum
How to use checksums
87e44dae0ff61438cebcfb9558547bfe2478bcb8772690e785181aa9ef1dcd39
BLAKE2b-256 checksum
How to use checksums
f9787a64f4f184261b6f3f8656936061fb9c73f1dfaf2a60d8688109f1d970a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / inventree_component_shortfall-0.7.2-py3-none-any.whl

Download URL inventree_component_shortfall-0.7.2-py3-none-any.whl
Size 246.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c3db47d25558b1914e391d674cf0245cc488c686fbc5e168a54ec8b82702ada
BLAKE2b-256 checksum
How to use checksums
52614e65f82510e5ef1234c0bb7a7bb099853a125f12a2c59a84f471f30a4407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files

0.7.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page