Microsoft Dynamics AX Support

This blog contains posts by the Microsoft Dynamics AX Support teams Worldwide

AX 2012 R2 for Retail - Setting up discount coupons with bar codes for scanning into POS

AX 2012 R2 for Retail - Setting up discount coupons with bar codes for scanning into POS

Rate This
  • Comments 5

The release of R2 for AX 2012 has added 2 new fields (discount code and bar code) to the Discounts form in the Retail module.  This now gives us the ability to scan or type in a coupon/discount barcode directly into POS.  The steps below are performed on the general Discounts, but the same steps would apply for Mix and Match Discounts and Quantity Discounts.  The only difference would be how the items are configured for discounts in the Lines sections of each setup.  

1.  Set up the bar code masking:  Retail > Setup > Bar codes and labels > Bar code mask setup (Example setup)

     a. Mask ID = DiscCode

     b. Description = Discount Code Bar Code

     c. In the Type field, select Discount Code

     d. Set up the Masking configurations (Example configuration below)

         i. Barcode standard = Code 39

         ii. Mask Prefix = 44

         iii. Bar code mask segment

               1. Type = Discount Code

               2. Length = 10

               3. Character = T

         NOTE: When this barcode is scanned into POS, it uses this prefix and segment to identify the entry as a discount. 

2. Set the bar code for use with Retail discounts.

     a. Go to: Retail > Setup > Parameters > Retail shared parameters

     b. Select the Bar code navigation

     c. Select your bar code mask from step 1.


3. Set up a specific discount/coupon:  Retail > Common > Pricing and Discounts > Discounts

     a. Fill in the Discount and Name fields.

     b. Enter currency: USD

     c. Select a Price Group, or create a new one. (SP 01)

     d. Enter a Discount Code (MITT2013)

     e. This auto-creates the barcode based on our discount code bar code in step 1 (4400MITT2013)

        NOTE: This is case sensitive when entering this into POS.

     f. Select a concurrency mode:

          i. Exclusive - this discount cannot be used in conjunction with another

          ii. Best price - will determine the best price and use that discount

          iii. Compounded - will apply this discount on top of other discounts as long as the other discount is stackable

     g. Discount code required

          i. Checked - this will require the code to be entered or scanned at POS in order for the discount to apply, 

          ii. Unchecked - otherwise this will auto apply the discount whenever the items tied to the discount are entered.

     h. Under Lines click Add

          i. Add a product (0017 - Youth Catchers Mitt)

          ii. Select a Discount Method = Discount percentage

          iii. Enter the amount in the corresponding field. (Discount percentage = 10)

     i. Lastly, change the Status to Enabled

     j. Close out of the discounts form


4. Add the Price Group to your store:  Retail > Common > Retail Channels > Retail Stores

     a. Select your store (S0001)

     b. Click Price Groups

     c. Click New

     d. Select the price group used in Step 2.c from the dropdown menu. (SP 01)

5. Sync over your changes:  Retail > Periodic > Data Distribution > Distribution Schedule

     a. Run the N-1020 (Discount) to sync over the specific Retail discounts to POS

     b. Run the N-1100 (Product and price parameters) to sync over the BarcodeMask and Discounts.

     c. If Step 2 was used to create a new Price Group, then run the N-1040 to sync the new group at POS

     d. If Step 3 was performed to add the Price Group to the store, then run the N-1070 (Stores and tenders) to update the Store at POS

6. Log into POS (close and reload POS if it was open)

7. Add item 0017

8. Scan or type in the case sensitive discount barcode (4400MITT2013)

9. You will see the discount (MITT2013) applied to the line item associated with that discount.



Leave a Comment
  • Please add 4 and 8 and type the answer here:
  • Post
  • Damage that discount code cannot be used in a standard sale order .

  • first, I do not manage to create the discount code / barcode in the form "discount". I set up the as described and set up in retail shared parameters the "bar code setup. Any idea what is still missing

    second, as Laurent I am looking for a solution to use the discount code functionality of AX for Retail in a sales order. Any Idea?

  • Is it possible to create disposable discount codes in AX 2012 R2?

  • It seems that the instructions don't necessarily apply to AX 2012 R2.  I had to create a Bar Code in Bar code setup where I selected the DiscCode Bar Code Mask.  This new Bar Code is what is selected in the Shared Parameters settings.  Without doing so, the Shared Parameters setting doesn't recognize the new mask.

    I have a different issue, however.  If I select the Discount code required checkbox and try to scan the coupon, the POS doesn't recognize the bar code.  If I uncheck this checkbox, the discount is automatically applied.  Is there another step required to get the barcode to be recognized by the POS?

  • Hi,

    nice blog .. please recommend can i apply a particular discount on only one store? for example an opening discount on all items of 20% is offered on the new store, how this will be catered in ax 2012? waiting for your response :)

Page 1 of 1 (5 items)