POS app user stories
What each user needs from the POS app, written as user stories with acceptance criteria.
A working POS app to start from
The user stories
Written by the free User Story Generator from a one-paragraph brief of the app.
Point-of-sale till for a small shop or café
US-1 Sign in as staff or manager
Priority: must
As a staff member or manager, I want to sign in with my own account, so that I only see and do what my role allows.
Acceptance criteria:
- Given I have an account, when I enter my correct credentials, then I land on the till screen (staff) or the manager home (manager).
- Given I enter wrong credentials, when I submit, then I stay on the sign-in page and see an error that does not reveal which field was wrong.
- Given I am not signed in, when I open any till, receipt or manager address directly, then I am sent to the sign-in page.
Assumption: accounts are created and given a role (staff or manager) by the manager; self-registration is out of scope.
US-2 Browse products by category on the till
Priority: must
As a staff member, I want products grouped by category on the till screen, so that I can find items quickly while a customer waits.
Acceptance criteria:
- Given categories with active products exist, when I open the till, then I see the categories and the products of the selected category with name and price.
- Given I tap another category, when the screen updates, then only that category's products are shown.
- Given a product has been deactivated by the manager, when I open the till, then it is not shown.
- Given there are no products at all, when I open the till, then I see a message that the manager needs to add products first.
US-3 Build the cart
Priority: must
As a staff member, I want to tap products to add them to a cart and change quantities, so that I can ring up exactly what the customer wants.
Acceptance criteria:
- Given an empty cart, when I tap a product once, then it appears in the cart with quantity 1 and the total equals its price.
- Given a product is already in the cart, when I tap it again, then its quantity goes up by 1 instead of adding a second line.
- Given a line in the cart, when I increase or decrease its quantity, then the line amount and cart total update immediately.
- Given a line has quantity 1, when I decrease it, then the line is removed from the cart.
US-4 Clear or cancel a cart
Priority: should
As a staff member, I want to remove a line or empty the whole cart, so that I can correct mistakes or start over when a customer changes their mind.
Acceptance criteria:
- Given a cart with several lines, when I remove one line, then only that line disappears and the total is recalculated.
- Given a cart with items, when I choose to empty the cart and confirm, then the cart is empty and the total is zero.
- Given an empty cart, when I look at the checkout button, then it is disabled.
US-5 Check out with a simulated cash payment
Priority: must
As a staff member, I want to complete a sale with a cash payment, so that the sale is recorded and I know how much change to give.
Acceptance criteria:
- Given a cart with a total of 8.50, when I choose cash and enter 10.00 as the amount received, then the app shows change of 1.50 and I can confirm the sale.
- Given I enter an amount received that is lower than the total, when I try to confirm, then I see an error and the sale is not recorded.
- Given I confirm a valid cash payment, when the sale is saved, then the cart is cleared and the receipt for that sale is shown.
Assumption: a single currency, with prices and totals shown to two decimals; no tax breakdown or discounts.
US-6 Check out with a simulated card payment
Priority: must
As a staff member, I want to complete a sale with a card payment, so that card customers can pay without the app contacting any payment provider.
Acceptance criteria:
- Given a cart with items, when I choose card and confirm, then the sale is recorded as paid by card for the full total, without any external call.
- Given the card sale is recorded, when it is saved, then the cart is cleared and the receipt is shown.
- Given the checkout screen is open, when I look at it, then it states clearly that payments are simulated and no real charge is made.
US-7 View a receipt again
Priority: must
As a staff member, I want to open the receipt of any past sale, so that I can answer a customer's question or reprint what they bought.
Acceptance criteria:
- Given a completed sale, when I open its receipt, then I see the date and time, a receipt number, each line with quantity, price and line amount, the total, and the payment method (plus amount received and change for cash).
- Given several sales exist, when I open the sales list, then I see them newest first and can open any receipt from it.
- Given a product's price is changed later, when I open an old receipt, then it still shows the prices at the time of the sale.
- Given I enter a receipt address that does not exist, when the page loads, then I see a "receipt not found" message.
US-8 Manage categories
Priority: must
As a manager, I want to create, rename and remove categories, so that the till screen matches how my shop is organised.
Acceptance criteria:
- Given I am on the category screen, when I add a category with a name, then it appears on the till screen once it contains an active product.
- Given I try to save a category with an empty name or a name that already exists, when I submit, then I see an error and nothing is saved.
- Given a category still contains products, when I try to delete it, then I am told to move or deactivate its products first and the category stays.
US-9 Manage products and prices
Priority: must
As a manager, I want to add, edit and deactivate products and set their prices, so that the till always offers the right items at the right price.
Acceptance criteria:
- Given I enter a name, a category and a price of 3.20, when I save, then the product appears on the till under that category at 3.20.
- Given I enter a negative or non-numeric price, or leave the name empty, when I save, then I see an error and nothing is saved.
- Given I change a product's price, when staff open the till afterwards, then new sales use the new price.
- Given I deactivate a product, when staff open the till, then it is hidden, but it still appears on past receipts and in past reports.
Assumption: products are deactivated rather than deleted so that sales history stays intact; no stock levels are tracked.
US-10 See the daily sales report
Priority: must
As a manager, I want a sales report for a chosen day, so that I can see how the shop did and reconcile cash and card takings.
Acceptance criteria:
- Given sales exist on a day, when I open the report for that day, then I see the number of sales, the total revenue, and totals split by cash and card.
- Given I choose a different date, when the report reloads, then it shows only that day's sales.
- Given no sales exist on the chosen day, when I open the report, then I see zero totals and a "no sales on this day" message instead of an error.
- Given I am signed in as staff, when I try to open the report, then access is denied.
Assumption: the report defaults to today, and "day" follows the shop's local time.
US-11 See the best-selling products
Priority: should
As a manager, I want to see the best-selling products of the day, so that I know what to stock and promote.
Acceptance criteria:
- Given sales on the chosen day, when I open the report, then I see products ranked by units sold, each with units and revenue, up to the top 10.
- Given two products have the same units sold, when the ranking is shown, then the one with higher revenue is listed first.
- Given a product was deactivated after selling, when I view that day's report, then it still appears in the ranking.