question

sam avatar image
sam Deactivated asked sam Deactivated edited

ACTION_ADD_TIP - "You don't have permission to set tips for other employees"

a. ISSUE: In clover, we unchecked the "Set tips for all employees" option for Employees but when we want to add a tip to a payment via ACTION_ADD_TIP we get the message "You don't have permission to set tips for other employees".

Even for the employee trying to add a tip to one of his orders payments. We get this when the user is using "Quick Access" so therefore they are signed in with default employee. The ACTION_ADD_TIP Clover Intent only requires EXTRA_PAYMENT_ID and EXTRA_TITLE, so currently there is no way to send the employee id to validate that he is the one that made the payment. Is this possible?
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

sam avatar image
sam Deactivated answered sam Deactivated edited
If you're signed in as an employee without permission to edit all employees' tip, `ACTION_ADD_TIP` will only show the payments for the employee that's currently signed on.
If you're using "quick access", this will be the payments made by the default employee.

eg. `ACTION_ADD_TIP` while signed in as default employee will only return all payments made by default employee.

It will throw an error if you try to pass a payment id of another employee.
The tip adjustment for each employees will need to be done with that particular employee signed in (not through quick access).
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community