Sie sind auf Seite 1von 5

Store System - Use Case Document

Process Order

Version Description Changed By Date


1.0 First draft Richard 23/3/06
Ashwell

Brief Description: A sales assistant processes a customer order. The customer pays for the order by
cash or credit card. An invoice and a picking list or delivery note are produced.
Business Trigger: A customer asks to purchase some goods
Preconditions: The system is displaying the main menu

Basic Flow:
Line System Actor Action System Response
1 The sales assistant asks the system to The system asks the sales assistant for
process a new order identification
2 The sales assistant identifies themselves to The system displays a blank order screen with a
the system blank order line to the sales assistant
3 The sales assistant enters the product The system displays the description, unit price
number into the system (AF4) and available stock to the sales assistant
4 The sales assistant enters the required The system displays the total price for the order
quantity into the system (AF3) line and order to the sales assistant
5 The system adds a blank order line to the order
6 Steps 3 to 5 may be repeated for a total of 10
order lines or to edit existing order lines
7 The sales assistant confirms completion of The system asks the sales assistant for
the order to the system (AF7) payment
8 The sales assistant enters the credit card The system sends the credit card details and
details into the system the total order value to the card handling system
9 The card handling system returns the card The system asks the customer for a PIN
authorisation to the system (AF5) Number
10 The customer enters the PIN number into the The system sends the card transaction to the
system card handling system
11 The card handling system confirms receipt of The system records the order together with the
the card transaction payment details
12 The system decrements the stock
13 The system prints a receipt to the sales assistant
14 If there are items for immediate collection The system prints a picking list for collection
from the warehouse or for immediate items and a delivery note for delivery items to
delivery, then: the warehouse person
15 The system displays the main menu to the sales
assistant
Post Condition: The system is displaying the main menu

© CRaG Systems 2006 Page 1 of 5 Printed: 23/04/2003 15:03


Store System - Use Case Document
Process Order

Alternate Flow (AF1): Handle Invalid Sales Assistant

Alternate Flow (AF2): Handle Invalid Product Number

Alternate Flow (AF3): Make Backorder


If at line 4 in the basic flow the quantity required is greater than the quantity available from stock, then:
Line System Actor Action System Response
1 The system finds the regional warehouse
nearest to the store that has sufficient stock to
cover the difference and displays an additional
order line as a backorder with the required
quantity set to the difference between the
original required and available quantities and
the available stock set to that available in the
regional warehouse
2 The system sets the required quantity of the
original order line to the quantity available from
stock in the store.
The use case restarts at line 5 of the basic flow

Alternate Flow (AF4): Delete an Order Line


If between lines 3 and 6 of the basic flow, the sales assistant re-enters a required quantity on an order line,
then:
Line System Actor Action System Response
1 The system deletes the currently selected order
line
The use case restarts at line 6 of the basic flow

Alternate Flow (AF5): Handle Credit Card Failure


If at line 9 of the basic flow, the card is found to be invalid, then:
Line System Actor Action System Response
1 The system displays the message ‘Invalid Card’
to the sales assistant
The use case restarts at line 8 of the basic flow

Alternate Flow (AF6): Handle PIN Failure

Alternate Flow (AF7): Address Required


If at line 7 of the basic flow, an address is required, then:
Line System Actor Action System Response
1 The sales assistant confirms completion of The system asks the sales assistant for the
the order to the system customer’s name.
2 The sales assistant enters the customer’s The system displays the customer’s name to the

© CRaG Systems 2006 Page 2 of 5 Printed: 23/04/2003 15:03


Store System - Use Case Document
Process Order
name into the system sales assistant
3 The sales assistant enters the customers The system displays the partially completed
postcode into the system address including a list of possible first lines to
the sales assistant.
4 The sales assistant chooses the first line of The system displays the completed address to
the address that contains the customers the sales assistant
house number from the list of first lines
displayed
5 The system asks the sales assistant for
payment
The use case restarts at line 8 of the basic flow

Alternate Flow (AF8): Accept Cash

Alternate Flow (AF9): Cancel Order Processing

Alternate Flow (AF10): Add Charge for Delivered Items

Alternate Flow (AF11): Handle No Order Line on Order

Alternate Flow (AF12): Edit Order Line

Alternate Flow (AF13): Select Item For Delivery

Business Rules:
1 Backordered items must be displayed in red.
2 The system must show any changes that occur to available stock whilst the order is being created

Non Functional Requirements:


1 The use case must complete in the fewest possible number of keystrokes - usability

Data Issues:
1 It must be possible to enter the product number either using a barcode scanner or via the keyboard

© CRaG Systems 2006 Page 3 of 5 Printed: 23/04/2003 15:03


Store System - Use Case Document
Process Order

Activity Diagram:

Display Order
Screen

Identify Sales
Assistant

[identity re-entered]

[valid sales assistant]

Enter Product
Number
[cancel selected] Display Error
Message
[product number entered]

[invalid product number]

[valid product number]

Display Product
Details
[more products required]

[line abort selected]

[choose stock purchase]

[cancel selected] Enter Required


Quantity

[insufficent stock] Add Backorder


Line
[cancel selected]

[cancel selected]
[order complete and address required]
Destroy Screen
and Return to
Main Menu [order complete and no address required] Enter Customer
Details

[cancel selected]

[card details entered]


Authorize
[cash paid selected] Payment

[payment
refused]
Execute Order
[PIN failed]
[payment authorised]
[PIN validated]

Validate PIN

© CRaG Systems 2006 Page 4 of 5 Printed: 23/04/2003 15:03


Store System - Use Case Document
Process Order
Prototype Screen:

© CRaG Systems 2006 Page 5 of 5 Printed: 23/04/2003 15:03

Das könnte Ihnen auch gefallen