Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Get voucher number to print on receipt

Posted on by 1,565

Hello, is there a way to get a voucher's serial number to print on the receipt when selling one?

So far I've got this:

  <IF>
  <CONDITION> Entry.Item.ItemType = itemtypeVoucher </CONDITION> 
  <THEN>
   <ROW>"|""NUMBER:" Entry.VoucherNumber "|"</ROW>
  </THEN>
  </IF>

but Entry.VoucherNumber is not working.


Thanks,
Devon

*This post is locked for comments

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: Get voucher number to print on receipt

    Worked perfectly!

    Thanks again for your help Ryan,

    Devon

  • Verified answer
    Ryan Sakry Profile Picture
    Ryan Sakry 3,425 on at
    Re: Get voucher number to print on receipt

    Devon,

    Sorry I misunderstood what you were looking for.  The variable I gave you you can use to determine if a Serial Number was sold.  Here is the variable that holds the number of the voucher: Entry.Serialized.Number1.

    Hope this help.s

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: Get voucher number to print on receipt

    Hi Ryan, thanks for the response. with Entry.Serialized.Sold I'm only getting true or false printing on the receipt I'm hoping to have the actual Serial Number print on the bill. Do you know the variable for this?

    Thanks again,

    Devon

  • Ryan Sakry Profile Picture
    Ryan Sakry 3,425 on at
    Re: Get voucher number to print on receipt

    Devon,

    The variable you are looking for is "Entry.Serialized.Sold".  This will be true if the current entry is a Serialized Item, which will be true if a serialized item is sold.  If you also sell other serialized items, then you can differentiate with this line "Entry.Item.ItemType = itemtypeVoucher".

    Hope this helps!

  • DEVON LEROUX Profile Picture
    DEVON LEROUX 1,565 on at
    Re: Get voucher number to print on receipt

    Hi Ryan, thanks for the reply. We've got Item Notes and Extended Descriptions on the screen and when i take out the ~ all that information gets printed right on the receipt. Do you know if a variable exists to print the serial number just when Voucher items are sold?

    Thanks again,

    Devon

  • Ryan Sakry Profile Picture
    Ryan Sakry 3,425 on at
    Re: Get voucher number to print on receipt

    Actually, if you change the column header from alignment of ">~" and take out the ~ you will see this information.  The problem is that it is getting truncated.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans