Skip to main content

Inventory

The Inventory module tracks equipment, supplies, and other assets across department locations. It is managed by the InventoryController.

Inventory Overview

Authorization: Inventory_View policy

The main view displays consolidated inventory data loaded via AJAX.

Consolidated View

The GetCombinedInventoryList endpoint returns aggregated inventory grouped by:

  • Inventory Type — What the item is
  • Group/Station — Where the item is located
  • Unit — Which unit it's assigned to

Inventory Types

Managing Types

Authorization: Inventory_Update policy

FieldRequiredDescription
Type NameYesName of the inventory type
DescriptionNoType description
Expires DaysNoNumber of days until items expire
Unit of MeasureNoMeasurement unit (each, box, etc.)

Operations

  • Create Type — Add a new inventory type
  • Edit Type — Modify type details
  • Delete Type — Remove a type (validates department ownership)

Inventory Adjustments

Authorization: Inventory_Create policy

Record inventory changes (additions or removals):

FieldRequiredDescription
Inventory TypeYesWhat item is being adjusted
AmountYesQuantity (must not be 0)
Station/GroupNoLocation of adjustment
UnitNoUnit assignment
BatchNoBatch identifier
NoteNoAdjustment notes

Each adjustment records:

  • Department ID
  • Timestamp
  • Acting user
  • Location (group/unit)

Inventory History

Authorization: Inventory_View policy

View all inventory transactions with:

  • Type name
  • Amount and batch
  • Timestamp
  • Station/unit assignment
  • User who made the adjustment

Viewing Individual Entries

Authorization: Inventory_View policy

View a single inventory entry with full details, including the adding user's name.

Data Endpoints

EndpointPurpose
GetTypesListAll inventory types with expiry info
GetCombinedInventoryListConsolidated inventory by type/group/unit
GetInventoryListAll individual transactions

Interactions with Other Modules

ModuleInteraction
GroupsInventory tracked at station/group level
UnitsInventory can be assigned to specific units
Department SettingsModule can be enabled/disabled
SecurityInventory adjustment permission configurable