Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049073Retail ModulesDiscounts and Promotionspublic2022-04-19 10:102022-05-20 12:48
normalmajorhave not tried
0049073: Create new hook in discount engine to filter out discounts programatically, using ticket information
A new hook should be added to discount engine to allow filtering out discounts with the ticket information. This allows to extend the engine with several filters from different modules.
No tags attached.
Issue History
2022-04-19 10:10AugustoMauchNew Issue
2022-04-19 10:10AugustoMauchAssigned To => cberner
2022-04-19 10:10AugustoMauchTriggers an Emergency Pack => No
2022-04-19 13:16AugustoMauchStatusnew => scheduled
2022-04-19 17:50cbernerDescription Updatedbug_revision_view_page.php?rev_id=23928#r23928
2022-04-20 12:13hgbotNote Added: 0136625
2022-05-20 12:48hgbotNote Added: 0137574
2022-05-20 12:48hgbotNote Added: 0137575

2022-04-20 12:13   
Merge Request created: [^]
2022-05-20 12:48   
Repository: [^]
Changeset: b151b08cca361248228e5d7593573db4a6a0b34c
Author: Cristian Berner <>
Date: 20-05-2022 12:46:48
URL: [^]

Related to FR-49073: Merge branch 'fr/49073-hook-discounts'

Create a new hook to allow introducing different rules to filter out if
a discount should be applied to the current ticket or not. This adds
isApplicableToTicket hooks to the main discount engine and a way to
register them in other modules.

A src-test/org/openbravo/retail/discounts/test/base/model/
M src-test/org/openbravo/retail/discounts/test/base/model/
M src-test/org/openbravo/retail/discounts/test/base/model/
M src/org/openbravo/retail/discounts/
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/discount-engine.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/discount-rules.js
2022-05-20 12:48   
Merge request merged: [^]