Primary Actor:
Cashier
Stakeholders and Interests:
- -
Cashier:
Wants accurate, fast entry, and no payment errors, as cash drawer shortages are deducted from his/her salary.
- -
Salesperson:
Wants sales commissions updated.
- -
Customer:
Wants purchase and fast service with minimal effort. Wants proof of purchase to support returns.
- -
Company:
Wants to accurately record transactions and satisfy customer interests. Wants to ensure that Payment Authorization Service payment receivables are recorded. Wants some fault tolerance to allow sales capture even if server components (e.g., remote credit validation) are unavailable. Wants automatic and fast update of accounting and inventory.
- -
Government Tax Agencies:
Want to collect tax from every sale. May be multiple agencies, such as national, state, and county.
- -
Payment Authorization Service:
Wants to receive digital authorization requests in the correct format and protocol. Wants to accurately account for their payables to the store.
Preconditions:
Cashier is identified and authenticated.
Success Guarantee (Postconditions):
Sale is saved. Tax is correctly calculated. Accounting and Inventory are updated. Commissions recorded. Receipt is generated. Payment authorization approvals are recorded.
Main Success Scenario (or Basic Flow):
1. | Customer arrives at POS checkout with goods and/or services to purchase.
| 2. | Cashier starts a new sale.
| 3. | Cashier enters item identifier.
| 4. | System records sale line item and presents item description, price, and running total. Price calculated from a set of price rules.
Cashier repeats steps 3-4 until indicates done.
| 5. | System presents total with taxes calculated.
| 6. | Cashier tells Customer the total, and asks for payment.
| 7. | Customer pays and System handles payment.
| 8. | System logs completed sale and sends sale and payment information to the external Accounting system (for accounting and commissions) and Inventory system (to update inventory).
| 9. | System presents receipt.
| 10. | Customer leaves with receipt and goods (if any).
|
Extensions (or Alternative Flows):
*a. At any time, System fails: To support recovery and correct accounting, ensure all transaction sensitive state and events can be recovered from any step of the scenario. Cashier restarts System, logs in, and requests recovery of prior state. System reconstructs prior state. 2a. System detects anomalies preventing recovery: System signals error to the Cashier, records the error, and enters a clean state. Cashier starts a new sale.
3a. Invalid identifier: System signals error and rejects entry.
3b. There are multiple of same item category and tracking unique item identity not important (e.g., 5 packages of veggie-burgers): Cashier can enter item category identifier and the quantity.
3-6a: Customer asks Cashier to remove an item from the purchase: Cashier enters item identifier for removal from sale. System displays updated running total.
3-6b. Customer tells Cashier to cancel sale: Cashier cancels sale on System.
3-6c. Cashier suspends the sale: System records sale so that it is available for retrieval on any POS terminal.
4a. The system generated item price is not wanted (e.g., Customer complained about something and is offered a lower price): Cashier enters override price. System presents new price.
5a. System detects failure to communicate with external tax calculation system service: System restarts the service on the POS node, and continues. 1a. System detects that the service does not restart. Cashier may manually calculate and enter the tax, or cancel the sale.
5b. Customer says they are eligible for a discount (e.g., employee, preferred customer): Cashier signals discount request. Cashier enters Customer identification. System presents discount total, based on discount rules.
5c. Customer says they have credit in their account, to apply to the sale: Cashier signals credit request. Cashier enters Customer identification. Systems applies credit up to price=0, and reduces remaining credit.
6a. Customer says they intended to pay by cash but don't have enough cash: 1a. Customer uses an alternate payment method. 1b. Customer tells Cashier to cancel sale. Cashier cancels sale on System.
7a. Paying by cash: Cashier enters the cash amount tendered. System presents the balance due, and releases the cash drawer. Cashier deposits cash tendered and returns balance in cash to Customer. System records the cash payment.
7b. Paying by credit: Customer enters their credit account information. System sends payment authorization request to an external Payment Authorization Service System, and requests payment approval. 2a. System detects failure to collaborate with external system: System signals error to Cashier. Cashier asks Customer for alternate payment.
System receives payment approval and signals approval to Cashier. 3a. System receives payment denial: System signals denial to Cashier. Cashier asks Customer for alternate payment.
System records the credit payment, which includes the payment approval. System presents credit payment signature input mechanism. Cashier asks Customer for a credit payment signature. Customer enters signature.
7c. Paying by check... 7d. Paying by debit... 7e. Customer presents coupons: Before handling payment, Cashier records each coupon and System reduces price as appropriate. System records the used coupons for accounting reasons. 1a. Coupon entered is not for any purchased item: System signals error to Cashier.
9a. There are product rebates: System presents the rebate forms and rebate receipts for each item with a rebate.
9b. Customer requests gift receipt (no prices visible): Cashier requests gift receipt and System presents it.
Special Requirements:
- Touch screen UI on a large flat panel monitor. Text must be visible from 1 meter. - Credit authorization response within 30 seconds 90% of the time. - Somehow, we want robust recovery when access to remote services such the inventory system is failing. - Language internationalization on the text displayed. - Pluggable business rules to be insertable at steps 3 and 7. - . . .
Technology and Data Variations List:
3a. Item identifier entered by bar code laser scanner (if bar code is present) or keyboard. 3b. Item identifier may be any UPC, EAN, JAN, or SKU coding scheme. 7a. Credit account information entered by card reader or keyboard. 7b. Credit payment signature captured on paper receipt. But within two years, we predict many customers will want digital signature capture.
Frequency of Occurrence:
Could be nearly continuous.
Open Issues:
- What are the tax law variations? - Explore the remote service recovery issue. - What customization is needed for different businesses? - Must a cashier take their cash drawer when they log out? - Can the customer directly use the card reader, or does the cashier have to do it?
|