Pending sale review (UC07)
A clerk matches the books of a sale that is pending because it includes unregistered books to registered books and posts the sale to stock.
| Item |
Content |
| Actors |
Clerk |
| Business processes |
2.3 Review pending sales |
| Precondition |
There is a pending sale awaiting review. |
| Postcondition |
The pending sale is confirmed and the sold quantity has been deducted from the stock quantity of each matched book. |
Main scenario
| # |
Clerk |
System |
| 1 |
Selects a pending sale awaiting review. |
Lists the lines of the sale with the notified ISBNs and quantities, and accepts the books to match them to. |
| 2 |
Specifies the matching book of each line by ISBN. |
Shows the title and keeps it as the match for the line. |
| 3 |
Confirms the review. |
Deducts each line's quantity from the stock quantity of its book and marks the sale as confirmed. |
Exceptions
| Step |
Condition |
System |
| 2 |
The specified ISBN is not registered. |
Refuses the match and prompts for book registration first. |
| 3 |
Some lines have not been matched. |
Refuses to confirm and points out the unmatched lines. |
Requirements
| ID |
Requirement |
Rationale |
Priority |
| R21 |
Stock posting on pending sale review The system shall, when a clerk has matched every line of a pending sale to a registered book and confirms the review, deduct the sold quantity from the stock quantity of each matched book and mark the sale as confirmed. |
A sale acknowledged as pending has not been posted to stock. As long as unposted sales remain, stock keeps drifting away from the actual quantity. |
Mandatory |