Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039091Retail ModulesCopy Retail Storepublic2018-08-03 14:472018-08-31 13:39
joniturralde93 
rqueralta 
urgentmajoralways
closedfixed 
5
pi 
RR18Q4 
marvintm
No
0039091: 'Copy Retail Store' copied names for some windows can be problematic
When a Store is copied, Management Events, Document Sequences and POS Terminal Type records are copied by adding the new Store search key to their names.
This happens for other windows (please check which ones).

This can be confusing if the original names had the old store name or prefix included.

E.g: POS Terminal Type 'Store1POSType' would be copied to the new store as 'Store1POSType - Store2'.
1. Fill and complete Copy Retail Store (make a copy of Vall Blanca Store in live builds) with new search key 'TestCopy'.
2. Go to Document Sequence window.
3. New copied records are named 'VBS AR Invoice - TestCopy' etc even though the Store is not 'VBS' anymore.
4. It happens in other windows, too. Please check that this is fixed for every window that can have this problem.
Check if previous names contain the original store name or prefix and replace it with the new one if necessary.

If the original name doesn't contain the store name, just add the new search key to the previous name like it is done now.
No tags attached.
related to defect 0041270 closed rqueralta Copy Store Process are copying the same POS Terminal Type Name as the Original Store copied. 
causes defect 0040328 closed Retail Error while executing the copy store process using a XLS file in 19Q1 
Issue History
2018-08-03 14:47joniturralde93New Issue
2018-08-03 14:47joniturralde93Assigned To => Retail
2018-08-03 14:47joniturralde93Resolution time => 1535061600
2018-08-03 14:47joniturralde93Triggers an Emergency Pack => No
2018-08-03 18:14rqueraltaAssigned ToRetail => rqueralta
2018-08-03 18:14rqueraltaStatusnew => scheduled
2018-08-06 08:17joniturralde93Note Added: 0106162
2018-08-06 08:17joniturralde93Description Updatedbug_revision_view_page.php?rev_id=17493#r17493
2018-08-06 08:17joniturralde93Steps to Reproduce Updatedbug_revision_view_page.php?rev_id=17495#r17495
2018-08-06 08:17joniturralde93Proposed Solution updated
2018-08-13 16:04hgbotCheckin
2018-08-13 16:04hgbotNote Added: 0106326
2018-08-13 16:04hgbotStatusscheduled => resolved
2018-08-13 16:04hgbotResolutionopen => fixed
2018-08-13 16:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/a3bc37e5e273363040b5acc53233642baaec2cf3 [^]
2018-08-23 11:10marvintmNote Added: 0106461
2018-08-23 11:10marvintmStatusresolved => new
2018-08-23 11:10marvintmResolutionfixed => open
2018-08-24 17:33hgbotCheckin
2018-08-24 17:33hgbotNote Added: 0106479
2018-08-28 17:27hgbotCheckin
2018-08-28 17:27hgbotNote Added: 0106509
2018-08-28 17:28rqueraltaStatusnew => scheduled
2018-08-28 17:29rqueraltaStatusscheduled => resolved
2018-08-28 17:29rqueraltaResolutionopen => fixed
2018-08-31 13:39marvintmReview Assigned To => marvintm
2018-08-31 13:39marvintmStatusresolved => closed
2018-08-31 13:39marvintmFixed in Version => RR18Q4
2019-03-07 09:40dmitry_mezentsevRelationship addedcauses 0040328
2019-07-12 10:48samuel_nicuesaRelationship addedrelated to 0041270

Notes
(0106162)
joniturralde93   
2018-08-06 08:17   
Updated for every copied window.
(0106326)
hgbot   
2018-08-13 16:04   
Repository: erp/pmods/org.openbravo.retail.copystore
Changeset: a3bc37e5e273363040b5acc53233642baaec2cf3
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Aug 03 17:01:10 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/a3bc37e5e273363040b5acc53233642baaec2cf3 [^]

Fixed issue 39091: 'Copy Retail Store' copied names for some windows can be
problematic

---
M src/org/openbravo/retail/copystore/process/CopyStoreProcess.java
M src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java
---
(0106461)
marvintm   
2018-08-23 11:10   
Two small improvements could be done to the fix:
- Currently the name of the original store is modified and the blank spaces are removed. However, this means that if the name of the store is used literally, including its spaces, in the names of the objects, then it is not correctly removed. Either we should use a regular expression to detect both cases, or if too complex, then the blank spaces should not be removed from the original name.

- Currently the transformation of the name only occurs for the search key, or if it doesn't exist, for the name of the store, or if it doesn't exist, for the terminal name, ... It would be better if it happened for every one of them, so that if the name of the store, and the search key, appear both in the name for some reason (like it happens in some records in Valblanca store in our sampledata for example), then both are replaced.
(0106479)
hgbot   
2018-08-24 17:33   
Repository: erp/pmods/org.openbravo.retail.copystore
Changeset: fc6fa335122699c2cdc051a02cb70dd850f9bffc
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Aug 24 11:33:11 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/fc6fa335122699c2cdc051a02cb70dd850f9bffc [^]

Related to issue 39091: 'Copy Retail Store' copied names for some windows can be
problematic

- Removed "else ifs" sentences by "ifs" at the same level

---
M src/org/openbravo/retail/copystore/process/CopyStoreProcess.java
---
(0106509)
hgbot   
2018-08-28 17:27   
Repository: erp/pmods/org.openbravo.retail.copystore
Changeset: 81bf973b98d47841a02daf0ba7cde3934281a1ca
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Aug 27 00:11:21 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/81bf973b98d47841a02daf0ba7cde3934281a1ca [^]

Related to issue 39091: 'Copy Retail Store' copied names for some windows can be
problematic

- Changed financial account name

---
M src/org/openbravo/retail/copystore/process/CopyStoreProcess.java
M src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java
---