24 lines
909 B
Markdown
24 lines
909 B
Markdown
---
|
|
name: confectionery-orders
|
|
description: Create or prepare a confectionery order from confirmed customer and item details. Use when a user asks to register an order or counter sale; confirm before sending it to an external system.
|
|
---
|
|
|
|
# confectionery-orders
|
|
|
|
## Inputs
|
|
Customer, pickup or delivery choice, items, quantities, prices, and optional discount.
|
|
|
|
## Workflow
|
|
1. Validate required fields and positive quantities.
|
|
2. Calculate the proposed total and show a concise order summary.
|
|
3. Ask for confirmation before creating or transmitting an order.
|
|
4. Return the saved identifier or a clearly labeled draft.
|
|
|
|
## Rules
|
|
- Do not invent recipe availability, prices, addresses, or customer details.
|
|
- Keep payment and personal data out of logs.
|
|
- Read `references/order-schema.md` when mapping to the order system.
|
|
|
|
## Output
|
|
Return a valid order payload plus validation warnings and confirmation state.
|