Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032822 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | major | always | 2016-04-20 15:34 | 2016-05-23 19:31 | |||
Reporter | aaroncalero | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR16Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 7d9222ca1640 | ||||
Projection | none | ETA | none | Target Version | RR16Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | Orekaria | |||||||
Regression level | Production - QA Approved | |||||||
Regression date | 2015-11-27 | |||||||
Regression introduced in release | RR16Q1 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c3305a61a5f7 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0032822: Overall performance loss after clicking on receipt lines several times | |||||||
Description | During the normal use of Web POS, after clicking on receipt lines several times, the overall performance of webpos operations slowly decreases. The problem is that every time a line of the receipt is clicked, an event handler is being attached to the receipt line collection. The performance problem comes from | |||||||
Steps To Reproduce | Verify on the following file https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/annotate/8f965cacdfb0/web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-right.js#l467 [^] that an event handler is being added on every tap() execution. Add a console.log expression on the receiptLineSelected function on pointofsale.js. Refresh the webpos, create a new ticket and add a line. Verify that the first time the line is clicked, the log expression is printed once. Verify that the second time the line is clicked, the log expression is printed twice. Every time the line is clicked, the amount of log lines printed increases. | |||||||
Proposed Solution | The event handler that is added on toolbar-right.js should be added just once to prevent multiple executions of receiptLineSelected(). | |||||||
Tags | No tags attached. | |||||||
Attached Files | issue 32822 source posterminal 6250.patch [^] (8,547 bytes) 2016-05-02 14:59 [Show Content]
issue 32822 source mobile.core 2025.patch [^] (2,373 bytes) 2016-05-02 15:00 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0086137) hgbot (developer) 2016-05-02 18:56 |
Repository: retail/backports/3.0RR16Q2/org.openbravo.mobile.core Changeset: 6bfa2a861958e503bf2688c37895b6585fb93cbe Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon May 02 22:25:16 2016 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.mobile.core/rev/6bfa2a861958e503bf2688c37895b6585fb93cbe [^] Related to issue 32822 : Removing Duplicate code in receipt line selection Receipt line selection event has been added in posterminal editline.js --- M web/org.openbravo.mobile.core/source/component/ob-keypadbasic.js --- |
(0086138) hgbot (developer) 2016-05-02 18:57 |
Repository: retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal Changeset: 7d9222ca164073c657778102fad17c0176583f57 Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon May 02 22:14:02 2016 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/7d9222ca164073c657778102fad17c0176583f57 [^] Fixes issue 32822 : Removed multi receipt line selection event Added condition to display Toolbar buttons(+, -, quantity) on receipt line selection events --- M web/org.openbravo.retail.posterminal/js/components/renderorderline.js M web/org.openbravo.retail.posterminal/js/pointofsale/view/editline.js M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboardorder.js M web/org.openbravo.retail.posterminal/js/pointofsale/view/pointofsale.js M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-right.js --- |
Issue History | |||
Date Modified | Username | Field | Change |
2016-05-02 12:15 | marvintm | Type | defect => backport |
2016-05-02 12:15 | marvintm | Target Version | => RR16Q2 |
2016-05-02 14:59 | ranjith_qualiantech_com | File Added: issue 32822 source posterminal 6250.patch | |
2016-05-02 15:00 | ranjith_qualiantech_com | File Added: issue 32822 source mobile.core 2025.patch | |
2016-05-02 18:56 | hgbot | Checkin | |
2016-05-02 18:56 | hgbot | Note Added: 0086137 | |
2016-05-02 18:57 | hgbot | Checkin | |
2016-05-02 18:57 | hgbot | Note Added: 0086138 | |
2016-05-02 18:57 | hgbot | Status | scheduled => resolved |
2016-05-02 18:57 | hgbot | Resolution | open => fixed |
2016-05-02 18:57 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/91fbb47d4873d68a924300e2cde207ebee599211 [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/7d9222ca164073c657778102fad17c0176583f57 [^] |
2016-05-23 19:31 | Orekaria | Review Assigned To | => Orekaria |
2016-05-23 19:31 | Orekaria | Status | resolved => closed |
2016-05-23 19:31 | Orekaria | Fixed in Version | => RR16Q2 |
Copyright © 2000 - 2009 MantisBT Group |