784 B
784 B
ADDED Requirements
Requirement: Dashboard revenue and customers
The admin dashboard SHALL show total customers and total revenue (sum of paid order amounts).
Scenario: View stats
- WHEN an admin opens the dashboard
- THEN customer count and revenue (paid orders) are displayed
Requirement: Customer tags in admin
The Users resource SHALL show a customer's tags (code, status, item type).
Scenario: Open a customer
- WHEN an admin views a user
- THEN their tags are listed
Requirement: orders.amount
The orders table SHALL have an amount column (numeric, default 0) editable in the Order resource.
Scenario: Set an order amount
- WHEN an admin sets an amount on an order
- THEN revenue reflects it once the order is paid