Distribution Vehicle Card
In the Distribution Vehicle Card you define a vehicle with its capacity in cubic meters, to choose it in the Distribution Unit Card. You also modify and delete vehicles here. For the steps see Add a distribution vehicle.
Opening the window
- From the ribbon: Distribution > Settings > Cards > Distribution Vehicle Card. The command appears if your licence includes the Distribution feature and you have the Distribution Vehicle Card permission in Users Management. The permission has four levels: add, browse, modify and delete.
- From the "Select Vehicle" window of the vehicle box in the Distribution Unit Card, with the command that adds a new vehicle: the card opens empty.
If you have neither the add level nor the browse level, you get the message "You don't have the appropriate authority to perform this operation" when you open a new card. If you move with the browse buttons to a vehicle whose Security Level is higher than your permission, the text "You do not have permission" replaces the field texts, and Add, Modify and Delete are disabled. Click New to start another vehicle.
Fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Browse buttons | Move between saved vehicles: first, previous, next and last, and the record number box if the option Show card number is on. | — | The shortcuts are in the record navigator. If you move while the card has unsaved changes, the program asks, when the warning option On cancel is on. |
| Security Level | The secrecy level of the vehicle. | No | A user opens the vehicle if their permission level is equal to or higher than the security level. A new card starts at level 1, and New sets it back to 1. When you Add a vehicle with a level above the add level you hold, the message "You don't have the authority to save in the specified security level" appears. The field is disabled for users who may not change security levels. |
| Code | The vehicle code. | Yes | Not repeated among vehicles. Example: V01. A new card starts with an empty box. New always raises the number at the end of the code shown by one, whatever the option Increment material code after save says, so if you click New after Add the code goes up twice. After you Add a vehicle, the program raises the last number in the code by one if the option Increment material code after save is on, and it is on by default. It also raises Name and Latin Name if the options Increment material name after save and Increment material latin name after save are on. You find them in Program Options. |
| Name | The vehicle name. | Yes | Not repeated among vehicles. Example: Distribution Van 1. |
| Latin Name | The vehicle name in Latin letters. | No | The program does not check that it is unique. Example: Distribution Van 1. |
| Capacity | The load capacity of the vehicle in cubic meters. The unit "m3" shows beside the box. | Yes | A number greater than 0. Example: 15. The box shows the number of decimal places set for prices in Program Options. New clears it. If the capacity is 0 or less, the message "Capacity value must be positive" appears. |
The Code, Name and Latin Name boxes have a menu to search for an existing card, explained in Lookup boxes and search.
Buttons
| Button | What it does |
|---|---|
| Add | Saves the typed vehicle as a new vehicle. If a saved vehicle is on the screen, the program first asks "This window contains some information that might be duplicated..." and you confirm with Yes or No. After saving, the values you typed stay in the boxes and Code is raised as the fields table says, so click New before you write another vehicle. See When you add. |
| New | Starts a new vehicle: it raises Code, clears Name, Latin Name, Capacity and the list of branches, sets Security Level back to 1, and puts the cursor in Code. It disables Modify and Delete. If the card has unsaved changes the program asks before it starts, when the warning option On cancel is on. |
| Modify | Saves the edits of the vehicle shown. It is disabled until a saved vehicle is shown with the browse buttons. See When you modify. |
| Delete | Deletes the vehicle shown, after confirmation. It is disabled until a saved vehicle is shown. See When you delete. |
| Branches... | Sets the branches where the vehicle appears. It appears only if branches are on in the licence and in the file options and the file has at least two branches. See the branch selection window. |
| Close (it reads Cancel after any change) | Closes the card. If it has unsaved changes and the warning option On cancel is on, the program asks whether to discard them. |
You set the warning options in Program Options.
Rules for saving, modifying and deleting
When you add
- If a saved vehicle is on the screen, the program asks whether you really want to add. Click Yes to continue.
- It checks the add permission on Distribution Vehicle Card and the Security Level.
- If the warning option On save is on, the program asks "Are you sure you want to complete saving?". Click Save.
- It checks the fields in this order: Name and then Code are not empty, then Code is not used by another vehicle, then Name, then Capacity is greater than
0. This check runs even if you clicked Cancel in the question of the previous step, so a message about a missing field can appear although you cancelled. - It saves the vehicle and its list of branches in one operation. If one part fails, nothing is saved.
- The values stay in the boxes, and Code is raised by the option described in Fields.
When you modify
- It checks the modify permission on Distribution Vehicle Card for the Security Level of the vehicle shown. If you do not have it, the message "You don't have the appropriate authority to perform this operation" appears.
- If the warning option On modify is on, the program asks "Are you sure you want to save changes ?". Click Save.
- It checks the fields as in adding, without counting the vehicle itself as a repeat. This check runs even if you cancelled the question of the previous step.
- It saves the edits and the list of branches in one operation. The card stays on the same vehicle.
When you delete
- It checks the delete permission on Distribution Vehicle Card for the Security Level of the vehicle shown.
- If the vehicle is chosen in at least one distribution unit card, the message "Vehicle cannot be deleted. Vehicle used in Distribution Unit Card." appears, and nothing is deleted.
- It asks "Are you sure you want to DELETE". Click Yes.
- The program deletes the vehicle. The values stay shown in the card, and Modify and Delete are disabled. Click New to start another vehicle.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| This window contains some information that might be duplicated... Are you sure you want to add? | You clicked Add and a saved vehicle is on the screen. | Click Yes to add it as a new vehicle, or No, and use Modify to change the vehicle shown. |
| Are you sure you want to complete saving? | You clicked Add and the warning option On save is on. | Click Save to continue, or Cancel to go back. |
| Are you sure you want to save changes ? | You clicked Modify and the warning option On modify is on. | Click Save to continue, or Cancel to go back. |
| Are you sure you want to ignore information entered here and move into a new record? | You used a browse button or New while the card has unsaved changes, and the warning option On cancel is on. | Click Move to lose the changes, or Don't Move to stay. |
| You must enter the name (alert title: Empty Field) | Name is empty. | Type the name. The cursor goes back to the box. |
| Code Missing (alert title: Empty Field) | Code is empty. | Type the code. |
| The code is used in another card | The code exists in another vehicle. | Change the code. |
| Name is already used in another card | The name exists in another vehicle. | Change the name. |
| Capacity value must be positive | Capacity is 0, empty or negative. | Type a capacity greater than 0. |
| You don't have the authority to save in the specified security level | Security Level is higher than the add level you hold. | Choose a lower level, or ask for the permission. |
| You don't have the appropriate authority to perform this operation | You do not have the modify or delete level for the security level of the vehicle shown, or you have neither the add nor the browse level when you open a new card. | Ask the administrator for the permission. |
| Vehicle cannot be deleted. Vehicle used in Distribution Unit Card. | The vehicle is chosen in a distribution unit card. | Change the vehicle in the unit card, then delete. |
| Are you sure you want to DELETE | You clicked Delete and nothing prevents the deletion. | Click Yes to delete, or No to go back. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.