Change Price - Create your own button to control permissions

I’ve noticed that the Change Price button is only available to Administrators, but I would like to be able to give that permission to a Manager as well. @emre, can you add this permission selection to the User Roles?

Further, I’ve tried to capture a price change on an item, in order to update the Pole display, but can’t seem to get it to work. I guess I don’t know which Event to use in the Rule (I’ve tried Ticket Total Changed).

I’ve been successful in updating the Pole when the Portion is changed, or when an item is Gifted/UnGifted, but I need help with the Change Price event.

EDIT: see the post later in the thread for a tutorial on the setup…

2 Likes

You can use an Automation Command button for Change Price, capturing the NumberPad value and using update order action to change the price.

There is a topic here that covers this, but I can’t find at the moment.

Using Automation Commands you can map to a Role and have Admin Pin override if needed.

1 Like

Found it Discount Authorization

@Emre, I think the problem with Ticket Total Changed event is that it is not triggered for all changes in ticket total. I did notice that it wasn’t triggering for Order Tags a while ago. I’m about to setup a pole display again, so I can give feedback if something is missing.

@JohnS I think we should completely get rid of that button on future updates. I’m also planning to remove all hard coded V2 buttons such as move, merge tickets and republish these functions as actions.

I know it makes using SambaPOS a little harder to configure for new users but after people understands how SambaPOS works they want to change them :slight_smile:

2 Likes

@JohnS, thanks for the link, I’ll give it a go and see if this helps with updating the Pole Display (my Discount buttons work correctly this way, and when clicked, they update the Pole Display successfully)… then I will need to look forward to the removal of the current hard-coded button in a future update.

@emre, I agree - remove all hard-coded buttons that can be implemented using Automation, so long as the configuration of the Rules/Actions are not overly complicated to restore them.

And of course, on a new installation, the current/default Automation (such as Change Price) should be installed as a starting point, but still allows the user to tweak them for their needs.

2 Likes

One great thing about creating your own Change Price command is that you can control User Permissions on the button (Automation Command).

Automation Command:

As shown above in the Mapping for this Automation Command, only users belonging to the Admin or Manager role can see this button.


Action:

Action Type: Update Order
Price: [:Price]
Calculate Price: True


Rule: (create a default mapping for this rule)

Price Field: [?Price:\d+\.?\d{0,2};;ON]

In this Rule, the ? notation will cause SambaPOS to prompt the user for a value. The mask portion [\d+\.?\d{0,2}] is a regular expression that allows for only numbers to be entered, and limited to 2 decimals.

2 Likes

@QMcKay ive used the expression that @Jesse gave me for my discount rule and if you apply this same rule to price change it has the same effect, i added the note (4 digits) in the keypad to remind cashiers that if they need to change the price to 9.99 or less they need to enter a leading zero so the decimal point is in the correct place eg 0999 gives 09.99

[?Enter New Price (4 digits);\d{1}.\d(2)|\d{1}\d{1}?.\d{2}|[0];;N]



thanks to @Jesse for helping me out again!

+1 on hard Change Price button. I also try to use small numberpad in menu screen but it doesn’t work with change price. We can create our own change price but can’t disable hardcord one :frowning:

2 Likes

@emre do you have an update as to whether you will removing the hard coded buttons and replacing with automations that we can configure?