Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041348Retail ModulesWeb POSpublic2019-07-15 07:242019-12-07 08:15
guillermogil 
Retail 
urgentmajoralways
newopen 
5
 
 
marvintm
No
0041348: PostmportEntryProcessorHook is not executed in Sync Mode
PostmportEntryProcessorHook is not executed in Sync Mode

If you are using Sync Mode Import Entry hooks are not called.
It happened the same with Save Again button .
- Create Sync Mode preference with value Y
- Create a Dummy PostmportEntryProcessorHook just to put a breakpoint on it
- Login on WebPOS
- Complete a ticket

You will see that it does not stop on the hook
No tags attached.
Issue History
2019-07-15 07:24guillermogilNew Issue
2019-07-15 07:24guillermogilAssigned To => Retail
2019-07-15 07:24guillermogilResolution time => 1564437600
2019-07-15 07:24guillermogilTriggers an Emergency Pack => No
2019-07-30 20:34rqueraltaAssigned ToRetail => rqueralta
2019-07-30 20:34rqueraltaStatusnew => scheduled
2019-08-05 09:44guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19256#r19256
2019-08-08 15:02ranjith_qualiantech_comAssigned Torqueralta => ranjith_qualiantech_com
2019-08-13 04:24hgbotCheckin
2019-08-13 04:24hgbotNote Added: 0113954
2019-08-13 08:20hgbotCheckin
2019-08-13 08:20hgbotNote Added: 0113956
2019-08-13 08:20hgbotStatusscheduled => resolved
2019-08-13 08:20hgbotResolutionopen => fixed
2019-08-13 08:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cc07e8529eae9f154a7bb06de90f48e0bfaf5758 [^]
2019-08-14 09:07hgbotCheckin
2019-08-14 09:07hgbotNote Added: 0114003
2019-08-14 09:09marvintmReview Assigned To => marvintm
2019-08-14 09:09marvintmStatusresolved => closed
2019-08-14 09:09marvintmFixed in Version => RR19Q4
2019-08-14 15:36hgbotCheckin
2019-08-14 15:36hgbotNote Added: 0114020
2019-08-14 15:37ranjith_qualiantech_comNote Added: 0114021
2019-08-14 15:37ranjith_qualiantech_comStatusclosed => new
2019-08-14 15:37ranjith_qualiantech_comResolutionfixed => open
2019-08-14 15:37ranjith_qualiantech_comFixed in VersionRR19Q4 =>
2019-08-19 15:36ranjith_qualiantech_comStatusnew => scheduled
2019-08-20 11:45hgbotCheckin
2019-08-20 11:45hgbotNote Added: 0114098
2019-08-20 11:45hgbotStatusscheduled => resolved
2019-08-20 11:45hgbotResolutionopen => fixed
2019-08-20 11:45hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cc07e8529eae9f154a7bb06de90f48e0bfaf5758 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2a5860a7698ef1128de8b4f6c5967c7e190e85f7 [^]
2019-08-22 18:31marvintmStatusresolved => closed
2019-08-22 18:31marvintmFixed in Version => RR19Q4
2019-09-03 07:36hgbotCheckin
2019-09-03 07:36hgbotNote Added: 0114368
2019-09-10 16:05aaroncaleroNote Added: 0114499
2019-09-10 16:05aaroncaleroStatusclosed => new
2019-09-10 16:05aaroncaleroResolutionfixed => open
2019-09-10 16:05aaroncaleroFixed in VersionRR19Q4 =>
2019-09-12 09:21ranjith_qualiantech_comStatusnew => scheduled
2019-09-18 08:09hgbotCheckin
2019-09-18 08:09hgbotNote Added: 0114610
2019-09-18 08:09hgbotStatusscheduled => resolved
2019-09-18 08:09hgbotResolutionopen => fixed
2019-09-18 08:09hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2a5860a7698ef1128de8b4f6c5967c7e190e85f7 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6b1fe93a1bbc62c2009cc6b09ae90fba2c62e182 [^]
2019-09-20 08:49marvintmStatusresolved => closed
2019-09-20 08:49marvintmFixed in Version => RR19Q4
2019-09-23 15:58ranjith_qualiantech_comNote Added: 0114731
2019-09-23 15:58ranjith_qualiantech_comStatusclosed => new
2019-09-23 15:58ranjith_qualiantech_comResolutionfixed => open
2019-09-23 15:58ranjith_qualiantech_comFixed in VersionRR19Q4 =>
2019-09-23 16:14hgbotCheckin
2019-09-23 16:14hgbotNote Added: 0114732
2019-09-25 15:15marvintmResolution time1564437600 =>
2019-09-25 15:15marvintmTypedefect => design defect
2019-09-30 11:12hgbotCheckin
2019-09-30 11:12hgbotNote Added: 0114855
2019-12-07 08:15ranjith_qualiantech_comAssigned Toranjith_qualiantech_com => Retail

Notes
(0113954)
hgbot   
2019-08-13 04:24   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: a7431e3d814dadd3e796bd0fa23279f683aa48df
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Aug 13 07:54:11 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/a7431e3d814dadd3e796bd0fa23279f683aa48df [^]

Related to issue 41348 : Added getImportEntryDataType method to CloseStore class

* WebPOSCloseStore class must override the getImportEntryDataType method, because
  ImportEntry has been created when closing WebPOS

---
M src/org/openbravo/retail/sessions/WebPOSCloseStore.java
---
(0113956)
hgbot   
2019-08-13 08:20   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: cc07e8529eae9f154a7bb06de90f48e0bfaf5758
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Aug 13 11:50:27 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/cc07e8529eae9f154a7bb06de90f48e0bfaf5758 [^]

Fixed issue 41348 : Added ImportEntryPostProcessor hook in Synchronize Mode

---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114003)
hgbot   
2019-08-14 09:07   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 0f05c1fefd79d464e32aeba67c0683f53f0fe675
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Aug 14 12:36:46 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0f05c1fefd79d464e32aeba67c0683f53f0fe675 [^]

Related to issue 41348 : Added ImportEntryProcessorSelector for ImportEntryPostProcessor Hook

* In Sync Mode, ImportEntryPostProcessor implementation hook should be called based on entity qualifier

---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114020)
hgbot   
2019-08-14 15:36   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 58cce5b7c6f6ef87c6ed42e2a49c27c100ac5852
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Aug 14 19:06:17 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/58cce5b7c6f6ef87c6ed42e2a49c27c100ac5852 [^]

Related to issue 41348 : Backed out changeset: 0f05c1fefd79

---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114021)
ranjith_qualiantech_com   
2019-08-14 15:37   
Tests were failing in suite
(0114098)
hgbot   
2019-08-20 11:45   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2a5860a7698ef1128de8b4f6c5967c7e190e85f7
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Aug 20 15:15:26 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2a5860a7698ef1128de8b4f6c5967c7e190e85f7 [^]

Fixed issue 41348 : Added ImportEntryProcessorSelector for ImportEntryPostProcessor Hook

* In Sync Mode, ImportEntryPostProcessor implementation hook should be called based on entity qualifier
  If ImportEntry typeOfData is null, then all implementations of ImportEntryPostProcessor will be called

---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114368)
hgbot   
2019-09-03 07:36   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8734f3fe6fa77f550118ad0cce23310e8b257846
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Sep 03 11:06:19 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8734f3fe6fa77f550118ad0cce23310e8b257846 [^]

Related to issue 41348 : Added AdminMode for ImportEntryPostProcessor hook implementations

---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114499)
aaroncalero   
2019-09-10 16:05   
After talking to Antonio, there are several things that should be changed/fixed:
1. The 'dummy' import entry needs to be sent to the hook in 'Processed' status (currently it is being sent as Initial)
2. The code to call the PostmportEntryProcessorHooks should be moved to the SynchronizedServerProcessCaller, the class that is in charge of executing the required DataSyncProcesses in Synchronized Mode.
3. The hooks need to be called 'by model' and not only once on each call to SynchronizedServerProcessCaller. For example, if there are two orders and two invoices in a single call to SynchronizedServerProcessCaller, then there should be a call to the hook for the orders and another call for the invoices.
4. Make sure that after relocating the hook calls, the hooks are still called based on their entity qualifier
5. The json added to the dummy import entry should be json passed as parameter to the corresponding processor
(0114610)
hgbot   
2019-09-18 08:09   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6b1fe93a1bbc62c2009cc6b09ae90fba2c62e182
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Sep 18 11:39:38 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6b1fe93a1bbc62c2009cc6b09ae90fba2c62e182 [^]

Fixed issue 41348 : Added ImportEntryPostProcessor hook in DataSynchronizationProcess

* ImportEntryPostProcessor hook should be called for each object in the model.
* ImportEntry for hook should be created with Processed status
  and typeofdata value with ImportQualifier

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114731)
ranjith_qualiantech_com   
2019-09-23 15:58   
Fix is not complete
(0114732)
hgbot   
2019-09-23 16:14   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: f92fc1605a8a296552c5be81d81aaad3dc4488d0
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Sep 23 19:43:52 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f92fc1605a8a296552c5be81d81aaad3dc4488d0 [^]

Related to issue 41348 : Backed out all changeset due to design defect

Backed out changeset: 6b1fe93a1bbc

Backed out changeset: 8734f3fe6fa7

Backed out changeset: 2a5860a7698e

Backed out changeset: cc07e8529eae

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0114855)
hgbot   
2019-09-30 11:12   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: ec8e42b3c8766081f5e60edbe89beb7f9308ae01
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Sep 30 14:42:19 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/ec8e42b3c8766081f5e60edbe89beb7f9308ae01 [^]

Related to issue 41348 : Backed out changeset: a7431e3d814d

---
M src/org/openbravo/retail/sessions/WebPOSCloseStore.java
---