Feature #4160
openFeature #4154: Inventory Actuals Capture
User Story: Preview Planned vs Actual
56%
Description
As an Admin
I want to preview the planned vs actual inventory, equipment, and labour after field staff submit actuals
So that I can clearly see variances and decide whether to accept or revise.
Acceptance Criteria
Planned vs Actual Display
System shows a side-by-side table of planned and actual values for:
Inventory (SKU, description, plannedQty, actualQty, variance).
Equipment (planned vs actual usage).
Labour (planned vs actual hours).
Variance Calculation
Variance = actual - planned.
Highlight variances exceeding a configurable threshold (e.g., > ±10%).
Remarks & Attachments
Show field staff remarks inline with items.
Show attachments (images, PDFs) uploaded by field staff, with preview/download option.
Read-Only Mode
Admin cannot modify values directly in preview (revision handled separately).
Status Control
Preview only available when job is in submitted state.
If no actuals submitted, system shows “No actuals available for preview”.
Audit Trail
Opening the preview logs an audit event (viewPreview) with userId and timestamp.
Related issues