Skip to main content

Notifications

Microsoft Dynamics RMS forum

Shift+F9 Reference and Comments not printing on receipts

Posted on by Microsoft Employee

Quick question, do you have to put a comment in the comments box when you hit Shift+F9 for details in order to get it to print on receipts and save in the journal?  I found in our installation of you don't put anything in the comments box it will not put anything on the receipt nor in the journal.  So we always put a space in the comments box and it prints and saves in the journal every time.  This doesn't seem like it should work this way does it?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Shift+F9 Reference and Comments not printing on receipts

    This happens because of a length check on comments in the receipt layout.  

    You will need to export your layout (save to a file) and make a change. Then re-import into RMS.

    In the default layout the  issue is at line 524  and looks like this:

    <CONDITION> Len(Transaction.Comment) </CONDITION>

                  <THEN>

                     <TABLE>

                        <BORDER>    tbNone      </BORDER>

                        <COLUMNHEADER>

                           <ALIGNMENT>    "^"         </ALIGNMENT>

                           <WIDTH>        PageWidth   </WIDTH>

                           <IF>

                              <CONDITION> Len(Transaction.ReferenceNumber) </CONDITION>

                              <THEN>

                                 <TEXT> "Reference: " Transaction.ReferenceNumber </TEXT>

                              </THEN>

                           </IF>

                        </COLUMNHEADER>

    You need to change this to be like this:

    <CONDITION> Len(Transaction.ReferenceNumber) </CONDITION>

                  <THEN>

                     <TABLE>

                        <BORDER>    tbNone      </BORDER>

                        <COLUMNHEADER>

                           <ALIGNMENT>    "^"         </ALIGNMENT>

                           <WIDTH>        PageWidth   </WIDTH>

                           <IF>

                              <CONDITION> LLen(Transaction.ReferenceNumber) </CONDITION>

                              <THEN>

                                 <TEXT> "Reference: " Transaction.ReferenceNumber </TEXT>

                              </THEN>

                           </IF>

                        </COLUMNHEADER>

    This will allow the comment to be blank but still print the reference field.

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,129 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans