Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0025091 | Retail Modules | Web POS | public | 2013-11-06 10:07 | 2013-12-20 13:14 |
Reporter | alostale | ||||
Assigned To | malsasua | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RMP30 | |||
Merge Request Status | |||||
Review Assigned To | guilleaer | ||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0025091: Design defects in OB.UTIL.isDisableDiscount | ||||
Description | Discounts entry in menu, which allows to apply discretionary discounts, is enabled/disabled based on: -If there's no line in the ticket -> disable -If there're lines and there are active discretionary discounts available to be applied -> enable There are some issues in this logic (OB.UTIL.isDisableDiscount): 1. Incorrect handling of asynchronous DB query which results in always returning false regardless there are active discretionary discounts 2. Hardcoded list of promotions type to get the discretionary ones, OB.Model.Discounts.getManualPromotions() should be used instead 3. Excessive listening. All events in ticket and lines are observed to execute this logic, this should be revisited to reduce the number of events triggering it. 4. Too many queries to local DB, each time it is executed a new query is performed. Result should be cached to prevent it | ||||
Steps To Reproduce | Perform any action in the ticket and see how this function is executed | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-11-06 10:07 | alostale | New Issue | |||
2013-11-06 10:07 | alostale | Assigned To | => marvintm | ||
2013-11-06 10:07 | alostale | OBNetwork customer | => No | ||
2013-11-06 10:07 | alostale | Triggers an Emergency Pack | => No | ||
2013-11-11 13:32 | malsasua | Assigned To | marvintm => malsasua | ||
2013-12-05 15:40 | hgbot | Checkin | |||
2013-12-05 15:40 | hgbot | Note Added: 0062608 | |||
2013-12-05 15:40 | hgbot | Status | new => resolved | ||
2013-12-05 15:40 | hgbot | Resolution | open => fixed | ||
2013-12-05 15:40 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] | ||
2013-12-05 17:06 | hgbot | Checkin | |||
2013-12-05 17:06 | hgbot | Note Added: 0062610 | |||
2013-12-05 17:06 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.cirque/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] | ||
2013-12-05 17:21 | guilleaer | Note Added: 0062626 | |||
2013-12-05 17:21 | guilleaer | Status | resolved => closed | ||
2013-12-05 17:27 | guilleaer | Status | closed => new | ||
2013-12-05 17:27 | guilleaer | Resolution | fixed => open | ||
2013-12-05 17:27 | guilleaer | Status | new => scheduled | ||
2013-12-05 17:27 | guilleaer | fix_in_branch | => pi | ||
2013-12-05 17:27 | guilleaer | Status | scheduled => resolved | ||
2013-12-05 17:27 | guilleaer | Resolution | open => fixed | ||
2013-12-05 17:48 | hgbot | Checkin | |||
2013-12-05 17:48 | hgbot | Note Added: 0062655 | |||
2013-12-05 17:48 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.cirque/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-splitlines/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] | ||
2013-12-18 13:30 | hgbot | Checkin | |||
2013-12-18 13:30 | hgbot | Note Added: 0062777 | |||
2013-12-18 13:35 | guilleaer | Review Assigned To | => guilleaer | ||
2013-12-18 13:35 | guilleaer | Note Added: 0062779 | |||
2013-12-18 13:35 | guilleaer | Status | resolved => closed | ||
2013-12-18 13:35 | guilleaer | Fixed in Version | => RMP30 | ||
2013-12-18 16:45 | hgbot | Checkin | |||
2013-12-18 16:45 | hgbot | Note Added: 0062793 | |||
2013-12-19 18:19 | hgbot | Checkin | |||
2013-12-19 18:19 | hgbot | Note Added: 0062889 | |||
2013-12-19 19:52 | hgbot | Checkin | |||
2013-12-19 19:52 | hgbot | Note Added: 0062932 | |||
2013-12-19 19:52 | hgbot | Status | closed => resolved | ||
2013-12-19 19:52 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-splitlines/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.offline/rev/5c35cc0673c6437dbfe70db1db66b2c29d570d46 [^] | ||
2013-12-20 13:14 | guilleaer | Note Added: 0062980 | |||
2013-12-20 13:14 | guilleaer | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|