Add-in question, Deleting Items

Hello, I am writing an Addin for RMS version 2.0. The Adding takes points per item to apply a Case Discount for Liquor Stores. The problem that I am having is this. the Cashier scans 10 items. Then they press F12 to start the tendering process. Now my adding looks at the points assigned to each item to see if the customer gets a case discount. I apply the proper percent and Reason code to each item that applies. Then if the cashier exits back out of the tendering process and decides that they need to delete one of the items that I discounted. Well, this just might kill the criteria for the case discount. What I am doing it trying to recalculate when the tendering process begins before I start to discount any items. I am looking at each item and seeing if it has a discount, then if it does, I am looking at the DiscountReasonCode. If it is one that I discounted, I would like to remove the discount. As far as I can tell there is not way to do this in the POS. So my next option was to delete that entry but I cant do that either. The way the RMS deletes an item is to position that line as the active line and then press the space bar. This is what I have tried so far:

session.Transaction.Entries.Add(0, "", 1, 0, True, 0.0)

RMS doesnt like putting a blank ItemLookupCode and it adds it as another entry if I put a real ItemLookupCode in. I also tried using the index of the transaction entry like this:

session.Transaction.Entries.Add(E, "123", 1, 0, True, 0.0)

The E is the entry ID, but RMS does not like this either. Is there a way to remove the discount for an item, or does anyone know how to remove the item completely so I can add it back in without a discount?

Thanks in advance, C5

-------------------------------------

##-----------------------------------------------# Newsgroup Access Courtesy

formatting link
Tax and Accounting Software Forum Web and RSS access to your favorite newsgroup - microsoft.public.pos - 34817 messages and counting ##-----------------------------------------------##

Reply to
C5m7b4
Loading thread data ...

Reply to
Kumar

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.