Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031027Retail ModulesWeb POSpublic2015-10-02 12:402015-10-13 18:06
plujan 
migueldejuana 
normalmajorhave not tried
closedfixed 
5
main 
RR16Q1 
mtaal
QA functional test
2015-07-16
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3bfd5690abf1 [^]
No
0031027: [RR15Q4] [StockValidationModule] Stock validation does not detect if webPOS is online or offline
While creating receipts having the Stock Validation module installed, every time I add a new product a request to the server is made to check whether there is stock or not.
However, if the online/offline status change during this process, it is not detected. See steps.
A. [Correct scenario] Full online flow
1. Login (online) in webPOS as vallblanca user
2. Add a new product to a ticket
3. Check that a request is made to the server to verify there is enough stock
4. The product is added and you can continue the process

B. [Correct scenario] Full offline flow
1. Unplug the network cable and login (offline) in webPOS as vallblanca user
2. Add a new product to a ticket
3. Check a warning message is shown, since the communication with the server is not possible
4. The product is added and you can continue the process

C. [Incorrect scenario] Partial offline flow
1. Unplug the network cable and login (offline) in webPOS as vallblanca user
2. Plug the cable to get connection back
3. Add a new product to a ticket
3. Check a warning message is shown, although connection with the server should be possible
4. The product is added and you can continue the process

D. [Incorrect scenario] Partial online flow
1. Login (online) in webPOS as vallblanca user
2. Unplug the network cable to go offline
3. Add a new product to a ticket
4. An error message is shown and the system freezes at the Loading window (see attach)
5. You cannot continue
No tags attached.
depends on backport 0031057RR15Q4 closed marvintm [RR15Q4] [StockValidationModule] Stock validation does not detect if webPOS is online or offline 
png CannotRetrieveStock.png (98,955) 2015-10-02 12:40
https://issues.openbravo.com/file_download.php?file_id=8513&type=bug
png
Issue History
2015-10-02 12:40plujanNew Issue
2015-10-02 12:40plujanAssigned To => Retail
2015-10-02 12:40plujanTriggers an Emergency Pack => No
2015-10-02 12:40plujanFile Added: CannotRetrieveStock.png
2015-10-05 10:56migueldejuanaAssigned ToRetail => migueldejuana
2015-10-05 10:56migueldejuanaReview Assigned To => marvintm
2015-10-06 11:09migueldejuanaStatusnew => scheduled
2015-10-06 11:09hgbotCheckin
2015-10-06 11:09hgbotNote Added: 0080838
2015-10-06 11:09hgbotStatusscheduled => resolved
2015-10-06 11:09hgbotResolutionopen => fixed
2015-10-06 11:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/146c8ecc70542be45c60019f0714636dde2046bc [^]
2015-10-06 12:53migueldejuanaRegression level => QA functional test
2015-10-06 12:53migueldejuanaRegression date => 2015-07-16
2015-10-06 12:53migueldejuanaRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3bfd5690abf1 [^]
2015-10-07 10:36migueldejuanaReview Assigned Tomarvintm => mtaal
2015-10-13 18:06mtaalNote Added: 0080987
2015-10-13 18:06mtaalStatusresolved => closed
2015-10-13 18:06mtaalFixed in Version => RR16Q1

Notes
(0080838)
hgbot   
2015-10-06 11:09   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 146c8ecc70542be45c60019f0714636dde2046bc
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Oct 05 16:08:48 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/146c8ecc70542be45c60019f0714636dde2046bc [^]

Fixed issue 0031027: [RR15Q4] [StockValidationModule] Stock validation does not detect if webPOS is online or offline

Handle 401 error in FailOver service type

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0080987)
mtaal   
2015-10-13 18:06   
Retested in Q1