Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Custom Receipt Template - Complex Conditioning

(0) ShareShare
ReportReport
Posted on by 100

Hi

We are trying to make a custom receipt template (XML file) for SALES.

If certain conditions are met, we wish to print different messages at the bottom.

Does anyone know if this is possible :

1) Find the length of the Customer Account No. and compare it to a value (e..g 11)

2) Find if the Customer Account starts with a prefix e.g. "01" 

3) Compare the Transaction Date to a date range

All the examples we have contain simple conditions like check if an amount is not zero, or if the customer address is present, etc. I cannot find examples of more complex functions e.g. Length, Substring, Date comparison.

Many thanks

*This post is locked for comments

  • Suggested answer
    RE: Custom Receipt Template - Complex Conditioning

    1) use LEN(customer account no) = 11

    2) not sure if you could use LEFT or RIGHT in receipt formats. Worth a try.

    3) <IF> <CONDITION> Transaction.Date < ""yyyy/mm/dd" </CONDITION>

            do something

    </IF>

    <IF> <CONDITION> Transaction.Date < ""yyyy/mm/dd" </CONDITION>

            do something else.

    <IF>

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans