Receipt.xml

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.

Reply to
PPMcGrath
Loading thread data ...

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

Reply to
Terrible 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.

Reply to
Jason Hunt

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.