Check if the window's list of books on loan has a length
greater than zero.
If the customer has books on loan then notify the user
with a dialog box with the message: 'Customer has books
out on loan. Customer has not been removed.' Press OK
and discontinue the remove process.
Close the dialog box and return control to the
view/update window.
Check if the customer has outstanding fines.
If this is the case, a message box will pop up.
Message: "The customer has outstanding fines. Need a
supervisor
approval. Do you wish to continue?"
Buttons Present: YES, NO
- YES
- A supervisor approval window pops up (described in
'Supervisor Approval' section). If the approval was ok
then the system will close the message box and continue
to remove the customer. Otherwise, the system will
close the message box and discontinue removing the
customer.
- NO
- Close the message box and discontinue the remove process
by returning control to the 'View/Update' window.
The system will delete the customer from the database.
If the customer didn't have outstanding fines then a dialogue
box will pop up with the message: "Are you sure you want to
remove this customer?"
Buttons Present: YES, NO
- YES
- Remove the dialog box.
Remove the customer from the database, along with any
records of books that were on hold for that customer.
Close the View/Udate window and return to the Search
customer window.
- NO
- Remove the dialog box.
Discontinue the remove process and return control to
the View/Update window.
If an unrecoverable error (such as read write errors to
the
database) occurs the module will output the error code to
the error handling module and discontinue the process.