Feature #3938
openFeature #3936: Epic: Post-Job Cost Adjustment & Revised Invoice
User Story 2: Compare Planned vs Actual Costs - #3936
Description
As Field Staff or Admin/Manager
I want to compare planned costs from the quotation with actual costs after the job
So that I can see differences in usage and expenses.
Acceptance Criteria
For Field Staff
After updating extra usage (products, equipment hours, labor hours), a dialog should show confirmation of data saved.
When the Field Staff clicks Close, the dialog simply closes (no navigation).
Field Staff task ends after recording usage.
For Admin/Manager
Admin/Manager can open the comparison view showing:
Planned vs actual values (products, equipment, labor).
Highlighted differences (extra usage / cost variations).
When Admin/Manager clicks Close, the system navigates back to the Quotation details page.
General
The comparison view must show:
Product Name, Planned Quantity/Cost, Actual Quantity/Cost.
Equipment Hours Planned vs Actual.
Labor Hours Planned vs Actual.
All cost differences must be clearly highlighted.
Test Scenarios
Field Staff enters extra usage → dialog shows saved message → clicking Close only dismisses dialog.
Admin/Manager opens planned vs actual comparison → clicking Close redirects to quotation detail page.
Planned vs actual values are displayed correctly for products, equipment, and labor.
Differences in cost/usage are highlighted.
Subtasks
Related issues