discount on item only if sold with another specific item

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

Reply to
kskinne
Loading thread data ...

Try using RMS Security to disable change on the price column of the transaction screen. I'm not sure if this will allow the add-in to change the price, but it's worth a shot.

Reply to
Glenn Adams [MVP - Retail Mgmt]

Hi Glenn, thank you for the suggestion. I tried that and unfortunately it doesn't allow change via the code either when I disable change on the column. Is the a way via code to enable/disable change on the column that you know of? What is the correct syntax? I'm looking through qsrules in VB but not having any luck finding it...

Another option, what do you think about changing the privileges for that cashier via a SQL query in the code, then having that cashier ID get logged in via code in order for the change to take effect. Does this sound possible?

Thank you, Kevin

"Glenn Adams [MVP - Retail Mgmt]" wrote:

Reply to
kskinne

Try to call Login and Logout from SessionClass .. And check the result in Status object..

No.. this is not possible because QSRules load at LOGIN the cashier properties, and only at login..

bye antonio

Reply to
Antonio Mazzeo

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.