Operating problem
The rep reconnects after a price change
A rep drafts an order in a depot without connectivity. While the tablet is offline, the customer exhausts a price agreement and the warehouse allocates the last units to another order. An automatic retry could submit the same draft twice and promise stock that has already moved.
A rep can capture an order offline while the office changes a price or sells the last unit. Synchronization needs an explicit decision for each conflict.
Implementation design
How the records fit together
Give the draft a durable reference and show the rep when availability and pricing were last refreshed. On reconnect, validate the draft on the server. Return the changed lines for review, retain the original quantities and show the confirmed order number only after acceptance.
- Device draft
- Server validation
- Confirmed order
Implementation sequence
- Cache the approved customer list and timestamp the price list.
- Give each draft a stable identifier before synchronization.
- Send changed prices or unavailable quantities back for review before posting.
Validation and review
What to verify before release
Submit the same offline order twice after reconnecting. The office should see one order and the rep should see its confirmed status.

