Resolve offline conflicts through business rules
Why conflicting stock counts need an agreed decision rule and a responsible person.

What do the two changes mean?
On reconnecting, two technically valid changes may meet that cannot both apply in business terms. A general rule such as “the last value received wins” then decides how work proceeds. Before development, examine what the values represent and who may resolve a contradiction.
In the fictional example, two employees report different quantities for the same stock position P-26. Both are absolute counts in pieces at the same location, not incoming or outgoing quantities. The planned workflow is filled in below:
Situation | Information available | Agreed processing |
|---|---|---|
Count without a network | The device records | Retain as a local count report not yet accepted centrally. |
Another count in the office |
| Keep as another count report with origin and time. |
Connection returns | Both reports meet. | Flag the difference for review; neither add quantities nor overwrite based solely on device time. |
Responsible person resolves stock | After review and a recount, | Adopt only this explicitly approved state as operational stock; earlier reports remain traceable. |
The rule belongs in the product
Here, the person responsible for stock checks location, unit, count times and intervening movements and arranges another count where needed. Approval after that review determines the effective stock. Reconnection itself confirms none of the earlier quantities. Adding them would also be wrong because counts are not movement quantities.
Android describes different conflict strategies for offline synchronisation. Their business suitability remains a product decision. Agree the visible review status, authorised decision role and behaviour while the conflict is open. Try the workflow with contradictory example data. Successful transfer first shows that data moved; usable stock also needs the appropriate decision.
Sources
Read more
All articles




Software Development with ASES
Custom software, web and mobile apps


