Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037146Retail ModulesStoreServerpublic2017-10-23 18:222017-11-08 12:34
gorkaion 
mtaal 
normalmajoralways
closedfixed 
5
 
RR18Q1 
AugustoMauch
QA functional test
2017-03-29
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/012e6b7ab09c [^]
No
0037146: [Store Server 3288]Bad error message when central is offline on services configured to be executed only in central.
Regression. issue 0034783 is reproducible again. Copied here the description and steps to reproduce.

The POS Templates configured to be printed in the backend are using a Mobile Service that can only be executed in the central server. The java implementation is overriding the executeOnlyInCentral() method to force this behavior.

When the central server is offline it is not possible to print but the error shown to the user is not friendly. See screenshot.
To test/simulate the issue in a non-but enviroment:
- install multi-server
- set synchronized mode preference
- change the MultiServerJSONProcess.executeOnlyInCentral method to always return true in the store server
- then goto webpos, prepare a ticket
- just before pressing done button stop the central server
- see the error message

Reproduce in BUT environment;

== Prerequisites ==
On a BUT Snapshot with at least core and posterminal modules on tip. PrintDocument java class of posterminal must extend MultiServerJSONProcess.

Ensure that the POS Terminals are using the invoice templates provided by BUT Reports modules that are configured to be printed in the backend.

== Steps ==
Try to print a invoice with central offline
1. Open a closed receipt.
2. Click on Print this receipt.
3. Select the opened printed to enable the print invoices button.
4. Click on Print Invoices.
5. A error message not user friendly is shown (see screenshot)

Same as in 0034783
No tags attached.
related to defect 0034783 closed mtaal [Store Server 2197]Bad error message when central is offline on services configured to be executed only in central. 
Issue History
2017-10-23 18:22gorkaionNew Issue
2017-10-23 18:22gorkaionAssigned To => AugustoMauch
2017-10-23 18:22gorkaionResolution time => 1509922800
2017-10-23 18:22gorkaionRegression level => QA functional test
2017-10-23 18:22gorkaionRegression date => 2017-03-29
2017-10-23 18:22gorkaionRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/012e6b7ab09c [^]
2017-10-23 18:22gorkaionTriggers an Emergency Pack => No
2017-10-23 18:22gorkaionIssue generated from0034783
2017-10-23 18:22gorkaionRelationship addedrelated to 0034783
2017-10-24 09:56mtaalAssigned ToAugustoMauch => mtaal
2017-11-08 08:58mtaalReview Assigned To => AugustoMauch
2017-11-08 08:58hgbotCheckin
2017-11-08 08:58hgbotNote Added: 0100327
2017-11-08 08:58hgbotStatusnew => resolved
2017-11-08 08:58hgbotResolutionopen => fixed
2017-11-08 08:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a4b052d11ffc6c773ce550db82b5bbea00b9d20a [^]
2017-11-08 12:34AugustoMauchNote Added: 0100349
2017-11-08 12:34AugustoMauchStatusresolved => closed
2017-11-08 12:34AugustoMauchFixed in Version => RR18Q1

Notes
(0100327)
hgbot   
2017-11-08 08:58   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a4b052d11ffc6c773ce550db82b5bbea00b9d20a
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 08 08:58:17 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a4b052d11ffc6c773ce550db82b5bbea00b9d20a [^]

Fixes issue 37146: [Store Server 3288]Bad error message when central is offline on services configured to be executed only in central.
Show a nicer error message

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0100349)
AugustoMauch   
2017-11-08 12:34   
Code reviewed and verified