Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0043769 | Retail Modules | Web POS | public | 2020-04-17 13:17 | 2020-04-24 15:03 |
|
Reporter | jorge-garcia | |
Assigned To | jorge-garcia | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR20Q3 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0043769: Discretionary Promotions in New Discount Engine for WebPOS state |
Description | Discretionary promotions are added to the receipt in several ways depending on the discretionary promotion applied (manual promotion, manual by total promotion or coupons).
This promotions were added in a proper way by the WebPOS adapter before are calculated by the new discount engine
As part of WebPOS state development, we want to avoid the adapter and use a object property in the receipt called "discountsFromUser" every time a discretionary promotions is added/modified/removed.
"discountsFromUser" is a plain javascript object with three objects inside:
* manualPromotions: plain JS array with manual promotions from retail discounts module.
* bytotalManualPromotions: plain JS array with manual promotions from retail by total discounts module.
* coupons: plain JS array with manual promotions from retail coupons discounts module.
The logic of discretionary promotion calculation must not be changed and the results should be the same as before. |
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | causes | defect | 0043961 | | closed | Retail | cannot split line with "User Defined Line Amount" discount | causes | defect | 0047453 | pi | closed | javierRodriguez | issue with chrome 92 in addPromotion manual |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-04-17 13:17 | jorge-garcia | New Issue | |
2020-04-17 13:17 | jorge-garcia | Assigned To | => jorge-garcia |
2020-04-17 13:17 | jorge-garcia | OBNetwork customer | => No |
2020-04-17 13:17 | jorge-garcia | Triggers an Emergency Pack | => No |
2020-04-17 13:17 | jorge-garcia | Status | new => scheduled |
2020-04-17 13:47 | hgbot | Checkin | |
2020-04-17 13:47 | hgbot | Note Added: 0119240 | |
2020-04-17 13:47 | hgbot | Checkin | |
2020-04-17 13:47 | hgbot | Note Added: 0119241 | |
2020-04-17 18:13 | hgbot | Checkin | |
2020-04-17 18:13 | hgbot | Note Added: 0119242 | |
2020-04-18 00:07 | hgbot | Checkin | |
2020-04-18 00:07 | hgbot | Note Added: 0119244 | |
2020-04-18 00:07 | hgbot | Status | scheduled => resolved |
2020-04-18 00:07 | hgbot | Resolution | open => fixed |
2020-04-18 00:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c4825f3c82669db4c1f8701d7500d7f93d9d9df1 [^] |
2020-04-18 00:08 | hgbot | Checkin | |
2020-04-18 00:08 | hgbot | Note Added: 0119245 | |
2020-04-24 15:03 | marvintm | Review Assigned To | => marvintm |
2020-04-24 15:03 | marvintm | Status | resolved => closed |
2020-04-24 15:03 | marvintm | Fixed in Version | => RR20Q3 |
2020-05-06 13:41 | alostale | Relationship added | causes 0043961 |
2021-07-26 17:58 | adrianromero | Relationship added | causes 0047453 |
Notes |
|
(0119240)
|
hgbot
|
2020-04-17 13:47
|
|
|
|
(0119241)
|
hgbot
|
2020-04-17 13:47
|
|
|
|
(0119242)
|
hgbot
|
2020-04-17 18:13
|
|
|
|
(0119244)
|
hgbot
|
2020-04-18 00:07
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c4825f3c82669db4c1f8701d7500d7f93d9d9df1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Apr 17 13:30:00 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c4825f3c82669db4c1f8701d7500d7f93d9d9df1 [^]
Fixed BUG-43769: Change manual promotions to use discountsFromUser
receipt object
Logic from WebPOs connector has change and does not do anymore the
transformation of discretionary promotions.
---
M web/org.openbravo.retail.posterminal/js/components/modalsplitlines.js
M web/org.openbravo.retail.posterminal/js/discountsengine/pos/pos-discounts.js
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/modals/modalDeleteDiscounts.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ticketdiscount.js
---
|
|
|
(0119245)
|
hgbot
|
2020-04-18 00:08
|
|
Repository: tools/automation/pi-mobile
Changeset: e64fec37d158e510325bfabdbf9d5ceac6ff3eca
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Apr 17 13:37:38 2020 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/e64fec37d158e510325bfabdbf9d5ceac6ff3eca [^]
Related to BUG-43769: Remove test from Cancel and Replace as it is
not valid
In a cancel and replace scenario, manual promotions applied should
not be recalculated even if the line is changed.
---
R src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/CancelAndRplcManualDiscount.java
---
|
|