Skip to main content

Conditional Discounts Calculation

This report answers one question: for the customers of the contract offers, how much did they buy in the period, and what discount do they get? For each customer and for each item of the offers, it shows the net quantity, the net sales value, the discount percent, the discount that the calculation posted in the entries, and the discount that the sales justify today. You can open each customer by period.

The report reads the bills and the entries. It does not make entries. The entries come from the window Conditional Discount Calculation.

Opening the report​

From the ribbon: Materials > Special Offers > Conditional Discounts > Conditional Discounts Calculation. The command appears for users who have the permission Conditional Discounts Calculation in the Reports list of Users Management. It needs the materials feature and the contract special offers feature in your licence.

The conditions window appears first. Set the conditions, then click Preview. The page Report parameter forms explains the buttons of this window, and Viewer explains what follows.

Parameters​

The conditions are listed in the order of the standard window layout. After the report shows, you can change all of them in the Option List panel of the viewer, under the headings General, Period, Options and Advanced Options, and click Apply. The options that change the columns are disabled in the panel while a workspace is in use, and after Refresh or Apply. To change them, run the report again from the conditions window.

ConditionMeaning and effectDefault and rules
Date (From and To)The period. The program cuts it into calendar months: each month is a period of the report. The first and the last month may be partial. A bill belongs to the period of its date.From starts at the opening date of the file, or at the first day of the current month if the program option "Start Date" is beginning date is off. To starts as today.
AccountKeeps only the customers whose account is this account or is under it.Empty, meaning every customer.
Use UnitThe unit of the quantities in the report.Default Unit. The choices are First Unit, Second Unit, Third Unit and Default Unit. With Default Unit, each material shows in its own default unit.

Under the heading Advanced Options the options come in two lists:

ConditionMeaning and effectDefault and rules
Sales QuantityShows the column Quantity.On.
Sales ValueShows the column Net Sales Value.On.
Discount PercentShows the column Discount Percent.On.
Calculated Discount ValueShows the column Calculated Discount Value and the column Sum Discount.On.
Actual Discount ValueShows the column Actual Discount Value.On.
By Calculated PeriodsShows under each customer one line for each month.On. Without it, the report has one line for each customer, and the columns From Date and To Date do not appear.

The report takes the contract offers that are active and overlap the period, the bills of the sales types and the sales returns, and the branches that you may read.

The header shows the account and the unit, then the period, then the Branches if branches are on in the file.

Columns​

The report is a pivot table. Each customer is a line. The items of the offers (a material, a group or a condition) are column groups, and under each item come the value columns. When you turn on By Calculated Periods, each customer line opens into lines for the months.

ColumnMeaningShown whenHow it is calculated
CustomerThe customer.Always.On the month lines it is empty.
BranchThe branch of the bills.Always.Empty if the file has no branches.
From Date and To DateThe first and the last day of the month.By Calculated Periods is on.The month, cut to the dates of the report.
QuantityThe net quantity bought of the item.Sales Quantity is on.The quantity of the sales bill lines, minus the quantity of the sales return lines, in the unit you chose.
Net Sales ValueThe net value of what was bought.Sales Value is on.The value of each line after the discounts and the extras of the line and the share of the discounts and the extras of the bill, with the sales returns subtracted.
Discount PercentThe percent of the condition of the offer.Discount Percent is on.From the Discount column of the contract table of the offer.
Calculated Discount ValueThe discount that the calculation posted in the entries.Calculated Discount Value is on.The debit of the lines of the entries that the window Conditional Discount Calculation made, for this customer and this condition, inside the month. It is 0 if no entry exists.
Actual Discount ValueThe discount that today's bills justify.Actual Discount Value is on.Net Sales Value × Discount Percent. It changes if you edit a bill after the calculation.
Sum DiscountThe total of Calculated Discount Value over all the items of the line.Calculated Discount Value is on.A sum of the columns Calculated Discount Value of the items.

The report has no total line at the bottom. The customer line adds its month lines. The general grid commands are in Report grid tools.

A line appears only for an item that has bills in the period. The report does not test the condition limit: the column Actual Discount Value is the percent on all the net sales. For the limit, see Realized Conditional Discounts Percentage.

Worked example​

The offer: customer Alnakheel, the group Beverages, Condition Type Sales Value, Condition Value 50,000, Discount 2. The window Conditional Discount Calculation was run for January and February with the entries 400.00 and 760.00. Then a bill of February was corrected, and the net sales of February became 37,000.00.

You run the report from 1-1-2026 to 28-2-2026:

From DateTo DateNet Sales ValueDiscount PercentCalculated Discount ValueActual Discount Value
1-1-202631-1-202620,000.002%400.00400.00
1-2-202628-2-202637,000.002%760.00740.00
Customer line57,000.002%1,160.001,140.00

Sum Discount of the customer is 1,160.00. The difference of 20.00 shows that the entry of February is out of date. Calculate February again.

Messages​

Message or caseWhy it appearsWhat to do
The report is emptyNo bill of the customers of an active contract offer matches an item of the offer in the period.Widen the dates and check the offers.
A customer I know is not shownHe has no bill that matches an item of the offer in the period, or his bills are of a branch you cannot read.Check the offer table and the branch permissions.
Calculated Discount Value is 0The entries for the month were not made, or were deleted by the yearly calculation because the customer did not reach the limit.Run the window Conditional Discount Calculation.

This page applies to alameen ERP 10, version 10.1.79.764.