Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047400Retail ModulesDiscounts and Promotionspublic2021-07-15 11:472021-07-28 12:22
jetxarri 
rqueralta 
highmajoralways
closedfixed 
5
RR20Q3.4 
 
No
0047400: Not possible to calculate discounts with a role without permissions
The module is "Discounts Engine for Backend" with javapackage "org.openbravo.discounts" but as I was not able to find the module I am creating here the issue.

Not possible to calculate discounts with a role without permissions, you will get errror

Entity PricingAdjustment is not directly readable, only id and identifier properties are readable.....
-Create a role with access to Web POS
-Do a request to endpoint https://..openbravo/ws/org.openbravo.discounts.discount [^]

Verify that you get the error.

More info about how to do the request
http://wiki.openbravo.com/wiki/Module:Discounts_Engine_For_Backend [^]
Attached a patch
NOR
diff NotPermissionDiscounts.diff (1,388) 2021-07-15 11:47
https://issues.openbravo.com/file_download.php?file_id=16016&type=bug
Issue History
2021-07-15 11:47jetxarriNew Issue
2021-07-15 11:47jetxarriAssigned To => Retail
2021-07-15 11:47jetxarriFile Added: NotPermissionDiscounts.diff
2021-07-15 11:47jetxarriTriggers an Emergency Pack => No
2021-07-15 11:48jetxarriTag Attached: NOR
2021-07-15 22:53rafarodaResolution time => 1628028000
2021-07-21 21:14rqueraltaAssigned ToRetail => rqueralta
2021-07-21 21:14rqueraltaStatusnew => scheduled
2021-07-27 16:50hgbotNote Added: 0130809
2021-07-28 12:22hgbotResolutionopen => fixed
2021-07-28 12:22hgbotStatusscheduled => closed
2021-07-28 12:22hgbotNote Added: 0130831
2021-07-28 12:22hgbotNote Added: 0130832

Notes
(0130809)
hgbot   
2021-07-27 16:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts/-/merge_requests/7 [^]
(0130831)
hgbot   
2021-07-28 12:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts [^]
Changeset: ea085c796bec87ed29a4b5b82e123d55e617f2e0
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-07-21T15:10:53-04:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts/-/commit/ea085c796bec87ed29a4b5b82e123d55e617f2e0 [^]

Fixed BUG-47400: Calculate discounts with admin role permissions.

---
M src/org/openbravo/discounts/ws/DiscountsWebService.java
---
(0130832)
hgbot   
2021-07-28 12:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.discounts/-/merge_requests/7 [^]