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.