# sales-order-create-form

## Overview

Form for creating a new sales order (受注) in DRAFT status. The Sales Rep selects a customer, sets an order date and shipping address, and adds line items with item, quantity, and unit price. A running total is shown as lines are edited. Submitting invokes the [createSalesOrder](../resolver/createSalesOrder.md) resolver.

## Screen Type

Form

### Form Details

#### Input Fields

| Field Name | Field Type | Required (Yes/No) | Options / Lookup |
| --- | --- | --- | --- |
| Customer | Combobox | Yes | BusinessPartner lookup — CUSTOMER-role partners only (BusinessPartner.name) |
| Order Date | date | Yes | Defaults to today |
| Shipping Address | text | No | Free text; needed before the order can be submitted |
| Line Items: Item | Combobox | Yes | Item lookup (Item.name, Item.sku) |
| Line Items: Quantity | number | Yes | — |
| Line Items: Unit Price | number | Yes | — |

**Lines editor:** rows of Item + Quantity + Unit Price, with add / remove controls and a running total across all lines. At least one line is required.

**Actions:**

- Create — submits the form (disabled while submitting or when no lines exist)
- Cancel — discards and returns to the previous screen

## Access Control

- [sales-rep](../actor/sales-rep.md)
