Openbravo Issue Tracking System - POS2
View Issue Details
0056718POS2POSpublic2024-10-09 20:092024-10-15 18:48
axelmercado 
fofarril 
highmajoralways
scheduledopen 
5
 
 
No
0056718: Problem with “Maximum discount per role” functionality, does not work correctly.
When we configure a role to be able to apply a certain maximum discount with the new functionality, it does not work if the action “Apply Higher Discount Than Allowed for Role” is not defined for that role, which is not correct.
In Livebuilds: https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql [^]
1-Configure a new user and assign him the role of “Cashier Central Mountail”.
2-Navigate to the assigned role and configure the detailed actions and the maximum discount as shown in the userActionsRole.png, also in the “Organizations” tab add the Vall Blanca Store organization.
This is so that the user can log in https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/web/pos/?terminal=VBS-2 [^] and use it correctly.
3-In the terminal, add a product and to the line, add a manual discount of variable percentage with a value of 55% (we configured before that the maximum is 50%).
4-Apply the discount and verify that it is applied correctly, then delete the order.

5-Back to the backoffice and in the role, add the user action called “Apply Higher Discount Than Allowed for Role” with “Can Use”.
6-Back in the terminal, ctrl+shift+f5 and perform again step 3. Now we can notice that an error message has been displayed correctly.
The error should be displayed without having defined the action “Apply Higher Discount Than Allowed for Role” since, as its name indicates, it should allow the opposite, it should allow exceeding the amount configured in the role header. This is also mentioned in the updated POS2 guide, where it is also mentioned that this action can be configured with “Approval required” for a supervisor to enable the excess discount.
No tags attached.
related to feature request 0055990 closed jarmendariz Maximum discount can be set per Role 
Issue History
2024-10-09 20:09axelmercadoNew Issue
2024-10-09 20:09axelmercadoAssigned To => Retail
2024-10-09 20:09axelmercadoTriggers an Emergency Pack => No
2024-10-09 20:10axelmercadoRelationship addedrelated to 0055990
2024-10-14 13:57jorgewederagoAssigned ToRetail => fofarril
2024-10-14 15:19ivazquezIssue Monitored: ivazquez
2024-10-15 18:48fofarrilStatusnew => scheduled

There are no notes attached to this issue.