Learn how a repair booking app can track estimate revisions, record customer approvals, and handle duplicate requests.
A customer opens a quote for a phone that won’t charge. It covers a charging port replacement. While the quote is still open on their screen, a technician discovers connector damage and sends an updated estimate. A minute later, the customer taps Approve on the original screen.
Which work did the customer authorize?
If a repair booking app stores a single approved flag on the job, it cannot answer that question reliably. The approval needs to reference the exact estimate the customer reviewed. This example, prepared for Sampurnakart’s DEV account, shows how to preserve that link from diagnosis through the start of work.
Give each estimate revision its own ID
A technician may issue an initial quote after diagnosis and revise it after further inspection. Give each issued version its own record so the original scope and price remain available for reference.
Estimate Scope Status
EST-104-V1 Replace the charging port Superseded
EST-104-V2 Replace the charging port and repair the connector Awaiting approval
When the scope or price changes, create a new version and update the repair job’s current_estimate_id. When the customer taps Approve, the app sends the ID displayed on their screen.
If that ID differs from the current one, the API can return 409 Conflict. The app can then load the revised quote and show what changed. The customer gets a chance to review the new scope and price before deciding whether to proceed.
Save the approval in a single transaction
An approval and a revision can reach the backend at almost the same time. Suppose the approval request reads version 1 as current. Before it commits, a technician publishes version 2. If both operations update the job independently, the app can show Approved even though the customer only agreed to version 1.
One way to avoid this is to lock the same repair job row during both operations. Here’s the approval flow in pseudocode.
begin transaction
job = load and lock repair job
verify the signed-in customer can approve this job
if submitted estimate ID differs from job.current_estimate_id:
return conflict
if approval exists for the submitted estimate:
return the existing confirmation
require job.status == "awaiting_approval"
save approval for the submitted estimate
set job.status to "approved"
add an approval event to the timeline
commit transaction
The revision operation acquires the same lock before changing the job. If the revision commits first, the approval request sees the newer version and returns a conflict. If the customer approves first and the technician revises the quote before work begins, the job returns to Awaiting approval. The earlier decision remains in the history, attached to version 1.
Handle retries after a dropped connection
A customer taps Approve. The server commits the transaction, but the phone loses its connection before receiving confirmation. When the customer reconnects, they tap again.
If the same estimate is still current, return the existing confirmation. A unique constraint on (repair_job_id, estimate_id) can enforce one approval record per version. Write the approval and its timeline event in the same transaction so the customer’s history stays consistent with the job record.
If an updated quote becomes current before the retry arrives, return a conflict and show the new version. The original approval remains valid as a record of what the customer agreed to at the time.
Check the current estimate before starting work
Workshop screens can become stale too. A technician might leave a job sheet open while a colleague updates the quote. The screen can still show Approved after the job has moved back to Awaiting approval.
When someone selects Start repair, check the approval on the backend. Lock the job row, confirm that the current estimate has an approval, and set the status to In repair in the same transaction. If the estimate changed and still needs approval, keep the job in Awaiting approval.
This also makes the status clearer for customers. Approved means they agreed to the quote. In repair means the technician has started work. A device can stay approved while the workshop waits for a part or a bench to become available.
Make the repair timeline easy to read
The current status tells the customer where the job stands. The timeline gives them a record of what happened and makes the next action visible.
Time Customer-facing update
10:15 am Device received
11:40 am Estimate ready for review
12:05 pm Estimate updated. Please review the revised quote.
12:22 pm Revised estimate approved
2:10 pm Repair started
The backend can retain the estimate ID, the approver’s identity, and the approval timestamp. The tracking page can show a simpler view. When action is needed, give the customer a way to open the latest estimate directly from the update.
Test what happens when two screens disagree
Test from both the customer app and the workshop dashboard. A stale screen, a retry, and a concurrent update can each expose a different flaw in the workflow.
Scenari
Expected result
A customer approves an old estimate from a screen they left open. The app displays the current quote for review.
The approval succeeds, but the phone loses the response.
A retry returns the existing confirmation and creates no duplicate event.
A technician revises an approved quote before starting work.
The job returns to Awaiting approval.
A revision commits while a technician is trying to start work. If the revision commits first, the start request requires approval for the new version.
Start with the first test.
Open a quote in one session, revise it in another, then tap Approve on the original screen. The job history should show exactly which version was reviewed. That link gives the customer a clear record of their decision and gives the technician a clear basis for starting the repair.

