Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034740Retail ModulesOffline Modepublic2016-12-15 09:242016-12-21 18:06
christiangoni 
christiangoni 
normalmajoralways
closedfixed 
5
 
RR17Q1 
marvintm
Production - Confirmed Stable
2016-10-21
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/200143bab315e7aaebaa74233d6ab6bfb4959789 [^]
No
0034740: Error after creating a new Business Partner, new BPLocation and complete a ticket while being offline
Being offline, create a new Business Partner and new BP Location. Complete a ticket.
When connection is restored, the POS is unable to insert the data in the database because the BP has no creation date and POS can not order the insertion.
Log in
Go offline
Create a BP
Create a new Location for this BP
Complete a sale
Restore connection
Oracle raises an error while synchronizing the data.
No tags attached.
depends on backport 0034741RR16Q4.1 closed marvintm Error after creating a new Business Partner, new BPLocation and complete a ticket while being offline 
depends on backport 0034742RR16Q3.5 closed marvintm Error after creating a new Business Partner, new BPLocation and complete a ticket while being offline 
caused by defect 0034254 closed migueldejuana Import entries need to be executed in time order (by terminal) 
Issue History
2016-12-15 09:24christiangoniNew Issue
2016-12-15 09:24christiangoniAssigned To => Retail
2016-12-15 09:24christiangoniTriggers an Emergency Pack => No
2016-12-15 13:17christiangoniRegression date => 2016-10-21
2016-12-15 13:17christiangoniRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/200143bab315e7aaebaa74233d6ab6bfb4959789 [^]
2016-12-15 13:18christiangoniRelationship addedcaused by 0034254
2016-12-15 13:19christiangoniStatusnew => scheduled
2016-12-15 13:27christiangoniRegression level => Production - Confirmed Stable
2016-12-19 09:28hgbotCheckin
2016-12-19 09:28hgbotNote Added: 0092751
2016-12-19 09:28hgbotStatusscheduled => resolved
2016-12-19 09:28hgbotResolutionopen => fixed
2016-12-19 09:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/18f65164219ea2a798da09bc17d46134e7290969 [^]
2016-12-19 09:28hgbotCheckin
2016-12-19 09:28hgbotNote Added: 0092752
2016-12-19 11:25marvintmAssigned ToRetail => christiangoni
2016-12-21 18:00christiangoniNote Edited: 0092751bug_revision_view_page.php?bugnote_id=0092751#r14102
2016-12-21 18:04hgbotCheckin
2016-12-21 18:04hgbotNote Added: 0092916
2016-12-21 18:06marvintmNote Added: 0092917
2016-12-21 18:06marvintmReview Assigned To => marvintm
2016-12-21 18:06marvintmStatusresolved => closed
2016-12-21 18:06marvintmFixed in Version => RR17Q1

Notes
(0092751)
hgbot   
2016-12-19 09:28   
(edited on: 2016-12-21 18:00)
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 18f65164219ea2a798da09bc17d46134e7290969
Author: Christian Goni <christian.goni <at> openbravo.com>
Date: Thu Dec 15 13:02:59 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/18f65164219ea2a798da09bc17d46134e7290969 [^]

fixed issue 34740: Error after creating a new Business Partner, new BPLocation and complete a ticket while being offline


Due to issue 34254, countEntries was moved to the correct class to allow the terminal execute the import entries in time order and so, CustomerAddrImportEntryProcessor should not implement it.

---
M src/org/openbravo/retail/posterminal/importprocess/CustomerAddrImportEntryProcessor.java
M src/org/openbravo/retail/posterminal/importprocess/CustomerImportEntryProcessor.java
---

(0092752)
hgbot   
2016-12-19 09:28   
Repository: tools/automation/pi-mobile
Changeset: d75a84baac1c2fa7c917313ef509ca384a7abfb4
Author: Christian Goni <christian.goni <at> openbravo.com>
Date: Fri Dec 16 11:23:35 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/d75a84baac1c2fa7c917313ef509ca384a7abfb4 [^]

verify issue 34740:Error after creating a new Business Partner, new BPLocation and complete a ticket while being offline

---
M src-test/org/openbravo/test/mobile/retail/pack/database/WebPOSDatabaseHelper.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/WebPOSOfflineCustomTerminalHelper.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/CreateBPandBPLocation_saleOffline.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/CreateBPandBPLocation_saleOnline.java
---
(0092916)
hgbot   
2016-12-21 18:04   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e2d9f6154d2b7f257a8988790ab3a3fc3f61b1b3
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Dec 21 18:04:00 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e2d9f6154d2b7f257a8988790ab3a3fc3f61b1b3 [^]

Related to issue 34740. Applied correct formatting.

---
M src/org/openbravo/retail/posterminal/importprocess/CustomerAddrImportEntryProcessor.java
M src/org/openbravo/retail/posterminal/importprocess/CustomerImportEntryProcessor.java
---
(0092917)
marvintm   
2016-12-21 18:06   
Commit message is not clear enough. Basically, the main idea is to make the Customer and Customer Address import processors use the SerializedByTermImportEntryProcessorRunnable, with the main purpose of ensuring that all messages coming from the same terminal are processed in the order in which they were generated.

This, in turn, ensures that when several messages are generated while the terminal is offline, they are processed correctly once the terminal comes back to online.