Orders — Order Management
Orders are the central element of the GetOrder system. All client management, production, inventory, and sales flow through them.
Each order moves through sequential statuses. At each transition, the system automatically creates the required documents — from raw material write-offs to sales records.
An order is the entry point for all business logic in GetOrder.
What Is an Order
An order is an entity containing:
- a client
- a list of products or services
- a scheduled date and time
- optional delivery comments
- a current status
Orders drive inventory write-offs, calculation-based cost computation, and document generation throughout the order lifecycle.
How to Create an Order
You can create an order:
- in the web application
- via the Telegram Bot
Steps:
- Select a client
- Set date and time
- Add products or services
- Add comments if needed
After creation, the order receives the status "New".
Editing an Order
Editing is only allowed in the "New" status.
In this status you can:
- add or remove line items
- change date and time
- update client details
- modify comments
Once moved to "In Progress", editing becomes restricted.
Order Lifecycle
Each order passes through the following statuses:
New → In Progress → Ready → Delivery → Completed
Every transition triggers automated processes. For a full description of each stage, see Order Lifecycle.
What Happens at Each Status
New
- order just created
- full editing available
- no documents generated
In Progress
The system automatically:
- analyzes calculations (recipes) for each product
- determines raw material requirements
- calculates shortages
- reserves resources in inventory to prevent conflicts with concurrent orders
Additionally:
- you can edit or swap calculations
- you can substitute ingredients (e.g., when a material is out of stock)
Inventory Mode
You can choose:
- Strict mode — the system enforces inventory limits
- Allow negative stock — inventory is not enforced
⚠️ Allowing negative stock may result in an inaccurate cost price.
Ready
The system automatically creates:
- a production output document
- a raw material write-off document (based on the calculation)
You can:
- view all documents in reports
- trace documents back to the specific order
Delivery
The system creates:
- a sales document
The following are recorded:
- sale amount
- preliminary cost price
Completed
- order is considered finalized
- sale is confirmed
- final cost price is recorded
Automatic Document Generation
The system creates documents automatically on status transitions:
| Status | Documents Created |
|---|---|
| In Progress | (resource reservation in inventory) |
| Ready | Production output, Raw material write-off |
| Delivery | Sale |
| Completed | Sale finalization |
This eliminates the need for manual bookkeeping.
Inventory Integration
Orders are directly linked to inventory:
- they reserve raw materials
- they write off ingredients on completion
- they account for semi-finished goods
- they calculate cost price
When a calculation is attached to a product:
- write-offs happen automatically
- nested recipe structures (semi-finished goods) are fully resolved
Rollback
The system supports safe status rollback.
When you move an order backward:
- related documents are automatically deleted
- data remains consistent
Examples:
- "Ready" → "In Progress" → production documents are deleted
- "Delivery" → "Ready" → the sales document is deleted
Web and Bot
You can manage orders via:
- the web application — full interface
- the Telegram Bot — chat-based interface with voice input
Both interfaces offer:
- order creation
- status changes
- order details view
The bot additionally supports:
- voice input
- quick actions
Limitations
- orders can only be edited in "New" status
- "allow negative stock" mode disables inventory enforcement
- cost price accuracy depends on the quality of calculations
- concurrent orders use resource reservation to prevent double write-offs
Related Sections
- Order Lifecycle — detailed stage-by-stage breakdown
- Calculations — recipes and cost calculation
- Inventory — stock tracking and write-offs
- Telegram Bot — alternative order management interface
FAQ
Can I edit an order after it has been moved to "In Progress"? No, editing is only available in the "New" status.
What happens if there is not enough raw material? The system shows the shortage. You can:
- replenish inventory
- change the calculation
- switch to "allow negative stock" mode
When is the sales document created? At the "Delivery" stage.
Can I undo system actions? Yes, by using status rollback.