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