When a product is serial-tracked, stock is counted in units and every sale records the exact device.
Receiving
Scan or type each IMEI/serial at receiving. Duplicate serials are rejected across the whole business.
Selling and warranty
The sale stores the serial, so a warranty claim can find the original invoice. Buy-back creates a used-stock unit with its own condition.