Customers Targets
The Customers Targets window shows the target of each customer of one distribution unit in one accounting period. The target is a money value, not a quantity. The program calculates it from the material targets saved for each customer and from the materials price. You then change the Set Target and save it. For the steps see Set customers targets.
Opening the window
On the ribbon click Distribution > Targets > Targets, then choose Customers Targets from the menu.
- Your licence must include the Distribution module.
- The user needs the Customers Targets permission in Users Management > Reports.
- The window opens empty. Choose the distribution unit and click Calculate or Refresh.
- Before Calculate, save Materials Targets by Customers for the same period.
Header fields
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Period | The accounting period whose targets are calculated and saved. | Yes | The periods that have no sub-periods, ordered by start date. The list starts on the first one. They are explained in Distribution Unit Targets. |
| Distribution Unit | The unit whose customers' targets are calculated. | Yes | Type the code or part of the name and press Enter, or choose from the Select Distribution Unit window. See Lookup boxes. You define a unit in the Distribution Unit Card. |
| Branch | The branch of the targets. | Yes, when shown | It is shown under the conditions explained in Distribution Unit Targets. Calculate and Refresh check that a branch is chosen. Save does not. When you choose a branch, the unit targets saved and deleted by Save are limited to it. |
| Materials Price | The materials price used to value the quantities of the targets when calculating. | Yes | Wholesale, Semi wholesale, Export, Distributor, Retail or Consumer. The prices the user has permission for appear. The cost does not appear in this window. Refresh sets the price back to the saved one. |
| Currency | The currency of the amounts. | Yes | Shown only if your licence has more than one currency. It starts on the default currency. Choose it before Calculate. |
| Parity | The exchange rate of the chosen currency. | — | Read only, unless the user has the Change Currency Exchange Rate permission in Users Management > Operations. |
| Unlabelled box next to Parity | — | No | The program shows no value in it and reads nothing from it in this window. |
| Customers Types | The customer types that take part in the calculation and the display. | — | A list of check boxes. The first is None, for customers with no type. Then come the customer types defined in Customers Types. All are ticked when the window opens. Calculate and Refresh are limited to the ticked types. |
The grid
The grid holds 1000 rows. Each row is a customer. You do not add a customer by hand: the rows come from Calculate or Refresh.
| Column | Description | Required | Values and rules |
|---|---|---|---|
| Customer | The customer name. | — | Read only. |
| Calculated Target | The target the program calculated with the chosen price and currency. | — | Read only. |
| Set Target | The target you decide for the customer. | No | After Calculate it equals the calculated target. Type the value you want. |
| Notes | A free note on the customer. | No | Free text. |
Under the grid, the box Total shows the total of the Set Target column. It updates on every change.
Buttons
| Button | What it does |
|---|---|
| Save | Checks the distribution unit and that periods exist, then asks you to confirm. When you confirm, it replaces the unit's saved targets for the period with the grid and adjusts the materials targets, as in Saving, then shows the success message. |
| Refresh | Shows the targets saved for the unit in the period and branch, for customers of the ticked types, and sets Materials Price to the price saved with them. It does not ask before it replaces the grid. |
| Calculate | Clears the grid and calculates the targets of the unit's customers. It does not ask first. |
| Preview | Opens the Customers Targets report on what is in the grid now. You do not have to save first. |
| Close | Closes the window. If you changed something, the program asks before discarding, when the warning option On cancel is on. See Confirmation messages. |
How the program calculates and saves
Calculation
- Calculate takes the customers linked to the distribution unit in its routes, of the ticked types, that have material targets saved in the period and branch.
- For each customer the program adds up the target quantity of every material, as calculated in Materials Targets by Customers, multiplied by its price of the chosen type in the chosen currency.
- It divides the total by the unit's share of the customer's sales. The share is the customer's sales recorded on the cost center of the unit's primary salesman, divided by the customer's total sales. The period is the sales period saved with the Materials General Targets of the same period and branch.
- If the customer has no sales, the total is divided by the number of distribution units that serve the customer. If the share is zero, the target is zero.
- It shows Calculated Target and Set Target with the same figure, and marks the window as having an unsaved change.
Saving
The save runs inside one database transaction.
- The program deletes the unit's targets saved for the period, and for the branch if you chose one.
- It writes the grid rows that have a customer, with the period, price, currency, parity and the customer's ratio in the unit.
- It recalculates the Target column of Materials Targets by Customers for the customers of the period: it starts from the Calculated Target of each material and adds its share of the difference between the Set Target and the Calculated Target. So the Target values you changed by hand for these customers are replaced.
- It replaces the quantities of Materials General Targets with the total of the customers' material targets.
Amounts and currency
- Calculate shows the amounts in the chosen currency.
- Save stores each amount multiplied by the parity in the Parity field at the moment you click Save.
- Refresh shows the saved amount divided by the parity saved with it, without changing the Currency field. Choose the currency you saved with before you save again.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| No Accounting Periods | No sub-periods are defined, and you clicked Calculate, Refresh or Save. | Define the accounting periods in the program options. |
| Please select branch | The branch is shown and empty, and you clicked Calculate or Refresh. | Choose the branch. |
| Distribution Unit should be selected | You clicked Calculate, Refresh or Save with no unit. | Choose the distribution unit. |
| No targets are saved for materials in selected period. Cannot calculate customers targets | You clicked Calculate and there is no result: no saved material targets fit the types, the unit and the branch. | Save the materials targets by customers, or tick other types. |
| No targets saved in selected period | You clicked Refresh and no targets are saved for this unit. | Click Calculate, then Save. |
| Are you sure to save modifications in Selected period? | You clicked Save. The buttons are Yes and No. | Click Yes to save. |
| Saved successfully | The save finished. | Nothing. |
| Press Update button then try again | You clicked Preview and the grid is empty. | Click Calculate or Refresh, then Preview. |
| Error In Stored Proc: … | The database refused one of the calculations. The text that follows is the call, in English. | Give the full text to your system administrator. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.