Receipt.xml

Nov 22, 2006 2 Replies

Hi Everyone, I am trying to type a second receipt after the main receipt if the item type is a gift voucher e.g. Entry.Item.ItemLookupCode = "GV" "PrintVoucher" I am checking for this condition in the Transaction Details but it does not seem to find this condition. Does anyone know of a way to do this. Any help would be great.


Forgive me if I'm missing the point, but...

Couldn't you configure a second receipt printer (same physical printer) with a Gift Receipt template and 'Print receipts only after asking the cashier'? It would be one more keystroke if a gift receipt were required, but it seems so much simpler.

HTH, Tom

What you're experienceing is a highly annoying and undocumentated limitation with the XML templates in RMS; you cannot do an IF statement to compare a variable against a string. Instead you have to compare the variable to another variable which contains the string you're checking for.

Try adding this to the top section of your XML receipt:

"GV"

And then change your IF statement like this:

Entry.Item.ItemLookupCode = MyString

And that will work the way you're looking for.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required