# Changelog

## 2026-10-14
- Warehouse `scan_product` can now record whether a unit is damaged, using the optional `is_damaged` field (0 = OK, the default; 1 = damaged). The new column is `order_delivery_item_products.is_damaged`.
- New `POST /api/v1/warehouse/deliveries/get_scan_list` lists a variant's collected units, each with its scan state: not scanned, OK or damaged.
- New `POST /api/v1/warehouse/deliveries/get_scanned_product` is a read-only lookup by QR code. It returns the same data as `scan_product` without saving anything.
- New `POST /api/v1/warehouse/deliveries/get_item_scan_list` is the warehouse version of the transporter's `get_item_variants`. It returns every variant of an order item with its progress and the collected units with their scan state, with units paginated across the item. Existing endpoints are unchanged.
- Details: [changes/2026-10-14-warehouse-damaged-scan.md](changes/2026-10-14-warehouse-damaged-scan.md)
- API guide for app developers: [api/warehouse-verification-api.md](api/warehouse-verification-api.md)
