# inbound-shipment-edit-form

## Overview

Edits an existing DRAFT inbound shipment. Only the receipt date and existing-line received quantities are editable — in erp-kit 0.45 an inbound-shipment line must carry a purchase-order source link, so brand-new manual lines cannot be added on edit (new receipt lines are raised via the create form against a PO). Submitting invokes the [updateInboundShipment](../resolver/updateInboundShipment.md) resolver with an incremental `updateLines` diff.

**Pre-condition:** inbound shipment must be in DRAFT status.

## Screen Type

Form

### Form Details

#### Input Fields

| Field Name | Field Type | Required (Yes/No) | Options / Lookup |
| --- | --- | --- | --- |
| Receipt Date | date | Yes | — |

**Existing Line Items** (from the originating PO; cannot be added to or deleted):

| Field Name | Field Type | Required (Yes/No) | Options / Lookup | Description |
| --- | --- | --- | --- | --- |
| Item (Name / Code) | text (read-only) | No | — | Item name |
| PO Line Ref | text (read-only) | No | — | Originating PO line (`sourceLineId`) |
| Received Quantity | number (editable) | Yes | — | Actual received quantity |
| UoM | text (read-only) | No | — | Unit of measure |

Only changed quantities are sent (as the `updateLines` diff, keyed by line id); lines the form never visited are left untouched.

**Actions:**

- Save — submits the form
- Cancel — discards changes and returns to [inbound-shipment-detail](inbound-shipment-detail.md)

## Access Control

- [purchaser](../actor/purchaser.md)
