Project

General

Profile

Edit Copy Actions

Feature #5543

open

Job Review Workflow (Manager Approval)

Added by Yalavarthi Thriveni 5 days ago. Updated 4 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
12/03/2025
Due date:
% Done:

1%

Estimated time:
(Total: 41:40 h)
Spent time:
(Total: 1:00 h)

Description

As a Manager / Admin
I want field staff to mark jobs as submitted_for_review (before closing) so managers can verify actual quantities and approve adjustments or returns,
So that invoices, refunds, or additional charges are accurate and recorded with action history and customer notification.
Acceptance Criteria
AC1 — New Status Flow
Job lifecycle: new → inprogress → submitted_for_review → complete (only after manager approves).
Fieldstaff can move job to submitted_for_review (or chosen name).
When moved, job appears in Admin/Manager dashboard "Jobs for Review".

AC2 — Admin/Manager Dashboard
Dashboard lists all jobs with status submitted_for_review.
Each job entry shows: Job ID, Customer, Date, Fieldstaff, link to Review Detail page.

AC3 — Review Detail Page
Manager can open a job review page which shows:
Job summary (ID, address, fieldstaff, dates)
Products planned (name, planned quantity, planned unit price)
Editable inputs for Actual Quantity per product
Equipment planned and actual (hours/units and rates)
Labour planned and actual (hours and rates)
For each row, show Difference = Actual - Planned
For each row, show AdjustmentAmount = Difference * UnitPrice (positive → additional charge to customer; negative → refund/return)
Show Totals:
Total Planned Amount
Total Actual Amount
Net Adjustment (positive => customer owes; negative => refund due)

AC4 — Manager Actions
Manager can Approve .

Approve:

Marks job as complete
Triggers email to customer with revised amount and payment link if additional payment due.
If refund due, triggers refund workflow (cash or recorded refund) & email to customer.
Save an action-history entry with manager, timestamp, values, and notes.
Generate/update invoice/quote in system (link to invoice) and mark action history.

AC5 — Dealing with Payments
If additional payment required:
Send customer email with amount due and a secure payment link.
On successful payment, record invoice and update job with paid status & action history.
If refund required:
Record refund type (cash / bank / credit)
If cash refund: mark refund recorded and send confirmation mail
Maintain proper audit history for refunds

AC6 — Notifications
When fieldstaff marks submitted_for_review: notify manager(s)/admins (email + in-app).
When manager approves/rejects: notify fieldstaff and customer (email + in-app).
All notifications include links to job and summary.

AC7 — Action History
Every action (submit for review, approve, payment events) is stored with:
Actor, timestamp, previous status, new status, changed values, notes, and related invoice/refund IDs.

AC8 — Validation
Actual quantities must be non-negative.
If any product is missing actual quantity, manager must be able to set it (but cannot set to null).
Calculations must be automatically computed and displayed prior to approval.


Add

Subtasks 9 (9 open0 closed)

Feature #5544: Add new job status: submitted_for_review by fieldstaffIn ProgressPavan Kumar Murala12/05/2025

Delete link to subtaskActions
Feature #5545: Fetch Jobs Under Review (Manager/Admin Dashboard)New12/03/2025

Delete link to subtaskActions
Feature #5546: Get Job Review Details (Planned Inputs)New12/03/2025

Delete link to subtaskActions
Feature #5547: API for Save Actual QuantitiesNew12/03/2025

Delete link to subtaskActions
Feature #5548: Api for Approve Job Review (Manager Action) & Payment Link & Invoice/Refund Handling & Action History LoggingNew12/03/2025

Delete link to subtaskActions
Feature #5549: Add “Submit for Review” Button in Fieldstaff Job completion New12/03/2025

Delete link to subtaskActions
Feature #5550: Manager/Admin Dashboard View — Jobs Pending ReviewNew12/03/2025

Delete link to subtaskActions
Feature #5551: Build Review Detail Page Layout & Show Planned Quantities Table & Equipment & Labour Actual Input SectionNew12/03/2025

Delete link to subtaskActions
Feature #5552: Testing New12/03/2025

Delete link to subtaskActions

Add

Related issues

Actions #1

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5544 added
Actions #2

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5545 added
Actions #3

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5546 added
Actions #4

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5547 added
Actions #5

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5548 added
Actions #6

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5549 added
Actions #7

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5550 added
Actions #8

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5551 added
Actions #9

Updated by Yalavarthi Thriveni 5 days ago

  • Subtask #5552 added
Actions #10

Updated by Yalavarthi Thriveni 5 days ago

  • Target version changed from Backlog to Sprint2
Edit Copy Actions

Also available in: Atom PDF