Notes |
|
(0098306)
|
mtaal
|
2017-08-01 12:39
|
|
|
|
(0098314)
|
hgbot
|
2017-08-01 17:11
|
|
Repository: erp/pmods/org.openbravo.retail.giftcards.synchronization
Changeset: 1248af7cf74a54f2c6bae35a2580a047b1b8fd21
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Aug 01 17:11:40 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards.synchronization/rev/1248af7cf74a54f2c6bae35a2580a047b1b8fd21 [^]
Fixes issue 36568: Gift card synchronization should only replicate local gift cards
Changes:
- use the store data channel
- implemented a new GiftCardRouter
- use the gift card router it in case of replicating central to store for gift cards and gift card products
- updated the dataset queries for gift card to use the global versus local definition
---
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src-db/database/sourcedata/STRSYNC_SYNCHRONIZEDTABLE.xml
---
|
|
|
(0098320)
|
hgbot
|
2017-08-01 19:14
|
|
|
|
|
I reviewed the issue, and I think there is still one scenario that is not properly handled. If the central server is offline, the global giftcard will be created on the store. Once it is online again, the global giftcard will be synchronized from the store server to the central server. So far so good.
The problem is that from then on, the giftcard will not get updates (the central server does not send to the store updates for global giftcards), and will be kept in the store potentially outdated. If then someone looks for this giftcard when the store server is offline, it will received the potentially updated version.
There are two ways to approach this problem:
- To add a field to the giftcard instance table, to store the server where the giftcard was created. Then in the central server the router can take this into account, and send the updates done to the global giftcard to the store where it was created.
- Change the search filter so that only local giftcards can be found in the store server. That way, the global giftcard will not be retrievable by the POS in the store server, and the request will be redirected to the central server. I prefere this option, because it goes in line with the concept of the central server being the owner of the global giftcards. |
|
|
(0098577)
|
hgbot
|
2017-08-22 13:48
|
|
Repository: erp/pmods/org.openbravo.retail.giftcards.synchronization
Changeset: 41df8f2375c17cc2b2a9951ad251cd6076e5d72e
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Aug 22 13:47:34 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards.synchronization/rev/41df8f2375c17cc2b2a9951ad251cd6076e5d72e [^]
Fixes issue 36568: Gift card synchronization should only replicate local gift cards
Sync also global giftcards which are from a local order. Updated also the dataset to export the needed gift card information.
---
M src-db/database/sourcedata/AD_DATASET_TABLE.xml
M src/org/openbravo/retail/giftcards/synchronization/GiftCardRouter.java
---
|
|
|
(0098635)
|
hgbot
|
2017-08-24 14:12
|
|
Repository: erp/pmods/org.openbravo.retail.giftcards.synchronization
Changeset: c81dcbba1ef2a67280f52b1f84f4e35375748ae0
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Aug 24 14:11:48 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards.synchronization/rev/c81dcbba1ef2a67280f52b1f84f4e35375748ae0 [^]
Related with issue 36568: Refactors the GiftCardRouter
Three small changes have been done:
- Diamond operator is used to create instance of HashSet
- Uses equalsIgnoreCase instead of equals(string.toLowerCase(...)))
- Breaks up isGlobalGiftCard in two methods to improve readability
---
M src/org/openbravo/retail/giftcards/synchronization/GiftCardRouter.java
---
|
|
|
(0098664)
|
hgbot
|
2017-08-28 00:46
|
|
|
|
(0098712)
|
hgbot
|
2017-08-29 23:08
|
|
Repository: erp/pmods/org.openbravo.retail.giftcards.synchronization
Changeset: db6c7063dae4e4f265be5debb7cf769cc0d421e7
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Aug 29 23:08:19 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards.synchronization/rev/db6c7063dae4e4f265be5debb7cf769cc0d421e7 [^]
Related with issue 36568: export global gift card to origin store
STRSYNC_SYNCHRONIZEDTABLE: Sync gift card transactions bidirectional
GiftCardCurrentAmountWriterFilterAdapter: recompute product quantity and amounts in the correct way based on delete/update/insert of gift card transaction
GiftCardRouter: route also on the basis of the organisation of the payment
---
M src-db/database/sourcedata/STRSYNC_SYNCHRONIZEDTABLE.xml
M src/org/openbravo/retail/giftcards/synchronization/GiftCardCurrentAmountWriterFilterAdapter.java
M src/org/openbravo/retail/giftcards/synchronization/GiftCardRouter.java
---
|
|
|
(0098731)
|
hgbot
|
2017-08-30 12:25
|
|
Repository: erp/pmods/org.openbravo.retail.giftcards.synchronization
Changeset: dc5517aabb9f0d66b8fa77b88301468615172bd1
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Aug 30 12:24:36 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards.synchronization/rev/dc5517aabb9f0d66b8fa77b88301468615172bd1 [^]
Related with issue 36568:GiftCardCurrentAmountWriterFilterAdapter clean up
The following changes have been done:
- Diamond operator is used
- Uses constant strings for "m_product_id" and "V"
- Adds comment to initialize to specify why it is empty
- Extract methods to handle the code for inserts, updates and deletions separately
---
M src/org/openbravo/retail/giftcards/synchronization/GiftCardCurrentAmountWriterFilterAdapter.java
---
|
|
|
|
|
|
(0098745)
|
hgbot
|
2017-08-31 10:50
|
|
|
|
|
Code reviewed and verified |
|