web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

How to add Sales Rep name to sales receipt

(0) ShareShare
ReportReport
Posted on by 35

Good Afternoon all.


I am new to this forum and MS Dynamics RMS, so please forgive me if i am a bit vague.

I am trying to add our Sales Rep's name to the sales receipt. So far i have managed to get the receipt to say 'Sales Rep:' but it wont pull across the name.

Here is what my receipt.xml file looks like:

<!-- show transaction date/time/number -->
                            <TABLE>
                                <BORDER> tbNone </BORDER>
                                <FONT>   "Small"  </FONT>
                                <COLUMNHEADER>
                                    <ALIGNMENT> "&lt;~"      </ALIGNMENT>
                                    <WIDTH>     PageWidth * 0.50 </WIDTH>
                                    <TEXT>      ""  </TEXT>
                                </COLUMNHEADER>
                                <COLUMNHEADER>
                                    <ALIGNMENT> "&lt;~"      </ALIGNMENT>
                                    <WIDTH>     PageWidth * 0.50 </WIDTH>
                                    <TEXT>      ""  </TEXT>
                                </COLUMNHEADER>
                                <IF>
                                    <CONDITION> Transaction.ReceiptReferenceNumber </CONDITION>
                                    <THEN>
                                        <ROW> Transaction.ReceiptReferenceNumberCaption ":|" Transaction.ReceiptReferenceNumber </ROW>
                                    </THEN>
                                </IF>
                                <ROW> Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
                                <IF>
                                    <CONDITION> Len(Customer.AccountNumber) </CONDITION>
                                    <THEN>
                                        <ROW> "Account #:|" Customer.AccountNumber </ROW>
                                    </THEN>
                                </IF>
                                <ROW> "Date:   " Transaction.Date "|Time:  " Transaction.Time </ROW>
                                <ROW> "Sales Rep:   " entry.salesrep.name "|Register #:   " Register.Number </ROW>
                                <ROW/>
                            </TABLE>

Hope you can help a beginner

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    the sales rep need to be in the Item FOR loop, something like:

    <FOR each="entry">
    <ROW>  Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.Quantity "|" Entry.SalesRep.Name </ROW>

    </FOR>

  • JamesPhilp Profile Picture
    35 on at

    Hi Ed,

    Firstly, thank you for replying.

    I tried entering your suggestion but i got an error upon printing a receipt.

    Could you do me a huge favour and put the code where i need it in the following:

    <!-- show transaction date/time/number -->

                               <TABLE>

                                   <BORDER> tbNone </BORDER>

                                   <FONT>   "Small"  </FONT>

                                   <COLUMNHEADER>

                                       <ALIGNMENT> "<~"      </ALIGNMENT>

                                       <WIDTH>     PageWidth * 0.50 </WIDTH>

                                       <TEXT>      ""  </TEXT>

                                   </COLUMNHEADER>

                                   <COLUMNHEADER>

                                       <ALIGNMENT> "<~"      </ALIGNMENT>

                                       <WIDTH>     PageWidth * 0.50 </WIDTH>

                                       <TEXT>      ""  </TEXT>

                                   </COLUMNHEADER>

                                   <IF>

                                       <CONDITION> Transaction.ReceiptReferenceNumber </CONDITION>

                                       <THEN>

                                           <ROW> Transaction.ReceiptReferenceNumberCaption ":|" Transaction.ReceiptReferenceNumber </ROW>

                                       </THEN>

                                   </IF>

                                   <ROW> Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>

                                   <IF>

                                       <CONDITION> Len(Customer.AccountNumber) </CONDITION>

                                       <THEN>

                                           <ROW> "Account #:|" Customer.AccountNumber </ROW>

                                       </THEN>

                                   </IF>

                                   <ROW> "Date:   " Transaction.Date "|Time:  " Transaction.Time </ROW>

                                   <ROW> "Sales Rep:   " entry.salesrep.name "|Register #:   " Register.Number </ROW>

                                   <ROW/>

                               </TABLE>

    Many thanks for your help.

    James

  • TheNeos Profile Picture
    1,347 on at

    Have you found a way to do it?

    Please post your solution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans