Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041833Retail ModulesSessionspublic2019-09-18 12:172019-09-26 17:14
aaroncalero 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR19Q4 
jorge-garcia
No
0041833: Reprocessed OpenSessionPOS errors generate import entries with a wrong type.
When an OpenSessionPOS process ends up in the errors while importing POS data window, its data type is stored as Open Till(POSS_Terminal_Sessions) which is the entity qualifier of the process.
The associated import entry is created with its data type = Open Session POS (POSS_OpenSessionPOS) which is the import qualifier of the process.

When the error is reprocessed, a new import entry is generated to process the data. This new import entry is generated with a data type = POSS Terminal Sessions(POSS_Terminal_Sessions) which is the entity qualifier of the process, and not the import qualifier.

When the import entry archiver process tries to move the second import entry to the archive, it fails because Weld is unable to find a process with an import qualifier equal to the type of data of the import entry.
Force an error in the processing of an Open Till (i.e. set a breakpoint in the java code before calling the process and break the json objToSend.bdSessions[0].code = undefined).
Verify that a new record has been created in the Errors While Importing POS Data window with type = Open Till. Verify also that there is an import entry with data type = Open Session POS.
Fix the json by adding the code again.
Reprocess the error.
Once the error is processed, verify that a new import entry has been created, with data type = POSS Terminal Sessions
When an import entry is created while reprocessing an Error while Importing, the import entry created should have its typeofdata correctly set based on the import qualifier of the process, and not based on the typeofdata of the error itself.
This issue has been reproduced with the Open Sessions POS model, but there are other import processes which have different entity and import qualifiers.
No tags attached.
Issue History
2019-09-18 12:17aaroncaleroNew Issue
2019-09-18 12:17aaroncaleroAssigned To => Retail
2019-09-18 12:17aaroncaleroTriggers an Emergency Pack => No
2019-09-18 12:17aaroncaleroResolution time => 1569967200
2019-09-19 12:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-09-20 07:51ranjith_qualiantech_comStatusnew => scheduled
2019-09-26 08:08hgbotCheckin
2019-09-26 08:08hgbotNote Added: 0114792
2019-09-26 08:08hgbotStatusscheduled => resolved
2019-09-26 08:08hgbotResolutionopen => fixed
2019-09-26 08:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d38c4f8bae677cce6019ec2604085ad432c336a1 [^]
2019-09-26 17:05jorge-garciaReview Assigned To => jorge-garcia
2019-09-26 17:14jorge-garciaNote Added: 0114815
2019-09-26 17:14jorge-garciaStatusresolved => closed
2019-09-26 17:14jorge-garciaFixed in Version => RR19Q4

Notes
(0114792)
hgbot   
2019-09-26 08:08   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d38c4f8bae677cce6019ec2604085ad432c336a1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Sep 26 11:37:59 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d38c4f8bae677cce6019ec2604085ad432c336a1 [^]

Fixed issue 41833 : ImportEntry should be created with ImportQualifier in SaveAction Handler

* ImportEntry jsoninfo should be created same as like data requested from POS

---
M src/org/openbravo/retail/posterminal/POSDataSynchronizationProcess.java
M src/org/openbravo/retail/posterminal/SaveDataActionHandler.java
---
(0114815)
jorge-garcia   
2019-09-26 17:14   
Code reviewed and tested