User: Clerk
Input: UPC, quantity, payment type
Optional input (depending on payment type): cash amount,
or credit card type and number, or account type and number.
Output: "OK" or "Cancelled"
Basic Case:
The system will remove quantity many items from the item
table check if the item is taxable, and calculate the total value. If the amount
is to be charged on a credit card, will ask for authorization. If the payment
is to be charged to a UBStore account, check for sufficient funds. If all go
well it adds a log record in the purchases log table and returns
"OK".
Exceptions:
User: Clerk
Input: UPC, quantity, payment type
Optional input (depending on payment type): credit card
type and number, or account type and number.
Output: "OK" or "Cancelled"
Basic Case:
The system will add quantity many items to the item
table, check if the item is taxable, and calculate the total value to be
refunded. If the payment was through a BStore account, it credits the account.
If all go well ,it adds a log record in the purchases log table and returns
"OK". (Crediting a credit card is done manually by the clerk.)
Exceptions:
User: Manager
Input: date, UPC, quantity, supplier name.
Optional input :
·
If item is new: type sell price, taxable status,
supplier price.
·
If item is a book: title, authors, publisher.
·
If it is a text book: courses in which it is used
·
If it is not a book: name, manufacturer
Output: "OK" or "Cancelled"
Basic Case:
The system will check if the item already exist in the
database. It will update the item table, the supplies table if the item is new,
the book and nonbook tables according to the item type, and will insert a
record in the shipment log.
Exceptions: