Openbravo Issue Tracking System - POS2
View Issue Details
0055588POS2POSpublic2024-05-24 16:142024-08-06 08:19
gowthamveeramuthu 
fofarril 
highminoralways
closedfixed 
5
 
 
No
0055588: copy retail store process replacing the org searchkey in the name of DocumentType and Document sequence etc
creating new store via copy retail store process.
after the process successful, we noticed the document type and document sequence names are not correct.

the letter "R" is replaced with new organization search key(1234).
for example:
PS A1234 Invoice
PS 1234FC Order

we noticed:
If original store name is "Rajesh" then originalStorePrefix = "R"
 
if (originalStorePrefix != null && origDocName.contains(originalStorePrefix)) {
  newDocName = origDocName.replace(originalStorePrefix, process.getParam("searchKey"));
}

we have to identify the places where similar logic is applied and provide a fix.
1. change the orginal organization name as single word like "Rajini"
2. use the same org as base for the copy retail store process.
3. complete the process
4. you can see the documentType, DocumentSeq etc places, the name letter "R" is replaced with new org searchKey.

attached the images.
No tags attached.
png Screenshot 2024-05-24 at 7.37.00 PM.png (184,815) 2024-05-24 16:14
https://issues.openbravo.com/file_download.php?file_id=19816&type=bug
png

png Screenshot 2024-05-24 at 6.15.36 PM.png (178,204) 2024-05-24 16:15
https://issues.openbravo.com/file_download.php?file_id=19817&type=bug
png

png Screenshot 2024-05-24 at 6.16.00 PM.png (200,115) 2024-05-24 16:16
https://issues.openbravo.com/file_download.php?file_id=19818&type=bug
png
Issue History
2024-05-24 16:14gowthamveeramuthuNew Issue
2024-05-24 16:14gowthamveeramuthuAssigned To => Retail
2024-05-24 16:14gowthamveeramuthuFile Added: Screenshot 2024-05-24 at 7.37.00 PM.png
2024-05-24 16:14gowthamveeramuthuTriggers an Emergency Pack => No
2024-05-24 16:15gowthamveeramuthuFile Added: Screenshot 2024-05-24 at 6.15.36 PM.png
2024-05-24 16:16gowthamveeramuthuFile Added: Screenshot 2024-05-24 at 6.16.00 PM.png
2024-05-27 11:02PracticsIssue Monitored: Practics
2024-06-10 12:11guillermogilAssigned ToRetail => guillermogil
2024-06-11 14:54fofarrilAssigned Toguillermogil => fofarril
2024-06-11 14:55fofarrilStatusnew => scheduled
2024-06-12 19:46hgbotNote Added: 0165867
2024-06-24 15:17gowthamveeramuthuSeveritymajor => minor
2024-08-06 08:18hgbotResolutionopen => fixed
2024-08-06 08:18hgbotStatusscheduled => closed
2024-08-06 08:18hgbotNote Added: 0167724
2024-08-06 08:18hgbotNote Added: 0167725
2024-08-06 08:19marvintmNote Added: 0167726

Notes
(0165867)
hgbot   
2024-06-12 19:46   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/75 [^]
(0167724)
hgbot   
2024-08-06 08:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore [^]
Changeset: bea71d68755184f8afbe5722bebdbb7a3feb460e
Author: Francisco Javier Deler O'Farril <francisco.ofarril@doceleguas.com>
Date: 06-08-2024 06:18:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/commit/bea71d68755184f8afbe5722bebdbb7a3feb460e [^]

Fixes ISSUE-55588: Copy retail store process replacing the org searchkey in...

---
M src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java
---
(0167725)
hgbot   
2024-08-06 08:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/75 [^]
(0167726)
marvintm   
2024-08-06 08:19   
Tested that the problem was reproducible before the fix with the described steps to reproduce, and that it is no longer reproducible after the fix.