Credit, Return & Invoice Receipt Template

Here is the code to get both full page and 40 column receipts to say "CREDIT" and "INVOICE" with the appropriate transaction in Store Operations. Replace Transaction.ReceiptTransactionName with the following code:

Transaction.ReceiptReturningItems = True "Credit" Transaction.TotalQuantityPurchased > 0

Tender.AmountIn > 0 Tender.Descriptor.TenderType = TenderAccount "Invoice" "Sales Receipt" Transaction.ReceiptTransactionName

"CREDIT" will appear on the receipt any time there is a negative quantity number using this method. "INVOICE" will appear any time the tender type is an account, where zero funds are tendered. All other transaction types are displayed properly as in the standard template.

I used a post on the RMS public news group "why doesn't this modification to XML receipt work?" started on 2/17/05 by kskinne as a starting point. The only problem with the code above is that a cashier can enter a negative quantity during a transaction and this will cause the receipt to say "CREDIT", even if the sale is a positive tender. I did not spend much time trying to figure out how to get the receipt to say "CREDIT" only if the transaction is a negative number. I instruct the clients that credits should be done as a separate transaction with this template. Maybe RMS should not allow negative quanities in a sales transaction or make it selectable in configuration options?

If someone has another way of coding this, please share it.

Microsoft needs to make this part of the standard Store Ops templates, along with many other refinements, so I don't have to give the client a whole new set of modified templates to replace the standard ones.

Jean and others: feel free to post this on your web sites.

Mike F.

Reply to
Michael Fellows
Loading thread data ...

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.