Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051040Retail ModulesCopy Retail Storepublic2022-11-30 12:152022-12-06 07:54
XABIER_AGUADO 
ranjith_qualiantech_com 
highmajorhave not tried
closedfixed 
5
 
 
No
0051040: CRS credit note sequence prefix and gift card sequence prefix are copied instead of "updated"
When doing a CRS, the credit note sequence prefix and gift card sequence prefix are copied literally instead of being updated with the new search key values.
Do a CRS of a store with credit note sequence prefix and gift card sequence prefixes.
Check the new prefixes of the new store
They are exactly the same, they should have been updated

I.E:
Original Gift Card Seq: 96100001
Original Credit Note Seq: 91100001
Original Search Key: 100001

Copied Gift Card Seq: 96100001
Copied Credit Note Seq: 91100001
Copied Search Key: 109901

Expected result:
Copied Gift Card Seq: 96109901
Copied Credit Note Seq: 91109901
Update the sequences using the new storeĀ“s Search Key
FASH
related to defect 0050581 closed radhakrishnan Copy Retail Store does NOT copy Document Type 00XX Gift Card 
related to feature request 0051416 closed Retail Copy Store / Copy Terminal replacement of search keys for Gift Cards and Credit Notes is KO 
png sequnces.png (243,726) 2022-11-30 12:19
https://issues.openbravo.com/file_download.php?file_id=17901&type=bug
png
Issue History
2022-11-30 12:15XABIER_AGUADONew Issue
2022-11-30 12:15XABIER_AGUADOAssigned To => Retail
2022-11-30 12:15XABIER_AGUADOFile Added: sequnces.png
2022-11-30 12:15XABIER_AGUADOTriggers an Emergency Pack => No
2022-11-30 12:15XABIER_AGUADOTag Attached: FASH
2022-11-30 12:18XABIER_AGUADOFile Deleted: sequnces.png
2022-11-30 12:19XABIER_AGUADOFile Added: sequnces.png
2022-11-30 12:22rafarodaCategoryContact Info for Product => Copy Retail Store
2022-11-30 12:22rafarodaRelationship addedrelated to 0050581
2022-11-30 13:00ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-11-30 13:01ranjith_qualiantech_comStatusnew => scheduled
2022-12-01 11:14hgbotNote Added: 0144299
2022-12-06 07:54hgbotResolutionopen => fixed
2022-12-06 07:54hgbotStatusscheduled => closed
2022-12-06 07:54hgbotNote Added: 0144448
2022-12-06 07:54hgbotNote Added: 0144449
2023-02-14 11:46ranjith_qualiantech_comRelationship addedrelated to 0051416

Notes
(0144299)
hgbot   
2022-12-01 11:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.giftcards/-/merge_requests/5 [^]
(0144448)
hgbot   
2022-12-06 07:54   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.giftcards [^]
Changeset: 0ddeac2b81d8ca73d54741c821fe26e726689f12
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 01-12-2022 15:43:03
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.giftcards/-/commit/0ddeac2b81d8ca73d54741c821fe26e726689f12 [^]

Fixed ISSUE-51040: CreditNote & Giftcard prefix should not be copied
* When copying store/terminal, CreditNote & Giftcard prefix should be
  be new value, and lastSequenceNo should be 0

---
M src/org/openbravo/retail/copystore/giftcards/DefaultGiftcardsPropertiesHandler.java
---
(0144449)
hgbot   
2022-12-06 07:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore.giftcards/-/merge_requests/5 [^]