Select Distribution Routes
This window sets, for each distribution unit, which customers the representative visits, on which day of the coverage cycle, and at what time. The program calls the day number of the cycle a Visit. A customer can have up to ten visits, and each visit has a number and a time. For the practical steps see Select distribution routes.
Opening the window
- From the ribbon: Distribution > Coverage > Coverage > Select Distribution Routes.
- Your licence must include the distribution feature, and you need the Select Distribution Routes permission in Users Management, on the Reports page. The permission is a single check box that allows running the window.
- The window opens empty. The program loads no customer until you choose a distribution unit.
- When you close the window, the program saves its position and size for your user and uses them the next time.
| Window | How to open |
|---|---|
| Header and buttons | Shown when the window opens. |
| Grid | Shown in the middle of the window. |
| Table fields | Right-click the corner cell, then choose Table fields. |
| Select Visit Number | Click Visit Number. |
Header and buttons
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Distribution Unit | The distribution unit whose routes you set. | Yes | Choose the unit in the lookup box. When you change it, the program clears the grid and loads the customers of the new unit at once. It does not ask about unsaved changes in the grid, and it drops them. See Lookup boxes and search. |
| Account customers | The name of the account that groups the unit's customers. | — | Read only. The program fills it from the distribution unit card. It stays empty if the unit has no customers account. |
| Button | What it does |
|---|---|
| Account Card | Opens the card of the unit's customers account. Disabled while Account customers is empty. See Account card. |
| Close | Closes the window. If you chose a unit, changed the grid and did not save, it asks: "Window Contents Changed. Are you sure to ignore changes". Click Yes to close and drop the changes, or No to stay. |
| Preview | Opens the Distribution Routes report on what the grid holds now, including unsaved changes, with the visible columns only. See The report viewer. |
| Refresh | Reloads the unit's customers and routes from the database. If you changed the grid it asks first: "Are you sure to save changes on Distribution Routes?". Yes saves the changes and then reloads. No drops them. |
| Save | Saves the unit's routes. See What Save does. |
| Visit Number | Opens the Select Visit Number window. |
Grid
The grid has one row for each customer under the unit's customers account and its sub-accounts. Rows that already have a saved route come first, sorted by name. Customers with no route yet follow, sorted by name, and their rows are shaded gray. If the unit has no customers account, the grid shows only the unit's customers that have a saved route.
The first two columns are fixed. You choose the others in Table fields. If you choose nothing, the grid shows Region, Street, Visit 1 and Visit 1 Time.
| Column | What it shows | Editing |
|---|---|---|
| Code | The code of the customer's account. | Editable. Type a code, or part of one, to open the search. |
| Customer | The customer name. | Editable. Type a name, or part of one, to open the search. |
| Latin Name, Phone1, Phone2, Fax, Telex, Mobile, Pager, Notes | Data from the customer card. | Read only. The labels Phone1, Phone2, Fax, Telex and Details follow the custom names defined in your file. |
| Country, City, Region, Street, Details, ZIP Code, Post Box, Barcode | The customer's address and barcode from the card. | Read only. |
| Balance | The balance of the customer's account: debit minus credit of the posted entries, with no date limit. | Read only. The program calculates it only if you choose it in Table fields. |
| Balance by Cost Center | The same balance, limited to the entries of the cost center linked to the representative chosen in the distribution unit card. | Read only. Calculated together with Balance. |
| Field 1, Field 2 | The two custom fields of the customer card. | Read only. |
| Visit 1 to Visit 10 | The visit number: the day of the coverage cycle on which the representative visits the customer. | Editable. A whole number from 0 to the Coverage Days Count. 0 means the customer is not visited in that visit. |
| Visit 1 Time to Visit 10 Time | The time of the matching visit. | Editable. Shown as 08:30:00. |
Editing rules:
- The program limits the visit number to the Coverage Days Count (default
12) saved in the coverage options. A larger number, or text that is not a number, becomes0. - Type the time as
08:30or8:30:00. The program reads the digits between the colons and sets any part outside its range (hour above 23, minutes or seconds above 59) to zero. - When you type a customer code or name in a Code or Customer cell, the search opens. You can pick several customers at once. The program fills the rows from the current row. Each row gets the customer's data, zero visits and zero times. The program treats these rows as new, so they are shaded gray. If you did not choose a distribution unit first, the message "Distribution unit must be selected and date updated" appears. If the unit has no customers account, another message appears. In a new row the Latin Name column shows the region instead of the Latin name until you click Refresh.
- You cannot type in an empty row below the last used row. To add a customer, right-click a row number, choose Insert New Line, and type in the new row.
- The
Deletekey clears the value of a visit or time cell: the visit becomes0and the time00:00:00, and the cell shows empty. Ctrl+F4in a visit time cell continues the series of times at the same interval. The row and the two rows above it must hold the same visit number (not0), and the two time cells above must hold times, the upper one earlier than the lower one. Example: with08:00:00and then08:30:00above, the cell gets09:00:00and the cursor moves to the next row. The key works only when the time column comes right after the visit column, as in the default order.
Column header menu
Right-click any column header. Each item sorts the rows in ascending order and changes their order in the window only.
| Item | What it does | When it appears |
|---|---|---|
| Sort by Code | Sorts by account code. | Always. |
| Sort by Name | Sorts by customer name. | Always. |
| Sort by Region | Sorts by region. | If the Region column is shown. |
| Sort by Street | Sorts by street. | If the Street column is shown. |
| Sort by Visit 1 to Sort by Visit 10 | Sorts by visit number, then by visit time among equal rows. Rows with 0 come first. | For each Visit column that is shown. It does not appear if you chose Visit Time alone. |
Row menu
Right-click the row number. It holds the usual row items, Copy, Paste, Cut, Delete and Insert New Line, without Insert. They are explained in Grid. Delete removes the customer from the grid. If the row holds a customer, the program adds:
| Item | What it does |
|---|---|
| Show Customer Card | Opens the customer card of the row's customer. |
| Show Account Card | Opens the customer's account card. |
Corner menu
Right-click the corner cell. It holds the usual items, explained in Grid. The program adds one item at the end:
| Item | What it does |
|---|---|
| Table fields | Opens the Table fields window. |
What Save does
When you click Save:
- If no distribution unit is chosen, the program does nothing.
- If the unit has no customers account, the message "No Account Customers for Distribution Unit.No modification should be applied on Distribution Routs of Distribution Unit" appears and nothing is saved.
- If you added, deleted or pasted customers, the program checks the grid for a repeated customer. At the first repeat the message "Customer should not be duplicated" appears, followed by the row number, the customer code and the name. The cursor stops on that row and nothing is saved.
- The program saves in one transaction. If the list of customers changed, it rewrites the sub-accounts of the unit's customers account so that they match the customers in the grid. Then it deletes all the saved routes of the unit and writes one route for each row that has a customer and at least one visit number other than
0. A customer whose visits are all0keeps no route, and comes back after Refresh as a gray row. - No success message appears. The grid stays as it is, and the new rows keep their color until you click Refresh.
Table fields
This window chooses the grid columns. Its title is Table fields, and it opens as a dialog over the routes window.
| Item | Description | Required | Values and rules |
|---|---|---|---|
| Customer fields | A list of twenty customer fields, each with a check box. | — | The fields: Latin Name, Phone1, Phone2, Fax, Telex, Mobile, Pager, Notes, Country, City, Region, Street, Details, ZIP Code, Post Box, Barcode, Balance, Balance by Cost Center, Field 1 and Field 2. If you never saved a choice, Region and Street are ticked. |
| Visits Fields | A list of twenty fields: Visit 1 and Visit 1 Time, and so on up to Visit 10 and Visit 10 Time. | — | If you never saved a choice, Visit 1 and Visit 1 Time are ticked. |
| Button | What it does |
|---|---|
| Save | Saves your choice under your user name, so you see it whenever you open the window. Then it rebuilds the grid with the new columns and loads its data from the database, so unsaved grid changes are lost without a question. Save the grid before you change its fields. |
| Close | Closes the window. |
The grid shows the columns in the order of the two lists, customer fields first and then visits fields, not in the order you ticked them. If you choose Balance or Balance by Cost Center, the program calculates the balances at every load, which slows loading when there are many customers.
Select Visit Number
This window gives the visit you choose the same value for every customer in the grid. Its title is Select Visit Number, and it opens as a dialog.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Visit Number | The visit you change. | Yes | A list: Visit 1 to Visit 10. It starts on Visit 1. |
| Value | The visit number given to every customer. | Yes | A whole number from 0 to the Coverage Days Count. The cursor starts here. An empty box is refused. 0 is accepted and clears the visit for all customers. |
| Button | What it does |
|---|---|
| OK | If the value is not accepted, the message "Invalid value" appears. Otherwise the program puts the value in the chosen visit of every row in the grid, including the gray rows, then saves as Save does and refreshes the grid. It does not change the times. |
| Cancel | Closes the window without changing anything. |
The column of the chosen visit does not have to be shown in the grid.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| "Distribution unit must be selected and date updated" | You typed a customer in the grid before choosing a distribution unit. | Choose the unit first. The program clears the cell. |
| "No Account Customers for Distribution Unit.No modification should be applied on Distribution Routs of Distribution Unit" | You typed a customer in the grid, or clicked Save, and the unit has no customers account. | Link the unit to a customers account in its card. |
| "Customer should not be duplicated" + row number + code and name | The same customer is in two rows when you click Save, after adding, deleting or pasting customers. | Delete one of the rows and save. |
| "Window Contents Changed. Are you sure to ignore changes" | You clicked Close after changing the grid without saving. | Yes drops the changes, No keeps the window open. |
| "Are you sure to save changes on Distribution Routes?" | You clicked Refresh after changing the grid without saving. | Yes saves and reloads. No drops the changes. |
| "Invalid value" | In Select Visit Number, the value is empty, not a number, negative, or larger than the Coverage Days Count. | Type a valid value. |
CUST GUID NULL: + number | When you click Save after changing the list of customers, the grid held a row with no customer, such as an empty row between rows. It appears in English in every language. | Delete the empty row if you do not need it. The other rows are saved. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.