The user interface for administering order types is opened by clicking on the 'Administrator' button on the toolbar and selecting the 'Order types' option. The user interface consists of a table and a toolbar, located on the right.
The table consists of the following columns:
'ID' - a unique identifier of the order type 'Name' - the name of the purchase order type The toolbar consists of the following buttons 'New', 'Edit', 'Delete', 'Save' and 'Load from Repository'.
Setting up a new type of purchase order
Clicking on the 'New' button adds a new type of purchase order within the table with the automatically generated ID and name, and an indication that it is not active (that it cannot be selected), and opens a window for editing the newly entered order type.
Editing purchase order type data
Clicking on the 'Edit' button, next to the previously selected order type within the table, opens the 'Edit selected order type' window in which the data is edited.
This window consists of a data entry form that contains the following fields:
'Name' - change the name of the purchase order type
In the lower right corner of the window there are two buttons - 'OK' and 'Cancel'. Pressing the 'OK' button saves the entered changes, while pressing the 'Cancel' closes the window without changes.
Delete purchase order type
The order type, once marked inside the table, can be deleted by pressing the 'Delete' button on the toolbar. Before deleting, the application will ask you to confirm whether we want to delete this type of purchase order. Pressing the 'Yes' button confirms the deletion, while pressing 'Cancel' closes the window without changes.
Saving and loading
All changes to purchase order types are saved by clicking the 'Save' button on the toolbar.
By clicking on the 'Load from repository' button, the data on the types of purchase orders that were last saved are loaded. Before loading, the application will ask for confirmation to discard all changes and load the last saved state. Pressing the 'Yes' button will load the last saved state, while pressing the 'Cancel' window closes and nothing changes.