Skip to main content

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​

FieldDescriptionRequiredValues and rules
PeriodThe accounting period whose targets are calculated and saved.YesThe 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 UnitThe unit whose customers' targets are calculated.YesType 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.
BranchThe branch of the targets.Yes, when shownIt 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 PriceThe materials price used to value the quantities of the targets when calculating.YesWholesale, 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.
CurrencyThe currency of the amounts.YesShown only if your licence has more than one currency. It starts on the default currency. Choose it before Calculate.
ParityThe 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—NoThe program shows no value in it and reads nothing from it in this window.
Customers TypesThe 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.

ColumnDescriptionRequiredValues and rules
CustomerThe customer name.—Read only.
Calculated TargetThe target the program calculated with the chosen price and currency.—Read only.
Set TargetThe target you decide for the customer.NoAfter Calculate it equals the calculated target. Type the value you want.
NotesA free note on the customer.NoFree text.

Under the grid, the box Total shows the total of the Set Target column. It updates on every change.

Buttons​

ButtonWhat it does
SaveChecks 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.
RefreshShows 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.
CalculateClears the grid and calculates the targets of the unit's customers. It does not ask first.
PreviewOpens the Customers Targets report on what is in the grid now. You do not have to save first.
CloseCloses 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.

  1. The program deletes the unit's targets saved for the period, and for the branch if you chose one.
  2. It writes the grid rows that have a customer, with the period, price, currency, parity and the customer's ratio in the unit.
  3. 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.
  4. 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​

MessageWhy it appearsWhat to do
No Accounting PeriodsNo sub-periods are defined, and you clicked Calculate, Refresh or Save.Define the accounting periods in the program options.
Please select branchThe branch is shown and empty, and you clicked Calculate or Refresh.Choose the branch.
Distribution Unit should be selectedYou clicked Calculate, Refresh or Save with no unit.Choose the distribution unit.
No targets are saved for materials in selected period. Cannot calculate customers targetsYou 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 periodYou 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 successfullyThe save finished.Nothing.
Press Update button then try againYou 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.

This page applies to alameen ERP 10, version 10.1.79.764.