Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051736Retail ModulesDiscounts and Promotionspublic2023-03-01 09:412023-03-01 12:57
noemieroussel 
alostale 
highmajoralways
closedfixed 
5
 
 
No
0051736: The flag "Approval required" should be disponible for "discretionary" and "optional" promotions
On the WebPOS, it is possible to set an approval option. Currently, it has been developed only for manual discounts applied to a product line, for instance those discounts types:
-User Defined Percentage
-Discretionary Fixed Amount
-Discretionary Fixed Percentage
-User Defined Amount
-User Defined Line Amount

The requirement is to be able to have the approval option for all the discretionary and optional application methods.
1. Go to the backoffice

2. Go to the "Role" window.

3. Go to the store responsible role, and define in the subtab "User Actions Acess" "Apply Discretionary Discount" -> Can use and approve.


4. Go to the store seller role, and define in the subtab "User Actions Access" "Apply Discretionary Discount" -> Approval required.

5. Go to the discounts and promotions and select the discount type "User Defined Percentage". See that the checkbox "Approval Required" appears in the Definition section. Set the configuration of the promotion and tick the approval checkbox.

6. In the POS, use the User defined percentage discounts previously created by adding a product in the ticket and click on the "Discounts" option on the product line. See that an approval pop-up is displayed.

7. Go to the discounts and promotions and select the discount type "Fixed Discount per Total Amount". See that the checkbox "Approval Required" do not appears in the Definition section. Then, the approval pop-up is not displayed.
Add the Approval required checkbox in all the "discretionary" and "optional" promotions
No tags attached.
related to feature request 0050620 closed Retail POS2 Approvals/reasons for manual discounts 
Issue History
2023-03-01 09:41noemierousselNew Issue
2023-03-01 09:41noemierousselAssigned To => Retail
2023-03-01 09:41noemierousselTriggers an Emergency Pack => No
2023-03-01 10:32hgbotNote Added: 0147153
2023-03-01 10:33hgbotNote Added: 0147154
2023-03-01 10:35alostaleAssigned ToRetail => alostale
2023-03-01 12:40hgbotNote Added: 0147162
2023-03-01 12:40hgbotNote Added: 0147163
2023-03-01 12:42hgbotResolutionopen => fixed
2023-03-01 12:42hgbotStatusnew => closed
2023-03-01 12:42hgbotFixed in Version => 23Q2
2023-03-01 12:42hgbotNote Added: 0147164
2023-03-01 12:42hgbotNote Added: 0147165
2023-03-01 12:57alostaleRelationship addedrelated to 0050620

Notes
(0147153)
hgbot   
2023-03-01 10:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1561 [^]
(0147154)
hgbot   
2023-03-01 10:33   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/90 [^]
(0147162)
hgbot   
2023-03-01 12:40   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 702d3a5981b952c4c8a12a21ee0c1d3e61a1b93c
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 01-03-2023 11:40:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/702d3a5981b952c4c8a12a21ee0c1d3e61a1b93c [^]

related to ISSUE-51736: missing approval required for some discounts

---
M src-db/database/sourcedata/AD_FIELD.xml
---
(0147163)
hgbot   
2023-03-01 12:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/90 [^]
(0147164)
hgbot   
2023-03-01 12:42   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 51bf1c496e9d198374f731f5c6c37f2b3e5d7c27
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 01-03-2023 11:40:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/51bf1c496e9d198374f731f5c6c37f2b3e5d7c27 [^]

fixes ISSUE-51736: By total discounts don't shown approval dialog

---
M src-db/database/sourcedata/OBC2_USER_ACTION.xml
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/discounts/AddByTotalPromotionIntoTicket.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/discounts/SetLineDiscounts.js
---
(0147165)
hgbot   
2023-03-01 12:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1561 [^]