Buy items from order entry promotions

Advanced Sales Management for Drink-IT  •  Article  •  11/25/2026  • 

A salesperson can open the promotion items for one sales and purchase condition rule from the Order Entry page and enter the quantity to buy. The list contains only the items that the certified rule can sell on the condition date.

Internal Reference

This article covers the following work item(s):

  • User Story: ASM - Being able to look at the Promotions/Discounts pages in Order Entry and buy the item(s) from that screen - 04303036 - PART 2

Prerequisites

Before buying items from an order entry promotion:

  • The Aptean Beverage Sales-Purchase Conditions extension, version 2604.1.0.0 or later, is installed.
  • The feature Feature Update - Replacing the source table for the Rates subform on the Rule card page is enabled. The feature is enabled automatically from Business Central 27. When it is not enabled, calculation stops with the message The SPC Feature Update - Replacing the source table for the Rates subform on the Rule card must be enabled to use this functionality.
  • The sales order is open.
  • The promotion rule Status field value is Certified.

Open the promotion items

  1. On the Sales Order page, select the Order Entry action.
    The Order Entry page opens.

  2. On the Alerts FastTab, select the Promotions field.
    The Sales and Purchase Condition Rules List page opens for the condition customer.

  3. Select the promotion rule, and then select the Order Entry Promotion Items action.
    The Order Entry Promotion Items page opens for that rule. The page caption shows the rule number.

The Calculate Order Entry Promotion Items action is hidden when the Automatically calculate Order Entry Promotion Items toggle on the Advanced Sales Management Setup page is turned on. The items are calculated when the Sales and Purchase Condition Rules List page opens. When the toggle is turned off, select the Calculate Order Entry Promotion Items action. The list stays empty until it is calculated. A later calculation asks Calculate Order Entry Promotion Items is already done. Do you want to recalculate? and replaces the existing items when confirmed.

  1. In the Order Entry Line Quantity field, enter the quantity to buy.
    The Quantity field shows the promotion quantity when the Reason Code field value is valid for the rule. When the reason code is not valid, the Quantity field value is 0. Closing the Order Entry Promotion Items page stores the modified quantities. Closing the Sales and Purchase Condition Rules List page writes those quantities back to the order entry lines. A line that is not yet on the order is added. When the Apply Order Entry Directly toggle on the Advanced Sales Management Setup page is turned on, the sales order line is updated as well.

An error occurs when the promotion unit of measure is not set up for the item: The Unit of Measure of the promotion is not available in the setup of this item.

For example, a certified Per Document rule based on the classification Own beers in bottle, with a blank rate-line Item No. field value and dates that cover the condition date, lists the items in that classification. The same rule with a Starting Date field value seven days after the condition date lists no items.

Decide which items are listed

An item is added only when all of the following are true:

  • The Status field value is Certified. A value of New, Under Development, Closed, or blank adds no items, and include rules and exclude rules are not applied for that rule.
  • The condition date is on or after the rule Starting Date field value, or that field value is blank.
  • The condition date is on or before the rule Ending Date field value, or that field value is blank.
  • At least one rate line covers the same condition date. The rate-line Starting Date and Ending Date field values use the same blank-date rule. A rate line outside the condition date does not add its item.

A blocked item or a sales-blocked item is skipped. Customer item exclusivity still removes items. Recurring quantity does not change the list or the quantity on the promotion item. Purchase orders are not included. The Discounts and Charges field on the Alerts FastTab is unchanged.

The condition date is taken from the sales document:

FieldDescription
Condition Customer DateSpecifies the date used when the field value is filled. The field is on the Sales and Conditions FastTab of the sales order.
Condition Customer Date TypeSpecifies Order Date, Shipment Date, or blank. Order Date uses the Order Date field value. Shipment Date uses the Shipment Date field value. A blank value uses the Default Condition Date field on the Sales and Purchase Condition Setup page.
Default Condition DateSpecifies the sales condition date type used when the document type is blank.

When the chosen header date is also blank, an invoice or a credit memo uses the Posting Date field value when that field is filled. Otherwise the Document Date field value is used. When that field value is also blank, the work date is used. When the sales document cannot be found, the work date is used.

The Item Type field value decides where the items come from:

ValueDescription
ItemSpecifies the item in the rule Item No. field. A blank Item No. field value adds no items.
Classification ItemSpecifies the items in the classification. When any in-range rate line has an Item No. field value, only those items remain.
Group ItemSpecifies the items in the group. When any in-range rate line has an Item No. field value, only those items remain.
All ItemsSpecifies items that are not blocked and not sales-blocked. When any in-range rate line has an Item No. field value, only those items remain. When every in-range rate line has a blank Item No. field value, the sellable items remain.
Per DocumentSpecifies the items from the Minimum Based on Item Type field value. The rate-line Item No. field value is not required.
BlankSpecifies that no items are added.

A rate line with a blank Item No. field value does not add every matching item when another in-range rate line names an item. The list is limited to the named items.

For a Per Document rule, the Minimum Based on Item Type field value works as follows:

ValueDescription
Item OtherSpecifies the item in the Based on Item No. field. A blank Based on Item No. field value adds no items.
Classification OtherSpecifies the items in that classification.
Group OtherSpecifies the items in that group.
All ItemsSpecifies the items that are not blocked and not sales-blocked.
Combined ItemsSpecifies the items that are not blocked and not sales-blocked.
MemberSpecifies that no items are added.
Same Item TypeSpecifies that no items are added.

Review the quantities

The lines are sorted by the Item No. field value.

FieldDescription
Minimum QuantitySpecifies the minimum quantity from the first rate line that covers the condition date. The field value is blank when no rate line covers that date.
Current QuantitySpecifies the total promotion quantity for the rule. On the Sales and Purchase Condition Rules List page, the field opens the Order Entry Promotion Items page.
Unit of Measure CodeOn the rule header, specifies the unit of measure from the first rate line that covers the condition date. On each promotion item line, specifies the unit of measure from the first rate line of the rule.
Item No.Specifies the item.
Item DescriptionSpecifies the item description.
Order Entry Line QuantityEnter the quantity to buy. This quantity is written back to the order entry line.
Order Entry Line Unit of Measure CodeSpecifies the unit of measure of the order entry line, or the sales unit of measure when the item is not yet on the order.
Reason CodeSpecifies the reason code used to accept the quantity for the rule.
QuantitySpecifies the promotion quantity calculated from the Order Entry Line Quantity field value.
Order Entry Line Entry No.Specifies the order entry line. A zero value means the item is not yet on the order.
ModifiedSpecifies whether the line quantity was changed.