# Unavailability reason codes

This feature lets you classify why an item is not fulfilled (or only partially fulfilled) on a sales line. You define a list of **unavailability reason codes**, which can be assigned to items, are automatically copied to sales lines, and are shown in summary and replenishment pages.


- Search for **Unavailability Reason Code** (Tell me) to maintain the list of codes.
- Default settings are on the **Inventory Setup** page.
- An item-specific reason is on the **Item Card**, **Inventory** section.


| Field | Description |
|---|---|
| Code | Identifier of the reason. |
| Description | Description of the reason, shown in the FactBoxes. |
| Line Description | Descriptive text to use on document lines. |
| EDI Code | Corresponding code to use in electronic document exchange (EDI). |


On the **Inventory Setup** page, **General** FastTab:

| Field | Description |
|---|---|
| Default Unavailability Code | Reason used when an item is not available in sufficient quantity and the item has no specific reason, or when the quantity is reduced by a picking limit. |
| Default Unsellable Code | Reason used when the item cannot be sold to the customer (for example, unsellable item, past the sales ending date, or no mandatory substitute available). |


On the **Item Card**, **Inventory** section:

| Field | Description |
|---|---|
| Unavailability Reason Code | Item-specific unavailability reason (for example discontinued, incoming, etc.). It takes precedence over the default reason in the setup. |
| Last Supplies Date | Date from which the item is being phased out. It is considered in the replenishment calculation. |


On the **Purchases & Payables Setup** page:

| Field | Description |
|---|---|
| Repl. Last Supplies Period | Date formula that limits replenishment: only items with no last supplies date, or with a last supplies date later than the work date plus this period, are considered. |


Sales lines have the **Unavailability Reason Code** field, which is also carried to posted shipment, invoice, credit memo and return receipt lines.


On sales orders and invoices, for item lines:

- **Item not available**: if the order type allows only available quantities and availability is insufficient, the line gets the item's reason or, if none, the **Default Unavailability Code**.
- **Item not sellable**: if the item cannot be sold to the customer, if the shipment date is after the item's sales ending date, or if a mandatory substitution cannot be applied, the quantity is set to zero and the **Default Unsellable Code** is assigned.
- **Picking limit**: if the quantity is reduced by a picking limit, the **Default Unavailability Code** is assigned.
- When availability is recalculated, the reason is first cleared and then set again if needed.
- If you change the item on the line, the reason is cleared.


- **Purchase line FactBox** and **Item Replenishment FactBox**: show the description of the item's reason.
- **Item warehouse FactBox**: shows the description of the item's reason as **Unavailability Reason**.
- **Missing Item Worksheet**: shows, for each line, the unavailability reason recorded on the sales lines.