> ## Documentation Index
> Fetch the complete documentation index at: https://www.twicecommerce.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to mark scanned items as sold

> Sell the units in the Scanned items drawer outside any order, record what each one brought in, and take them out of stock for good.

> [card] [Open in TWICE Admin](https://admin.twicecommerce.com/inventory/stock-items)
>
> inventory/stock-items

Record units you sold outside any order, such as used stock sold off to a dealer, in one go: scan them, then choose **Mark as sold**. Each unit leaves the stock for good and gets a sale event with its income. [Stock item events](https://www.twicecommerce.com/docs/concepts/inventory/events.md#sales) explains what a sale records.

Choose **Add → Sale** on a stock item's **Events** tab to sell one unit from its own page.

## Prerequisites

> [!WARNING]
>
> **Required permissions:**
>
> * The permission to create stock item events (`inventory:stock_item_events:create`) to sell the units. Every built-in role holds it, Member included. See [Users & Roles](https://www.twicecommerce.com/docs/settings/users-roles.md).

> [!NOTE]
>
> **Have ready before you start:**
>
> * **The units**, with their codes on them, and a barcode scanner. Or tick their rows on **Inventory → Stock items** instead, which carries the same **More**.
> * **The price each unit sold for.** Run a separate sale for each price, because one price applies to every unit in the sale.

## The walkthrough

**1. Scan the units**

Scan the code on each unit you sold, from any page except an order. The units collect in the **Scanned items** drawer at the bottom of the screen, every row ticked. Remove the tick from any unit that is not part of this sale.

**2. Choose Mark as sold**

Click **More** in the drawer's header and choose **Mark as sold**. A dialog opens titled, for example, **"Mark 3 items as sold"**, and reads **"Sold items leave the stock for good. Each gets a sale event with its income."**

**3. Enter the price**

Enter what each unit sold for in **Price per item**. Under the field, **Total** shows the sum for every unit in the sale. Leave the field empty to record no income. Enter how many you sold in **Quantity** first when the drawer holds one stock item with several identical units.

**4. Name the sale**

Replace **Sale** in **Title** with something you will recognise later, such as the buyer's name, and add any detail in **Comment**. The title names the sale on each stock item's **Events** tab.

**5. Sell the units**

Pick the location the units left from in **Sold from**, which shows only for a stock item stocked at several locations. Click **Mark as sold** at the bottom of the dialog. If no order or reservation holds the units, a notice such as **"3 items marked as sold"** confirms it, and the units leave the drawer.

**6. Confirm what the sale takes over**

Read the list if **"Existing orders and reservations will be affected"** opens: each row names a stock item and the order or reservation that loses it. To go ahead, tick **"Please confirm you understand the impact"** and click **Mark as sold**. To keep them, click **Cancel** and untick those units in the drawer.

## How do I know it worked?

* **A notice counts the units sold**, for example **"3 items marked as sold"**, and they leave the drawer.
* **Each stock item's Events tab lists the sale** under your title, with **Sold at** set to the moment you sold it.
* **Each stock item's Income & Expenses tab shows the price** as income, linked to the sale.
* **Each order the confirmation listed** shows **Unavailable stock items** until it has another unit. See [Resolve a stock item conflict](https://www.twicecommerce.com/docs/guides/orders/resolve-stock-item-conflicts.md).

## Troubleshooting / common pitfalls

> [accordion] A red notice says a stock item does not have that many units
>
> It reads, for example, **"Climbing helmet does not have that many units to sell. Nothing was sold."** Set a lower **Quantity**, or remove that stock item from the sale, and try again. See [Sales](https://www.twicecommerce.com/docs/concepts/inventory/events.md#sales).

> [accordion] A red notice says the items changed before they could be sold
>
> **"These items changed before they could be sold. Nothing was sold. Try again."** means an order or reservation took one of the units while the dialog was open. Click **Mark as sold** again, and the confirmation lists the current holds.

> [accordion] I sold a unit by mistake
>
> Delete the sale on the stock item's **Events** tab to remove its record and income. The unit stays out of stock, so raise the stock item's quantity to bring it back. See [Sales](https://www.twicecommerce.com/docs/concepts/inventory/events.md#sales).

## Related articles

> [card] [Stock item events](https://www.twicecommerce.com/docs/concepts/inventory/events.md)
>
> What a sale records, and what deleting one does.

> [card] [Scanning and editing stock](https://www.twicecommerce.com/docs/guides/inventory/stock-codes-and-barcodes)
>
> Every walkthrough for scanning stock items and changing them in bulk.

> [card] [Scan stock items](https://www.twicecommerce.com/docs/guides/inventory/scan-stock-items.md)
>
> Collect the units by their codes first.

> [card] [Income & Expenses](https://www.twicecommerce.com/docs/inventory/stock-items/income-and-expenses.md)
>
> Where the price of each sale is recorded.

> [card] [Create an order from scanned items](https://www.twicecommerce.com/docs/guides/inventory/create-an-order-from-scanned-items.md)
>
> Sell the scanned units to a customer on an order instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.