I'm looking for a hook...

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

Reply to
kskinne
Loading thread data ...

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

Reply to
Jason Hunt

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

Reply to
kskinne

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

Reply to
Herb

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

Reply to
Glenn Adams [MVP - Retail Mgmt]

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

Reply to
kskinne

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

Reply to
<nick

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.