Sales agreements in AX 2012 R3

Many distribution companies operate a “list-less” pricing model where an item has a ‘List’ price (sometimes called a Trade price – or it may even be a Recommended Retail Price, RRP). The sales price is calculated by applying a discount to the List price.

Obviously, this is well supported in Microsoft Dynamics AX – perhaps too well, because there are several ways of assigning a customer discount. Let me count the ways – but first ….

There are actually three types of discount on a sales order:

  • Line discounts
  • Multi-line discounts
  • Total discount

Line discount is an Amount (2) or Percentage (3) applied to the item’s ‘Unit price’ (1) which is multiplied by the sales order line quantity to give the line ‘Net amount (4).

I’m going to ignore the Multi-line discount amount (5), the Multiline discount percentage (6) and the Total discount percentage (7) and concentrate on the Line discount.

You’ll notice that this is screen-shot from the demo Hyper-V image, and I’ve hidden the catch weight and potency fields to simplify the screen a bit.

I’ve rarely seen discount amount used in practice, and I usually hide it – just so that I don’t accidentally enter the discount amount when I mean to enter the discount percentage.

The Unit price (List or Trade price) comes from a sales price trade agreement (or the sales price field on the item master), and our line discount comes from the sales line discount trade agreement. All sales (and purchase) price and discount trade agreements are stored in the same table, and use the familiar ‘Table/Group/All’ hierarchy.

In the sales order above, my customer is in the sales price group 01, and the customer line discount group 01, and the item is in the item line discount group 01.

There are 9 combinations of customer and item price and line discounts, and the system searches them in sequence from the most specific (customer + item) to the most general (all + all):

Specific item Group of items All items
Specific customer




Group of customers




All customers




The ‘Find next’ flag on the sales price/discount trade agreement specifies whether the system will stop its search when it finds a match, or whether it’ll continue searching. If there’s more than one price/discount found the system gives the customer the lowest price / maximum discount that it finds.

Just a note on the sales discount trade agreement: you can set up 2 discounts:

In this case you do not get a 15% percent discount. The system applies Discount percentage 1 first, then Discount percentage 2 to the remainder (giving 14.5%), and that’s how it’s shown on the sales order line:

You’ll know that the sales price/discount trade agreements can be bounded by From/To date; From/To quantity; Unit of measure; and optionally Product and Storage dimensions so probably provide all the pricing models you need – but there are a couple of other options for setting a discount percentage.

Sales agreements

A sales agreement records a contract that commits a customer to buy a product in a certain quantity or amount over time in exchange for special prices and discounts. The prices and discounts in the sales agreement overrule the sales prices or discounts in the sales price/discount trade agreements.

You create a Sales agreement for a specific customer; for a from/to date range

Sales and marketing > Common > Sales orders > Sales agreements:

The ‘Default commitment’ type controls whether you’ll add item numbers or sales categories to the Sales agreement line, and whether you can specify a Net amount, Unit price or Discount percentage. I want to enter a Discount percentage so I used ‘Product category value commitment’

The sales agreement has to be set to Status = Effective before it’ll be used by the system.

Now let’s enter a sales order for the customer. If I select the customer, and click New > Sales order the system displays a pop-up that lets me select the sales agreement:

I select the agreement and click ‘Use agreement’ and when I enter the sales order I get the line discount percentages defined by the Sales agreement:

Alternatively, I can create a ‘Release order’ from the Sales agreement itself.

But note, if I use the Sales order form to create the sales order (or enter the order through the AIF), I do not get prompted for the Sales agreement, and the Sales agreement discount isn’t applied.

The most important feature of the Sales agreement is that is tracks the sales orders (release orders) using the Sales agreement, and provides a simple mechanism to review that the objectives of the sales agreement (which are normally to increase sales) have been met:

Trade allowance agreements

Trade allowance agreements offer a third way of applying a discount to a sales order line.

A Trade allowance agreement is setup for one or more customers for one or more items.

Trade allowance management > Common > Trade allowance agreements:

There are three types of Merchandising events: “Off invoice”, “Bill back’, and “Lump sum”.

“Off Invoice” applies the trade allowance (discount) to the sales order line. The actual discount percentage (or amount or rate) is defined on the Amounts tab:

Here I can define multiple discount percentages, or I could have multiple merchandising event lines.

The Trade allowance agreement has to be ‘Confirmed’ before it is applied to a sales order – but then it is applied when the sales order is created:

The details of the trade agreement allowance (and of the sales price/discount trade allowance; and the sales agreements) can be seen on the Sales order line > View > Price details form:

Note. This form is only visible if the Accounts receivable > Setup > Accounts receivable parameters > Prices ‘Enable price details’ parameter is enabled:

Sales quotations

A Sales quotation offers another way of defining a sales price and discount – although the sales quotation uses the sales price/trade agreement to default the sales quotation sales price, the price and discount can be over-written on the quotation. When a sales quotation is converted to a sales order the sales order inherits the price and discount from the quotation, regardless of the sales price/discount trade agreements; sales agreements; or trade allowance agreement that might be in effect for that customer/item combination.


2 thoughts on “Sales agreements in AX 2012 R3

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s