I'm looking for a hook...

Mar 18, 2005 6 Replies

I want to write a customization that will do the following:



If a cashier adds an item in the 'accessory' department to a transaction, and there is also an item from the 'phone' department on the transaction, the accessory item will be discounted 25%, otherwise the accessory item will not be discounted.



I will also need it set up so that if an accessory and a phone are on the transaction, and the phone item is deleted from the transaction, the discount will be removed on the accessory.



I am just in the planning stages for this customization. What I am wondering is, I am going to need a hook to trigger this. the AddItem hook wouldn't work because I need the code triggered when items are removed as well. The RefreshDisplay hook would probably work, but then it will be firing constantly whenever a change happens on screen.



Is there a hook that I'm unaware of that will help me accomplish what I need here?



Thanks, Kevin


Hi Kevin,

I think the only way is to use RefreshDisplay. As long as you're careful with your code, there shouldn't be much of a performance impact.

- Jason

thanks - you confirmed what i had thought. i didn't see any other hooks looking through the customization guide, and actually was kind of surprised that there weren't more hooks for different events. i think i could only find about 17 different hooks. i'll give the RefreshDisplay a try and see how that works out

thank you, kevin

Why not begin tender? That way all the items are on the list so you can evaluate them and adjust the prices accordingly.

How about Tender Begin? At that point all the items have been entered or removed and you can just examine the whole list.

that would work as well - i was just hoping to have it update the prices on screen immediately when an item was added or removed. but i will definitely look into possibly using this too

thanks kevin

Would anyone care to share the customization guide?

I have developed a company intranet interfacing with the RMS database and it has all been through trial and error. I would love to be able to write some more customization directly with RMS.

Thanks, Nick

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required