Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047828Retail ModulesDiscounts and Promotionspublic2021-10-08 07:482021-10-08 09:43
jetxarri 
Retail 
highminoralways
newopen 
5
 
 
No
0047828: Hidden discounts are being returned in the discount.discount endpoint
Hidden discounts are being returned in the discount.discount endpoint when they should not be returned because they are hidden discounts that are only used for the discounts engine logic.

It will be great if this is configurable using a preference.
-Define free product per total amount discount
-Do a call to discount.discount endpoint with free product and another one
-The total of the ticket must be above the total amount

In the response you will see that the promotion is applied to 2 lines
Attached a patch but pending to create and apply the preference
NOR
diff patch.diff (2,820) 2021-10-08 08:10
https://issues.openbravo.com/file_download.php?file_id=16255&type=bug
Issue History
2021-10-08 07:48jetxarriNew Issue
2021-10-08 07:48jetxarriAssigned To => Retail
2021-10-08 07:48jetxarriTriggers an Emergency Pack => No
2021-10-08 07:48jetxarriTag Attached: NOR
2021-10-08 08:10jetxarriFile Added: patch.diff
2021-10-08 09:04jetxarriTypedefect => feature request
2021-10-08 09:04jetxarriDescription Updatedbug_revision_view_page.php?rev_id=23165#r23165
2021-10-08 09:04jetxarriProposed Solution updated

There are no notes attached to this issue.