Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

Add Voucher Expiration Date to Receipt

Posted on by Microsoft Employee

Hi 

I am currently setting up our new RMS solution so I am pretty new to things although I have learnt a lot about the system as I have taken on all of the integration myself, however I am currently setting up our receipt templates and I was given one by our supplier which includes code to print a Gift Voucher Slip after the standard receipt. However I have going crazy over trying to get the Expiry Date to show on the Voucher Slip as I don't know what the correct "token" is required to output the information on the Slip.

I know the receipt knows the Expiry Date as it shows on the Standard Receipt however looking though the XML I can't see a strict call for "Expiry" and it seems to be included within another call.

I am using the in-built voucher system (local only), I can also see that the expiration date is also written to the Voucher table in the DB.

On the standard receipt I believe "Number:" Tender.VoucherNumber is producing the following text on the receipt:

Number: 00000001 (Voucher No)

Expires: 01/01/2016 (Voucher Expiry)

GFTVCH-000 (Voucher Sku)

But if I use this same call on the Voucher Slip it doesn't work.

Hopefully someone will be able to help me as I believe not being able to put the expiry date on the voucher is poor.

Many thanks in advance!!

Martin

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add Voucher Expiration Date to Receipt

    Were you able to get to the bottom of this ? I am also looking for an answer .  

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add Voucher Expiration Date to Receipt

    HI

    Did you solve your problem?

    If  yes, please let me know..

    Thank you

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add Voucher Expiration Date to Receipt

    Hi 

    I have tried to simply do Transaction.Date + no of days and it half works but it isn't formatted as a date.

    E.g TodaysDate + 270 is displaying 42301 which if you do this in Excel and copy the date to a text field you get the same number, is there a way to format this back to a Date within the Receipt?

    Many Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add Voucher Expiration Date to Receipt

    Hi

    Thanks for your reply, unfortunately that is an unknown Token as well.

    Is there a way to do something like Transaction Date + x days within the receipt?

    Like I said I can't believe there isn't a way to get the expiry date on to the Gift Voucher.

    Many Thanks

  • Suggested answer
    arishi Profile Picture
    arishi 740 on at
    RE: Add Voucher Expiration Date to Receipt

    not sure but try this if this help

    TransactionEntry.VoucherExpirationDate    Property (Get)

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans