Skip to main content

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.
WindowHow to open
Header and buttonsShown when the window opens.
GridShown in the middle of the window.
Table fieldsRight-click the corner cell, then choose Table fields.
Select Visit NumberClick Visit Number.
FieldDescriptionRequiredValues and rules
Distribution UnitThe distribution unit whose routes you set.YesChoose 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 customersThe 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.
ButtonWhat it does
Account CardOpens the card of the unit's customers account. Disabled while Account customers is empty. See Account card.
CloseCloses 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.
PreviewOpens the Distribution Routes report on what the grid holds now, including unsaved changes, with the visible columns only. See The report viewer.
RefreshReloads 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.
SaveSaves the unit's routes. See What Save does.
Visit NumberOpens 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.

ColumnWhat it showsEditing
CodeThe code of the customer's account.Editable. Type a code, or part of one, to open the search.
CustomerThe customer name.Editable. Type a name, or part of one, to open the search.
Latin Name, Phone1, Phone2, Fax, Telex, Mobile, Pager, NotesData 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, BarcodeThe customer's address and barcode from the card.Read only.
BalanceThe 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 CenterThe 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 2The two custom fields of the customer card.Read only.
Visit 1 to Visit 10The 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 TimeThe 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, becomes 0.
  • Type the time as 08:30 or 8: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 Delete key clears the value of a visit or time cell: the visit becomes 0 and the time 00:00:00, and the cell shows empty.
  • Ctrl+F4 in 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 (not 0), and the two time cells above must hold times, the upper one earlier than the lower one. Example: with 08:00:00 and then 08:30:00 above, the cell gets 09:00:00 and 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.

ItemWhat it doesWhen it appears
Sort by CodeSorts by account code.Always.
Sort by NameSorts by customer name.Always.
Sort by RegionSorts by region.If the Region column is shown.
Sort by StreetSorts by street.If the Street column is shown.
Sort by Visit 1 to Sort by Visit 10Sorts 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:

ItemWhat it does
Show Customer CardOpens the customer card of the row's customer.
Show Account CardOpens 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:

ItemWhat it does
Table fieldsOpens the Table fields window.

What Save does​

When you click Save:

  1. If no distribution unit is chosen, the program does nothing.
  2. 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.
  3. 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.
  4. 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 all 0 keeps no route, and comes back after Refresh as a gray row.
  5. 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.

ItemDescriptionRequiredValues and rules
Customer fieldsA 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 FieldsA 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.
ButtonWhat it does
SaveSaves 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.
CloseCloses 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.

FieldDescriptionRequiredValues and rules
Visit NumberThe visit you change.YesA list: Visit 1 to Visit 10. It starts on Visit 1.
ValueThe visit number given to every customer.YesA 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.
ButtonWhat it does
OKIf 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.
CancelCloses the window without changing anything.

The column of the chosen visit does not have to be shown in the grid.

Messages​

MessageWhy it appearsWhat 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 nameThe 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: + numberWhen 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.

This page applies to alameen ERP 10, version 10.1.79.764.