Remove a Borrower

Remove a Borrower

Interface Definitions

Inputs from the user:

Outputs to the user:

If Successful:

Data Abstractions

Design

Sub-Modules

Error Handling

Search Unsuccessful:

Syntax Errors in ID or name:

Imports

Exports

PseudoCode/Visual Basic Code

Remove Borrower

calls search for borrower
if (cancel) then exit remove borrower

if (one borrower is selected || only one item remains within search screen) then
	remove search window
	if (selected borrower.fines > $0.00) then
		errorbox "Borrower has outstanding fines and cannot be removed"
		when (ok) is pressed return to search for borrower
	else
		display remove window containing chosen items information
	end if
	if (Remove button pressed) then
		messagebox "Are you sure you want to delete "  & first and last name of borrower & " ?"
		if (Yes)  then 
			Remove item from database
			Return to search for borrower 
		else
			Return to search for borrower
		end if
	end if
end if	



Back to the Borrower Functions Index