Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034287 | Retail Modules | Web POS | public | 2016-10-24 18:48 | 2020-04-14 15:10 |
|
Reporter | eduardo_Argal | |
Assigned To | eduardo_Argal | |
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | mtaal |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034287: Entity vs Import Qualifier |
Description | Havning a process with a service defined as Transaction (so it does use queues, import entries)
As you know for this processes we define:
- An entity:
@DataSynchronization(entity = "XXX")
- An import qualifier:
protected String getImportQualifier() {
return "YYY";
}
We were always assuming that this XXX = YYY, but this is not correct. For example in the case of Cancel Layaway the entity behind is a Layaway (Order) but the import qualifier should be the process: OBPOS_CancelLayaway (for example). We noticed this due to an error that now is thrown due to the validation you added for synchronized mode (afterReturnFromCentral). This validation is querying to retrieve the record in the other server (check DS). As we were using process name as entity, process was failing when trying to get object behind 'id' for non existing entity (OBPOS_CancelLayaway).
This took me to change entity = Order, importQaulifier = OBPOS_CancelLayaway. and this worked fine. But as well a new problem raised.
Let me explain, when preference for synchronized is not there (equals 'N') and an error occurs, an import error is raised and there the API is using entity for the importdatatype. That's a problem because I think it should map to the importQualifier (so that process can be run again when fixing error) |
Steps To Reproduce | Create a Layaway in an env with synchronized preference equals Y.
Cancel it using cancel Layaway process.
System fails due to wrong entity (OBPOS_CancelLayaway).
|
Proposed Solution | Find patches attached |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | posterminal.diff (4,258) 2016-10-24 18:48 https://issues.openbravo.com/file_download.php?file_id=9950&type=bug
mobile.core (1).diff (2,282) 2016-10-24 18:49 https://issues.openbravo.com/file_download.php?file_id=9951&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-10-24 18:48 | eduardo_Argal | New Issue | |
2016-10-24 18:48 | eduardo_Argal | Assigned To | => adrianromero |
2016-10-24 18:48 | eduardo_Argal | File Added: posterminal.diff | |
2016-10-24 18:48 | eduardo_Argal | OBNetwork customer | => No |
2016-10-24 18:49 | eduardo_Argal | File Added: mobile.core (1).diff | |
2016-10-24 18:49 | eduardo_Argal | Assigned To | adrianromero => eduardo_Argal |
2016-10-26 17:48 | hgbot | Checkin | |
2016-10-26 17:48 | hgbot | Note Added: 0090930 | |
2016-10-26 17:48 | hgbot | Status | new => resolved |
2016-10-26 17:48 | hgbot | Resolution | open => fixed |
2016-10-26 17:48 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/85e0af60e83bb6b3ec99ac157aa778d3dfb0218a [^] |
2016-10-26 17:49 | hgbot | Checkin | |
2016-10-26 17:49 | hgbot | Note Added: 0090931 | |
2016-11-04 10:27 | hgbot | Checkin | |
2016-11-04 10:27 | hgbot | Note Added: 0091164 | |
2016-11-07 11:49 | mtaal | Review Assigned To | => mtaal |
2016-11-15 10:25 | mtaal | Note Added: 0091538 | |
2016-11-15 10:25 | mtaal | Status | resolved => new |
2016-11-15 10:25 | mtaal | Resolution | fixed => open |
2016-12-30 13:37 | hgbot | Checkin | |
2016-12-30 13:37 | hgbot | Note Added: 0093074 | |
2016-12-30 13:37 | hgbot | Checkin | |
2016-12-30 13:37 | hgbot | Note Added: 0093076 | |
2016-12-30 13:37 | hgbot | Checkin | |
2016-12-30 13:37 | hgbot | Note Added: 0093078 | |
2020-04-14 15:10 | marvintm | Project | Java Client POS => Retail Modules |
2020-04-14 15:10 | marvintm | Triggers an Emergency Pack | => No |
2020-04-14 15:10 | marvintm | Category | 01 - General => Web POS |
Notes |
|
(0090930)
|
hgbot
|
2016-10-26 17:48
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 85e0af60e83bb6b3ec99ac157aa778d3dfb0218a
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Wed Oct 26 17:48:35 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/85e0af60e83bb6b3ec99ac157aa778d3dfb0218a [^]
Fixes issue 34287. API change in handle error (importQualifier vs entity)
---
M src/org/openbravo/mobile/core/process/DataSynchronizationErrorHandler.java
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
---
|
|
|
(0090931)
|
hgbot
|
2016-10-26 17:49
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a960316c234272a2c3dcb42fda40b8886e146c61
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Wed Oct 26 17:49:22 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a960316c234272a2c3dcb42fda40b8886e146c61 [^]
Related to issue 34287. API change in handle error (importQualifier vs entity)
---
M src/org/openbravo/retail/posterminal/ExternalOrderLoaderErrorHandler.java
M src/org/openbravo/retail/posterminal/POSDataSynchronizationErrorHandler.java
---
|
|
|
(0091164)
|
hgbot
|
2016-11-04 10:27
|
|
|
|
(0091538)
|
mtaal
|
2016-11-15 10:25
|
|
|
|
(0093074)
|
hgbot
|
2016-12-30 13:37
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c362b688c27f58aa66af054ec233f8e31b921277
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Fri Dec 30 10:59:13 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c362b688c27f58aa66af054ec233f8e31b921277 [^]
Related to issue 34287: Backed out changeset a960316c2342 because the release is going to be closed and this change was not approved
---
M src/org/openbravo/retail/posterminal/ExternalOrderLoaderErrorHandler.java
M src/org/openbravo/retail/posterminal/POSDataSynchronizationErrorHandler.java
---
|
|
|
(0093076)
|
hgbot
|
2016-12-30 13:37
|
|
|
|
(0093078)
|
hgbot
|
2016-12-30 13:37
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 49d79b8bed6d5b2eef11195b193a87963a9cad3e
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Fri Dec 30 10:57:55 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/49d79b8bed6d5b2eef11195b193a87963a9cad3e [^]
Related to issue 34287: Backed out changeset 85e0af60e83b because the release is going to be closed and this change was not approved
---
M src/org/openbravo/mobile/core/process/DataSynchronizationErrorHandler.java
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
---
|
|