Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035456 | Retail Modules | Web POS | public | 2017-03-08 19:46 | 2017-03-24 12:14 |
|
Reporter | shuehner | |
Assigned To | ranjith_qualiantech_com | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR17Q2 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035456: Multiple duplicate requests to Complementary Products when adding product to ticket with remote data enabled. |
Description | When having complementary products feature and remote data preference activated.
Then when adding a product to a new empty ticket several requests to org.openbravo.retail.complementary.master.ComplementaryProducts are fired.
Those look like duplicate request and at most 1 should be done for a single product |
Steps To Reproduce | i.e. in livebuilds pi_retail with modules
configure a product to have a complementary product
in webpos search search for that product configured in previous step
Add that product to a ticket and check i.e. chromium net panel to notice that several duplicate request are fired for the ComplementaryProduct servlet |
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | feature request | 0035501 | | new | Retail | Add Warning message to code which inside renderLine hook does either http requests or websql queries | related to | defect | 0035520 | | closed | ranjith_qualiantech_com | Multiple duplicate requests to Complementary Products when loading a ticket |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-08 19:46 | shuehner | New Issue | |
2017-03-08 19:46 | shuehner | Assigned To | => Retail |
2017-03-08 19:46 | shuehner | Triggers an Emergency Pack | => No |
2017-03-08 19:46 | shuehner | Tag Attached: Performance | |
2017-03-08 19:48 | shuehner | Note Added: 0094843 | |
2017-03-09 09:04 | marvintm | Regression date | => 2017-03-30 |
2017-03-13 13:33 | maite | Resolution time | => 1490824800 |
2017-03-13 13:33 | maite | Regression date | 2017-03-30 => |
2017-03-13 19:51 | shuehner | Relationship added | related to 0035501 |
2017-03-14 15:59 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2017-03-14 16:00 | ranjith_qualiantech_com | Status | new => scheduled |
2017-03-15 10:26 | Sandrahuguet | Relationship added | related to 0035520 |
2017-03-15 12:42 | hgbot | Checkin | |
2017-03-15 12:42 | hgbot | Note Added: 0095026 | |
2017-03-15 12:42 | hgbot | Status | scheduled => resolved |
2017-03-15 12:42 | hgbot | Resolution | open => fixed |
2017-03-15 12:42 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/26cb6f846ed99c897ad7b94a89eeb8774d4ad484 [^] |
2017-03-16 16:26 | marvintm | Note Added: 0095329 | |
2017-03-16 16:26 | marvintm | Status | resolved => new |
2017-03-16 16:26 | marvintm | Resolution | fixed => open |
2017-03-17 07:48 | ranjith_qualiantech_com | Status | new => scheduled |
2017-03-17 12:22 | hgbot | Checkin | |
2017-03-17 12:22 | hgbot | Note Added: 0095375 | |
2017-03-17 12:22 | hgbot | Status | scheduled => resolved |
2017-03-17 12:22 | hgbot | Resolution | open => fixed |
2017-03-17 12:22 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/26cb6f846ed99c897ad7b94a89eeb8774d4ad484 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/6b33f0797d08d305197be81e364bc0fbb5949bb6 [^] |
2017-03-24 12:14 | marvintm | Review Assigned To | => marvintm |
2017-03-24 12:14 | marvintm | Status | resolved => closed |
2017-03-24 12:14 | marvintm | Fixed in Version | => RR17Q2 |
Notes |
|
|
Note: issue was found in pi-but-dev codeline with snapshot of 20170306 but is also reproducible in livebuilds. Fix should be tested in both codelines |
|
|
(0095026)
|
hgbot
|
2017-03-15 12:42
|
|
Repository: erp/pmods/org.openbravo.retail.complementary
Changeset: 26cb6f846ed99c897ad7b94a89eeb8774d4ad484
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Mar 15 17:06:10 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/26cb6f846ed99c897ad7b94a89eeb8774d4ad484 [^]
Fixes issue 35456 : Complementary Product are checked in hook PostAddProductToOrder
* Complementary Product are checked in hook PostAddProductToOrder instead of hook RenderOrderLine, Since RenderOrderLine getting called whenever line attributes changes. this avoids multiple call to server in remote mode
---
M web/org.openbravo.retail.complementary/js/hooks/hookRenderOrderLine.js
---
|
|
|
|
The main idea behind the fix is correct, but this part can be further improved, because currently we are checking if the product has complementary products every time a new unit is added to the line, and this is not needed. So, the first time a new line is added to the ticket, the request for the complementary products should happen, but afterwards, if a line which already did the check is modified, the check should not be done anymore. |
|
|
(0095375)
|
hgbot
|
2017-03-17 12:22
|
|
Repository: erp/pmods/org.openbravo.retail.complementary
Changeset: 6b33f0797d08d305197be81e364bc0fbb5949bb6
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 17 16:51:46 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.complementary/rev/6b33f0797d08d305197be81e364bc0fbb5949bb6 [^]
Fixes issue 35456 : Complementary Product should be checked for first time while adding product
* If Product quantity is increased, then Complementary Product should not be checked
---
M web/org.openbravo.retail.complementary/js/hooks/hookRenderOrderLine.js
---
|
|