Create sales order

Start from a blank order with one line row, draft auto-save, and unsaved-change guard — mirrors Ant Design Pro create flows.

Line items are tightly coupled to this order. Create / Save submits the header and lines together. On the detail page, lines are read-only — open Edit to change them. Attachments on the detail page save on their own.

Order

Header fields, approvals, and derived total.

Assigned after the first successful save.

Shipped locks the order for editing.

8232026
mmddyyyy

Required once confirmed; on/after order date.

Optional below $500

USD 25.00

Net of line discounts plus freight.

Customer

Company is required before a draft can be saved (`draftValidate`). Auto-save waits silently; manual Save reveals the field.

Draft auto-save is deferred until this is filled.

Billing

Card number is excluded from draft auto-save (`persistence.excludeFields`). Cardholder name still drafts normally.

Sensitive — never sent to draft auto-save. Edit only this field and the footer stays idle until another field changes.

Line items

Flat wide matrix — SKU pins left; scroll for warehouse, ship via, cost center, and notes. Disc % reveals Disc reason; qty > 25 or total ≥ $1,000 needs manager approval.

#
SKU
Name
Qty
Price
Disc %
Disc reason
Subtotal
UoM
Warehouse
Tax
Batch
Ship via
Cost ctr
Notes
Actions
1
0.00

Shipping

Ship-to address and freight.

Notes

Internal memo on the order.