SquidSoft Inc. - GUIDOs
Detailed Design Document - Process Specifications


           Process 9.1.1: Add Store           

Inputs:

  • Store ID - from user
  • Store name - from user
  • Address - from user
  • Manager name - from user
  • Phone number - from user

Outputs:

  • Instance of "store" to be added to the data store "Stores"
  • Message to screen

Error conditions:

  • Syntactically incorrect input(s)
  • Store ID is already in use

Algorithm:

give user interface to provide store information

if inputs from user are syntactically correct then
  store[Store ID] := Store ID
  store[Store Name] := Store name
  store[Address] := Address
  store[Manager name] := Manager name
  store[Phone number] := Phone number

  Send store to the data store (stores) to be added

  if data store reported success then
     print_to_user `ok'
  else
     print_to_user  `Store ID number is already in use'
  end if
else
  print_to_user `Syntax error in input(s)'
end if
 
return to the interface to allow user to choose other
options or go back to the main menu

           Process 9.1.2: Delete Store           

Inputs:

  • Store ID - from user

Outputs:

  • Instance of "store" (specified by its Store ID) to be deleted from the data store "Stores"
  • Message to screen

Error Conditions:

  • Syntactically incorrect input
  • store does not exist in data store

Algorithm:

if input from User is syntactically correct then
  give user interface to delete an instance of "store" from
  data store "Stores"

  if store id is in data store "Stores" then
    if no employees (in Employee data store) is associated with
      store id then
      if no pending Orders (in Orders data store) is associated with
        store id then
        if no inventory (in Inventory data store) is associated with
          store id then
          *retrieve store record
          *verify deletion
          *return to the interface to allow user to choose other options
           or go back to the main menu
        else
          *prompt user that there is inventory associated with the
           store id
          *return to the interface to allow user to choose other options
           or go back to the main menu
        end if
      else
        *prompt user that there is a pending order associated with the
         store id
        *return to the interface to allow user to choose other options
         or go back to the main menu
      end if
    else
      *prompt user that there is employee associated with the store id
      *return to the interface to allow user to choose other options
       or go back to the main menu
    end if
  else
    *prompt user that the store id is not in the data store "Stores"
    *return to the interface to allow user to choose other options
     or go back to the main menu
  end if
else
  no action
end if

           Process 9.1.3: Update Store           

Inputs:

  • Store ID - from user
  • Store name - from user
  • Address - from user
  • Manager name - from user
  • Phone number - from user

Output:

  • Instance of "store" to be modified in the data store "Stores"
  • Message to screen

Error conditions:

  • syntactically incorrect input(s)
  • Store ID is already in use
  • try to modify the Store ID

Algorithm:

give user interface to update an instance of "store" from the 
data store "Stores" (values in fields are by _default_, the values
currently entered for that store)

if inputs from user are syntactically correct then
  store[Store ID] := Store ID
  store[Store Name] := Store name
  store[Address] := Address
  store[Manager name] := Manager name
  store[Phone number] := Phone number

  Send store to the data store (stores) to be added

  if data store reported success then
    print_to_user `Store modified succesfully'
  else
    print_to_user `Store ID does not exist!'
  end if
else
  print_to_user `Syntax error in input(s)'
end if

return to the interface to allow user to choose other
options or go back to the main menu

           Process 9.1.4: Print Store           

Inputs:

  • store information list requested (control from users)

Output:

  • print a listing of all the stores and information

Error conditions:

  • none

Algorithm:

give user interface to print a listing of all the stores' information

current_store = 0

Repeat
  read current_store from the data store "stores"
  send_to_printer store[Store ID] 
  send_to_printer store[Store Name]
  send_to_printer store[Address] 
  send_to_printer store[Manager name]
  send_to_printer store[Phone number]
  current_store = current_store+1
Until stores[current_store] == NULL

return to the interface to allow user to choose other
options or go back to the main menu
Login  
Main Menu  
Security  
Password  
Orders  
Product  
Personnel  
Stores  
Cashier  
Inventory  

Main Page  


About SquidSoft Inc. This site created and maintained
with Mortar