# transfer-order-edit-form

## Overview

Form to edit a DRAFT Transfer Order. Mirrors the create form layout (header fields + the paginated line-items table). The edit-specific difference is that the form is hydrated with the persisted header + line set on mount and the Qty column is normalized to a clean integer string (DB Decimal "5.000000" → "5"). Edit semantics are full-replacement: the persisted line set is deleted and re-inserted on save.

## Screen Type

Form

### Form Details

#### Input Fields

| Field Name | Field Type | Required (Yes/No) | Options / Lookup |
| --- | --- | --- | --- |
| Source Site (ship from) | lookup | Yes | Site lookup (excludes destination's selected id) |
| Destination Site (receive at) | lookup | Yes | Site lookup (excludes source's selected id) |
| Notes | textarea | No | Empty string clears the persisted value |
| Line Items: Item | lookup | Yes | Item lookup filtered to source's on-hand stock |
| Line Items: Unit | select (disabled) | Yes (auto) | Pinned to seed Unit.symbol = "each" |
| Line Items: Quantity | number | Yes | Integer, > 0 |

## Access Control

- [inventory-manager](../actor/inventory-manager.md)
