Editing Receipt Templates... revisited

May 09, 2006 1 Replies

I want to edit the xml for my receipt templates to change the words "Sales Receipt" to "Invoice" if the transaction is tendered on account. Furthermore, I would like it to read "Refund" if it is a negative transaction, and "Credit Memo" if it is a negative transaction tendered on account. I did find some usefull info in a previous thread that almost solved my problem. The only remaining issue is that he used 'Transaction.ReceiptReturningItems = TRUE' to determine if the transaction is negative or not... problem is, the receipt will print out "Credit Memo" or "Refund" even if the transaction is still positive so long as at least one item was returned (such as an exchange). So I attempted to modify the code further...


">~" PageWidth * 0.40 Transaction.Total < 0 Tender.AmountIn 0 Tender.Descriptor.TenderType = tenderAccount



"Credit Memo" "Refund" Tender.AmountIn 0 Tender.Descriptor.TenderType = tenderAccount



"Invoice" "Sales Receipt"


The problem is that now, it doesn't seem that the line 'Transaction.Total <



0' is recognized at all. If the transaction is negative, the receipt will not print with any heading at all.

Please, let me know what I am doing wrong, or if what I'm trying is even possible.


I figured out what the problem was... both of my 'For' statements were referencing Tender.AmountIn, where the refund/credit memo part needed to reference Tender.AmountOut (duh moment...) at any rate, now it works perfectly.

So here's the final product... however, due to the nature of these forums, the format will not be the same as it appears in my XML editor.

"Credit Memo" "Refund" Tender.AmountIn 0 Tender.Descriptor.TenderType = tenderAccount

"Invoice" "Sales Receipt"

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required