Skip to content

Link Stock Items to Vehicle Inspections

The stock linking feature allows you to associate stock items (like masks, gloves, medical supplies, or other consumables) with questions in your vehicle inspection templates. When conducting a vehicle inspection, inspectors can see current stock levels and record restocking activities directly within the inspection workflow.

Stock restock option showing P2 Masks with current stock on hand

  • Real-time inventory visibility: See current stock levels during vehicle inspections
  • Simplified restocking: Record stock additions without leaving the inspection
  • Automatic inventory updates: Stock on hand decreases when restocking is recorded
  • Audit trail: Track when and how much stock was added to vehicles
  • Proactive stock management: Identify low stock levels before items run out
  • Integrated workflow: Combine vehicle checks with inventory management

When creating or editing a vehicle inspection template:

  1. Navigate to Templates from the main menu
  2. Create a new template or edit an existing vehicle inspection template
  3. Add or edit an inspection item where you want to link stock
  4. Check the “Link to Stock Item” checkbox
  5. Select the specific stock item from the dropdown (filtered to stock in your unit)
  6. Save the template

Stock restock option showing enabled on inspection template

When conducting a vehicle inspection with linked stock items:

For each question with linked stock, inspectors will see:

  • Stock item name in an amber/yellow highlighted section
  • Current stock on hand: The total quantity available in your unit’s inventory
  • Restock checkbox: “Restocked [Item Name] on this vehicle”
  • Quantity input field: Appears when checkbox is selected

Step-by-step process:

  1. Answer the inspection question (Present/Missing, Pass/Fail, etc.)
  2. Check the restock checkbox if you added stock to the vehicle
  3. Enter the quantity added to the vehicle
  4. Continue with inspection - changes are auto-saved

Example:

  • Inspector checks P2 Masks on Truck 24
  • Sees “Current stock on hand: 8.0 items”
  • Marks as “Present”
  • Checks “Restocked P2 Masks on this vehicle”
  • Enters “2” in quantity field
  • Upon inspection completion, stock on hand reduces to 6.0 items

When an inspection is completed:

  1. System reviews all stock restock responses
  2. For each restocked item:
    • Finds the linked stock item
    • Deducts the entered quantity from quantity_on_hand
    • Creates an audit record of the transaction
  3. Stock levels update immediately
  4. Stock managers can see the deduction in stock history

For stock to be linkable to vehicle inspections:

  1. Stock item must exist in the system (Stock > Add Stock Item)
  2. Stock must have quantity on hand greater than zero
  3. Stock must be active in the system
  4. Stock must belong to the same unit as the template
  • Name: Clear identifier (e.g., “P2 Masks”, “Disposable Gloves”)
  • Quantity on hand: Current inventory count
  • Unit of measure: How the item is counted (items, pairs, boxes, etc.)
  • Unit: The organizational unit that owns the stock
  • Active status: Must be set to active

Link stock items that:

  • Are regularly restocked on vehicles
  • Are consumable or have expiration dates
  • Require inventory tracking
  • Are critical for operations
  • Need regular checks during inspections

Examples:

  • Medical supplies (masks, gloves, bandages)
  • Personal protective equipment (PPE)
  • Disposable items (wipes, bags)
  • Consumables (batteries, chemical sticks)
  • Safety equipment (road flares, warning triangles)
  1. Group related checks: Place stock links near related vehicle inspection items

    • Example: Link P2 Masks stock near “Check medical supplies compartment”
  2. Clear question text: Make it obvious what’s being checked and why

    • Good: “Verify P2 Masks are present and restock if needed”
    • Avoid: “Check masks”
  3. One stock item per question: Don’t try to link multiple stock items to a single question

  4. Use descriptive stock names: Make it easy for inspectors to identify items

    • Good: “P2 Masks (Disposable)”
    • Avoid: “Masks” or “Item #123”
  1. Maintain adequate stock levels: Ensure stock on hand is sufficient for restocking needs

  2. Regular stock checks: Review stock levels regularly to avoid running out

  3. Set reorder thresholds: Establish minimum levels and reorder before reaching zero

  4. Track usage patterns: Use inspection data to understand restocking frequency

  5. Coordinate with stock managers: Ensure vehicle inspectors and stock managers communicate about inventory

Stock item not appearing in template dropdown

Section titled “Stock item not appearing in template dropdown”
  • Confirm stock item is active
  • Check stock belongs to same unit as template
  • Verify stock has quantity on hand > 0
  • Ensure you’ve saved the stock item
  • Make sure you’ve checked the restock checkbox
  • Verify the checkbox change saved (auto-save should happen)
  • Check browser console for JavaScript errors
  • Try refreshing the page

Stock not deducting after inspection completed

Section titled “Stock not deducting after inspection completed”
  • Ensure inspection status is “completed” (not just saved as draft)
  • Verify you entered a quantity in the restock field
  • Check that quantity field was not left blank
  • Confirm stock item still exists and is active
  • Review stock item history to see if deduction was recorded

If stock on hand becomes negative:

  • This indicates more stock was allocated than was available
  • Review recent inspection restocks
  • Adjust stock on hand manually in stock management
  • Investigate if stock counts were inaccurate

Restock checkbox already checked when resuming inspection

Section titled “Restock checkbox already checked when resuming inspection”
  • This is expected behavior if you previously selected it
  • The system saves draft responses including checkbox states
  • If incorrect, simply uncheck it before completing inspection
  • Item is consumable (gets used up)
  • Item is regularly replenished
  • You need to track quantity usage
  • Item is not permanently assigned to vehicle
  • Examples: masks, gloves, bandages, batteries
  • Item is durable (not consumed)
  • Item requires inspection (not restocking)
  • Item is permanently mounted or assigned
  • You need to track inspection dates
  • Examples: chainsaws, defibrillators, ladders, SCBA

Stock links are stored in the template JSON structure:

{
"text": "Check P2 Masks",
"response_type": "present_missing",
"stock_item_id": 456,
"equipment_id": null
}

Restock responses are stored separately:

{
"section_0_item_0": "present",
"section_0_item_0_restock_checked": "true",
"section_0_item_0_restock_quantity": "2"
}

When an inspection is completed, the system:

  1. Parses all inspection responses
  2. Identifies restock responses (keys ending with _restock_checked)
  3. For each restocked item:
    • Extracts the quantity from corresponding _restock_quantity key
    • Finds the linked stock item from template structure
    • Reduces quantity_on_hand by the entered quantity
    • Validates quantity is not greater than available stock
    • Updates stock item record
  4. Creates audit trail in inspection responses

The system validates:

  • Quantity must be a positive number
  • Quantity must be greater than 0 if restock is checked
  • Stock item must exist and be active
  • Restock checkbox must be checked for quantity to be processed
  • Checkbox changes trigger auto-save
  • Quantity changes trigger auto-save after typing stops
  • Draft inspections preserve all restock selections
  • Resuming a draft inspection shows previous restock entries