Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Discount Reason Code Required

Posted on by 130

A client has the Discount Reason Code option checked so that a reason code is required when a sales associate applies a discount to a transaction.  However, I am noticing that transactions are being conducted with a discount applied, and the TransactionEntry.DiscountReasonCodeID = 0, and the receipt just says discount, and does not specify the reason code.  I tested at the POS that a reason code is required before applying a discount and it works, but when I check the database the TransactionEntry.DiscountReasonCodeID = 0.   I am not sure why this is happening.  Has anyone else experienced this situation?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Discount Reason Code Required

    Sounds like a bug,  Have you submitted the case to Microsoft?  

  • Carroll Adkins Profile Picture
    Carroll Adkins 130 on at
    RE: Discount Reason Code Required

    Thanks for the reply, but the problem is not the receipt.  The issue is that sometimes when a reason code is added to a discounted transaction, the transactionentry.reasoncodeid does not get updated in the database and contains the default value of 0, even though a discount reason code was entered by the sales associate.  So the transaction is discounted, but we cannot tell why because the database did not save the reason code id.  

  • Craig Harris Profile Picture
    Craig Harris 795 on at
    RE: Discount Reason Code Required

    I add the following to our receipt .xml template to show the discount reason code:

                           <IF>
                               <CONDITION> Entry.ExtendedDiscountNegative &lt;&gt; 0 </CONDITION>
                               <THEN>
                                  <ROW> "|" Entry.ReasonDiscount.Description "|" Entry.ExtendedDiscountNegative  </ROW>
                               </THEN>
                            </IF>
    Cheers,

    Craig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans