Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048169Retail ModulesWeb POSpublic2021-11-26 14:522021-11-30 11:20
gorka_gil 
gorka_gil 
highminorN/A
closedfixed 
5
 
RR22Q1 
marvintm
No
0048169: scaled discount per total amount
The idea is to be able to define a new type of discount per total amount.

Like for the “scaled price” promotions, we need to define in a subtab different stages and rewards (can be in amount or percentage)

For instance,
We could create a new discount with type “scaled discount per total amount” from 01/12/2021 to 31/12/2021.

We could define different stages in a new tab :
- Amount = 5 , Ticket amount = 50 : Give 5€ discount total if the total of the ticket is equal or higher than 50€
- Amount = 10 , Ticket amount = 80 : Give 10€ discount total if the total of the ticket is equal or higher than 80€
- Amount = 15 , Ticket amount = 100 : Give 15€ discount total if the total of the ticket is equal or higher than 100€

And the same for percentages.
-
NOR
Issue History
2021-11-26 14:52gorka_gilNew Issue
2021-11-26 14:52gorka_gilAssigned To => gorka_gil
2021-11-26 14:52gorka_gilTriggers an Emergency Pack => No
2021-11-26 17:35hgbotResolutionopen => fixed
2021-11-26 17:35hgbotStatusnew => resolved
2021-11-26 17:35hgbotNote Added: 0133393
2021-11-26 17:38hgbotNote Added: 0133394
2021-11-26 17:39hgbotNote Added: 0133395
2021-11-26 17:40gorka_gilNote Added: 0133396
2021-11-26 17:41gorka_gilReview Assigned To => marvintm
2021-11-26 17:41gorka_gilStatusresolved => closed
2021-11-26 17:41gorka_gilFixed in Version => RR22Q1
2021-11-30 11:20sebastien_lironTag Attached: NOR

Notes
(0133393)
hgbot   
2021-11-26 17:35   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal [^]
Changeset: 421cfd4907ad07fee5ef72482345466a4be78990
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 2021-11-26T17:34:20+01:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal/-/commit/421cfd4907ad07fee5ef72482345466a4be78990 [^]

Fixes ISSUE-48169: Merge branch 'fr/scaledBytotal'

---
A src-db/database/model/tables/DISCT_SCALEDBYTOTAL.xml
A src-db/database/sourcedata/AD_REFERENCE.xml
A src-db/database/sourcedata/AD_REF_LIST.xml
A src-test/org/openbravo/discounts/bytotal/test/base/model/ScaledBytotalStep.java
A src-test/org/openbravo/discounts/bytotal/test/base/model/definition/ByTotalAmountScaled.java
A src-test/org/openbravo/discounts/bytotal/test/base/model/definition/ByTotalPercentageScaled.java
A src-test/org/openbravo/discounts/bytotal/test/unittests/DiscountByTotalAmountScaledTest.java
A src-test/org/openbravo/discounts/bytotal/test/unittests/DiscountByTotalPercentageScaledTest.java
A src/org/openbravo/retail/discounts/bytotal/master/ScaledBytotal.java
A src/org/openbravo/retail/discounts/bytotal/master/ScaledBytotalProperties.java
A web/org.openbravo.retail.discounts.bytotal/app/model/business-logic/discounts-engine/engine/rules/by-total-discount.js
A web/org.openbravo.retail.discounts.bytotal/app/model/masterdata/DiscountFilterScaledBytotalModel.js
M src-db/database/model/modifiedTables/M_OFFER.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src/org/openbravo/retail/discounts/bytotal/ByToTalDiscountsEngineAppComponentProvider.java
M src/org/openbravo/retail/discounts/bytotal/ByTotalDataHook.java
M src/org/openbravo/retail/discounts/bytotal/DiscTComponentProvider.java
M web/org.openbravo.retail.discounts.bytotal/app/model/business-logic/discounts-engine/engine/rules/by-total-amount-discount.js
M web/org.openbravo.retail.discounts.bytotal/app/model/business-logic/discounts-engine/engine/rules/by-total-percentage-discount.js
M web/org.openbravo.retail.discounts.bytotal/js/bytotal-datahook.js
---
(0133394)
hgbot   
2021-11-26 17:38   
Repository: https://gitlab.com/openbravo/ci/modules/org.openbravo.test.mobile.sampledata [^]
Changeset: 584fe9bf213a780b45222e97458efd29222e0b88
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 2021-11-26T17:37:16+01:00
URL: https://gitlab.com/openbravo/ci/modules/org.openbravo.test.mobile.sampledata/-/commit/584fe9bf213a780b45222e97458efd29222e0b88 [^]

Related to ISSUE-48169: Merge branch 'fr/scaledBytotal'

---
M referencedata/sampledata/The_White_Valley_Group/M_OFFER.xml
---
(0133395)
hgbot   
2021-11-26 17:39   
Repository: https://gitlab.com/openbravo/ci/modules/org.openbravo.retail.testsampledata [^]
Changeset: 929d6d127a237367c41869876adcc096ecc67407
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 2021-11-26T17:38:56+01:00
URL: https://gitlab.com/openbravo/ci/modules/org.openbravo.retail.testsampledata/-/commit/929d6d127a237367c41869876adcc096ecc67407 [^]

Related to ISSUE-48169: Merge branch 'fr/scaledBytotal'

---
M referencedata/sampledata/Retail_Test/M_OFFER.xml
---
(0133396)
gorka_gil   
2021-11-26 17:40   
MR:

https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal/-/merge_requests/11 [^]
https://gitlab.com/openbravo/ci/modules/org.openbravo.test.mobile.sampledata/-/merge_requests/16 [^]
https://gitlab.com/openbravo/ci/modules/org.openbravo.retail.testsampledata/-/merge_requests/12 [^]