Retail
Input:
Output:
Assumptions:
All inputs are syntactically correct.
Errors:
- invalid Input
- variables of types int or float exceeding maximum (or minimum) range
- input(s) of incorrect format
Process Description:
User enters in all the pieces of data (except account_number)specified
under "Input"
this record.
Process name: Display & Query Retail Customer(1.2.4.2.1)
Input:
Output:
Assumption:
account number refers to a Retail Customer
Errors:
none
Process description:
Display Retail Customer referred to by account number
Input:
Output:
Assumption:
account number refers to a Retail Customer
Errors:
none
Process description:
Delete the Retail Customer Record from the database;
Input:
Output:
Assumption:
account number refers to a Retail Customer
Errors:
none
Process description:
Print out the complete Retail Customer Record, which includes all the attributes of the Retail Customer, and the information of newspaper consignment and magazine consignment.
Process Name:Display & Query Retail Newspaper Consignment (1.2.3.2.4.3.1)
Input:
Output:
Assumptions:
- Retail Newspaper Consignment Agreement datastore is in existence
- Agreement Number is syntactically correct
Errors:
- a record corresponding to the Agreement Number cannot be found within the Retail Newspaper Consignment Agreement datastore
Process Description:
if the (a record corresponding to the Agreement Number is found in the "above" datastore) then
else
Exits form the Mammoth system
Process Name:Add Retail Newspaper Consignment (1.2.3.2.4.2)
Input:
Output:
Assumptions:
- Account Number is correct and valid
- The Retail Newspaper Consignment Agreement datastore, along with all "other necessary" datastores are in existence
- all inputs are syntactically correct
Errors:
None
Process Description:
Have the user enter in all the variables listed under "Input" above (with the exception of Agreement and Account Number). while (any error occurs during the input of this data) then
end_while
After we generate an Agreement Number
datastore
Process Name:Edit Retail Newspaper Consignment
Input:
Output:
Assumptions:
- Agreement Number is correct and valid (i.e. it points to the record the user is looking for)
Errors:
AgreementNumber does not exist
Process Description:
A search is done in the Retail_Newspaper_Consignment_Agreement database for the particular record specified by the Agreement Number.
if (record is found) then
else
Process Name:Delete Retail Newspaper Consignment
Input:
Output:
Assumptions:
- Agreement Number is correct and valid (i.e. it points to the record the user is looking for)
Errors:
AgreementNumber does not exist
Process Description:
if (a record corresponding to the Agreement Number is found) then
else
display an error message
Process Name:Display & Query Retail Magazine Consignment (1.2.3.2.5.3.1)
Input:
Output:
Assumptions:
- Retail Magazine Consignment Agreement datastore is in existence
- Agreement Number is syntactically correct
Errors:
- a record corresponding to the Agreement Number cannot be found within the Retail Magazine Consignment Agreement datastore
Process Description:
if the (a record corresponding to the Agreement Number is found in the "above" datastore) then
else
Exits form the Mammoth system
Process Name:Add Retail Magazine Consignment (1.2.3.2.5.2)
Input:
Output:
Output: - a certain record within the above datastore is displayed on the screen (based on the Agreement Number) Assumptions: - Retail Magazine Consignment Agreement datastore is in existence - Agreement Number is syntactically correct Errors: - a record corresponding to the Agreement Number cannot be found within the Retail Magazine Consignment Agreement datastore Process Description: if the (a record corresponding to the Agreement Number is found in the "above" datastore) then display the found record onto the screen else return an error message
Assumptions:
- Account Number is correct and valid
- The Retail Magazine Consignment Agreement datastore, along with all "other necessary" datastores are in existence
- all inputs are syntactically correct
Errors:
None
Process Description:
User enter in all the variables listed under "Input" above (with the exception of Agreement and Account Number). while (any error occurs during the input of this data) prompt the user for new input end_while After an Agreement Number is generated, a new record is created in the Retail_Magazine_Consignment_Agreement datastore containing all the (valid) user entered data, Account Number, and the Agreement Number just generated.
Process Name:Edit Retail Magazine Consignment (1.2.3.2.5.2.3.1)
Input:
Output:
Assumptions:
- Agreement Number is correct and valid (i.e. it points to the record the user is looking for)
Errors:
AgreementNumber does not exist
Process Description:
A search is done in the Retail_Magazine_Consignment_Agreement database for the particular record specified by the Agreement Number.
if (record is found) then
else
Process Name:Delete Magazine Consignment (1.2.3.2.5.2.3.2)
Input:
Output:
Assumptions:
- Agreement Number is correct and valid (i.e. it points to the record the user is looking for)
Errors:
AgreementNumber does not exist
Process Description:
if (a record corresponding to the Agreement Number is found) then
else
Input:
Output:
Assumption:
none
Errors:
none
Process description:
Add a complaint to Retail Customer Record, automatically assigning the date.
Input:
Output:
Assumption:
account nubmer and date refer to a Customer Complaint
Errors:
none
Process description:
Display complaint.
Input:
Output:
Assumption:
All inputs are syntactically correct.
Errors:
account_number is not in use, route_number doesn't exist, district_number doesn't exist.
Process description:
If any attribute of the Retail Customer Record has been changed, update the record.(Note: account_number can not be changed)