Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0038736 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Discounts and Promotions | major | always | 2018-06-12 11:29 | 2019-01-24 17:05 | |||
Reporter | anderaranguren | View Status | public | |||||
Assigned To | rqueralta | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR18Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | c72b5910588f | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | marvintm | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0038736: Problem when applying a scaled price discount on the Web POS in OFFLINE mode | |||||||
Description | While offline mode, if you select a product with a discount (e.g. fixed percentage discount) and after that select a product with scaled price discount the Web POS does not work as expected. | |||||||
Steps To Reproduce | - Install the Scaled Price discounts module - Log in Backoffice and create a new discount on 'Discounts and Promotions' window, discount type: Scaled Price - Add a product to this discount (e.g. avalanche transeiver) - Set up the scaled price tab (1 item -> 25% , 2 items -> 35%, 3 items -> 50%) - Go to the web POS, and add a product that has a different discount (e.g. gps handheld with 'fixed percentage discount') - After that add the product with scaled price discount (avalanche transceiver) - It works fine. But if you go OFFLINE, refresh the Web POS and do these last steps (add both products to the order) again while offline, it does not work properly. | |||||||
Tags | No tags attached. | |||||||
Attached Files | online.png [^] (132,309 bytes) 2018-06-12 11:29
offline.png [^] (266,562 bytes) 2018-06-12 11:29 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0105190) jorge-garcia (reporter) 2018-06-18 08:50 |
The issue is not reproducible in PI following the steps to reproduce, feedback requested. |
(0105287) hgbot (developer) 2018-06-20 18:41 |
Repository: erp/pmods/org.openbravo.retail.discounts.scaledprice Changeset: c72b5910588f02d40696d860b595a6c128f83482 Author: Rafael Queralta <rafaelcuba81 <at> gmail.com> Date: Tue Jun 19 16:12:47 2018 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/c72b5910588f02d40696d860b595a6c128f83482 [^] Fixed issue 38736: Problem when applying a scaled price discount on the Web POS in OFFLINE mode - Added OBDSCAL_Scale model into OB.Model, to make it is available in offline mode --- M web/org.openbravo.retail.discounts.scaledprice/js/scaledpricemodel.js --- |
(0105353) marvintm (manager) 2018-06-25 08:52 |
The solution is not correct. The modified model is a generatedStructure model, so it is generated automatically from the DAL model. We don't want or need to change this, so this part should be reverted. We also don't need to change the name of the variable, or the way the model is registered, all of this was correct. Instead, the main problem is that the request to load the model structure is not being cached inside the application cache. To solve this problem, we need to add the request to the manifest, like it is currently done in ApplicationCacheComponent.java. However, this model exists inside a module, so we need to implement a CoreAppCacheResourceProvider class, and then add the request there. You can check DiscountsByTotalAppCacheProvider.java for a very similar example. |
(0105371) hgbot (developer) 2018-06-25 19:00 |
Repository: erp/pmods/org.openbravo.retail.discounts.scaledprice Changeset: ec726fb2b439c8a45976416b7d6394a1301b094f Author: Rafael Queralta <rafaelcuba81 <at> gmail.com> Date: Mon Jun 25 12:58:48 2018 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/ec726fb2b439c8a45976416b7d6394a1301b094f [^] Related to issue 38736: Problem when applying a scaled price discount on the Web POS in OFFLINE mode - Backed out changeset: c72b5910588f --- M web/org.openbravo.retail.discounts.scaledprice/js/scaledpricemodel.js --- |
(0105457) hgbot (developer) 2018-06-26 20:56 |
Repository: erp/pmods/org.openbravo.retail.discounts.scaledprice Changeset: e005c70552cff64066896a5d9f11fc7943b2eea9 Author: Rafael Queralta <rafaelcuba81 <at> gmail.com> Date: Tue Jun 26 14:40:22 2018 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/e005c70552cff64066896a5d9f11fc7943b2eea9 [^] Related to issue 38736: Problem when applying a scaled price discount on the Web POS in OFFLINE mode - Implemented a CoreAppCacheResourceProvider class to load the OBDSCAL_Scale model structure inside the application cache --- A src/org/openbravo/retail/discounts/scaledprice/DiscountsScaledPriceAppCacheProvider.java --- |
(0105678) hgbot (developer) 2018-07-09 15:19 |
Repository: tools/automation/pi-mobile Changeset: 07dd8157c00618010cda3d8276db4c8e920328eb Author: Alejandro <alekosmp86 <at> gmail.com> Date: Thu Jul 05 09:07:09 2018 -0400 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/07dd8157c00618010cda3d8276db4c8e920328eb [^] Related to issue 38736: added automated test --- M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/multidiscounts/I38736_VerifyScalePriceDiscountInOfflineMode.java --- |
(0109240) hgbot (developer) 2019-01-24 17:05 |
Repository: tools/automation/pi-mobile Changeset: 0ced71588d1690c7e13d064fb848dfc8bc1a4230 Author: Alejandro <alekosmp86 <at> gmail.com> Date: Tue Jan 22 14:43:46 2019 -0500 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/0ced71588d1690c7e13d064fb848dfc8bc1a4230 [^] Related to issue 38736: test has been refactored due it no longer creates its own sampledata. --- M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_scaledprice/I38736_VerifyScalePriceDiscountInOfflineMode.java --- |
Issue History | |||
Date Modified | Username | Field | Change |
2018-06-12 11:29 | anderaranguren | New Issue | |
2018-06-12 11:29 | anderaranguren | Assigned To | => Retail |
2018-06-12 11:29 | anderaranguren | File Added: online.png | |
2018-06-12 11:29 | anderaranguren | Resolution time | => 1530568800 |
2018-06-12 11:29 | anderaranguren | Triggers an Emergency Pack | => No |
2018-06-12 11:29 | anderaranguren | File Added: offline.png | |
2018-06-12 12:03 | Practics | Issue Monitored: Practics | |
2018-06-14 13:11 | rqueralta | Assigned To | Retail => rqueralta |
2018-06-14 13:11 | rqueralta | Status | new => scheduled |
2018-06-18 08:50 | jorge-garcia | Note Added: 0105190 | |
2018-06-18 08:50 | jorge-garcia | Assigned To | rqueralta => anderaranguren |
2018-06-18 08:50 | jorge-garcia | Status | scheduled => feedback |
2018-06-18 09:53 | anderaranguren | Steps to Reproduce Updated | View Revisions |
2018-06-18 10:01 | jorge-garcia | Status | feedback => scheduled |
2018-06-18 10:01 | jorge-garcia | Assigned To | anderaranguren => rqueralta |
2018-06-20 18:41 | hgbot | Checkin | |
2018-06-20 18:41 | hgbot | Note Added: 0105287 | |
2018-06-20 18:41 | hgbot | Status | scheduled => resolved |
2018-06-20 18:41 | hgbot | Resolution | open => fixed |
2018-06-20 18:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/c72b5910588f02d40696d860b595a6c128f83482 [^] |
2018-06-25 08:52 | marvintm | Note Added: 0105353 | |
2018-06-25 08:52 | marvintm | Status | resolved => new |
2018-06-25 08:52 | marvintm | Resolution | fixed => open |
2018-06-25 19:00 | hgbot | Checkin | |
2018-06-25 19:00 | hgbot | Note Added: 0105371 | |
2018-06-26 20:56 | hgbot | Checkin | |
2018-06-26 20:56 | hgbot | Note Added: 0105457 | |
2018-06-26 22:28 | rqueralta | Status | new => scheduled |
2018-06-26 22:29 | rqueralta | Status | scheduled => resolved |
2018-06-26 22:29 | rqueralta | Resolution | open => fixed |
2018-06-27 09:04 | marvintm | Review Assigned To | => marvintm |
2018-06-27 09:04 | marvintm | Status | resolved => closed |
2018-06-27 09:04 | marvintm | Fixed in Version | => RR18Q3 |
2018-07-09 15:19 | hgbot | Checkin | |
2018-07-09 15:19 | hgbot | Note Added: 0105678 | |
2019-01-24 17:05 | hgbot | Checkin | |
2019-01-24 17:05 | hgbot | Note Added: 0109240 |
Copyright © 2000 - 2009 MantisBT Group |