I have created a custom add-in that applies a 25% discount to items that are in the 'Accessory' department, but only if they are being sold with an item from the 'Phones' department. If there is no phone sold on the transaction it recalculates the accessory price as the regular retail price. This works fine, except for one problem. In order for this to work correctly when testing it, the cashiers all have to have the access to pricing privilege turned on, which means that they will then have the ability to override prices manually. We do not want this.
Is there a way to give them this access right via the code when it starts running, let the code calculate the correct discount and apply it to the items, then turn this access right off before the code ends?
Or maybe there is a better way to do this that will allow us to accomplish the same thing without having to do a price override? The accessory prices vary greatly, so the discount amount is always different.
Thanks, Kevin