Openbravo Issue Tracking System - POS2
View Issue Details
0050203POS2POSpublic2022-09-08 13:512022-09-20 08:04
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
 
No
0050203: Improve the discount engine to allow to extend it
Add a hook that will allow to include custom property in the computable ticket (small version of the ticket used by the discounts engine to calculate discounts)
N/A
1. Define a new hooks in discount engine to be able to add properties to the computed ticket (ticket version used by the discount engine to calculate discounts)

2. Create a utily function to generate payload for ticket model. This code now is internal and cannot be used from othr points. Doing an utility function allow us to call to it
No tags attached.
Issue History
2022-09-08 13:51ebecerraNew Issue
2022-09-08 13:51ebecerraAssigned To => Retail
2022-09-08 13:51ebecerraTriggers an Emergency Pack => No
2022-09-08 13:51ebecerraAssigned ToRetail => ebecerra
2022-09-08 13:51ebecerraStatusnew => scheduled
2022-09-09 08:48guilleaerSummaryImprovement the customization in discounts engine => Improve the discount engine to allow to extend it
2022-09-09 08:48guilleaerDescription Updatedbug_revision_view_page.php?rev_id=24752#r24752
2022-09-09 08:48guilleaerProposed Solution updated
2022-09-09 09:07hgbotNote Added: 0140890
2022-09-09 09:08hgbotNote Added: 0140891
2022-09-20 08:04hgbotResolutionopen => fixed
2022-09-20 08:04hgbotStatusscheduled => closed
2022-09-20 08:04hgbotNote Added: 0141233
2022-09-20 08:04hgbotFixed in Version => RR22Q4
2022-09-20 08:04hgbotNote Added: 0141234
2022-09-20 08:04hgbotNote Added: 0141235
2022-09-20 08:04hgbotNote Added: 0141236

Notes
(0140890)
hgbot   
2022-09-09 09:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/918 [^]
(0140891)
hgbot   
2022-09-09 09:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/63 [^]
(0141233)
hgbot   
2022-09-20 08:04   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/918 [^]
(0141234)
hgbot   
2022-09-20 08:04   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 7bb9a1627b16ddada083787dfb6477201b27580c
Author: Eduardo Becerra (OB) <eduardo.becerra@openbravo.com>
Date: 20-09-2022 06:04:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/7bb9a1627b16ddada083787dfb6477201b27580c [^]

Fixes ISSUE-50203: Improvement the customization in discounts engine

---
M web-test/model/business-object/ticket/TicketUtils.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/CalculateTotalsModelHook.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---
(0141235)
hgbot   
2022-09-20 08:04   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 6b61f0cc7c4cd9d58e2db5add2c7ef6fd2af83f3
Author: Eduardo Becerra (OB) <eduardo.becerra@openbravo.com>
Date: 20-09-2022 06:04:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/6b61f0cc7c4cd9d58e2db5add2c7ef6fd2af83f3 [^]

Related ISSUE-50203: Improvement the customization in discounts engine

---
A web-test/model/business-logic/discounts-engine/engine/discount-engine.test.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/discount-engine.js
---
(0141236)
hgbot   
2022-09-20 08:04   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/63 [^]