Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040526Retail ModulesCopy Retail Storepublic2019-04-04 15:552019-04-24 14:38
lmonreal 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
adrianromero
No
0040526: Copy Retail Store with different currency is triggering a WEBPOS error because it is not correctly applied in Financial Accounts
When launching the copy store and selecting another currency different from the store copied, WEBPOS is triggering this error when opening WEBPOS:

"There was an error loading the POS Terminal. Terminal Payment Method currency is different from Terminal Payment Type Financial account currency. Make sure both Financial account currency and Payment Method currency are same"

The reason why is because the financial accounts of the terminals created have the currency of the original store, not the new one. On the other hand, the payment methods of Channel Touchpoint Type have the new currency so this discrepancy is generating the error.
1. Open copy store

2. Input in the fields:
Store to copy: Vallblanca Store (currency is EUR)
Parent Organization: The white valley franchise
Defaults: applicable ones
Search Key: Test
Name: Test
Currency: USD
Country: United States
POS Terminal Search key: T1
BP Category: Customer

Process will be completed successfuly, log out and log in again to see new Organization.

3. Log in WEBPOS in a new created terminal and error message is triggered "There was an error loading the POS Terminal. Terminal Payment Method currency is different from Terminal Payment Type Financial account currency. Make sure both Financial account currency and Payment Method currency are same"

4. Check in Back office:
-Organization window: New organization has currency as USD (Ok)
-Channel Touchpoint Type window: Payment methods copied are in USD (OK)
-Channel Touchpoint window: Payment types linked with above payment method have the financial accounts created in EUR not in USD. As a result WEBPOS is not loading because it says there is a discrepancy
 

Financial accounts of the payment types should be the same as the payment methods. In this case, they should have the currency selected when launching copy store, even if it is different from the store selected to be copied.
No tags attached.
png CUR_eRROR.png (85,288) 2019-04-04 15:55
https://issues.openbravo.com/file_download.php?file_id=12838&type=bug
png

png Currency_CS.png (44,891) 2019-04-04 15:57
https://issues.openbravo.com/file_download.php?file_id=12839&type=bug
png

png cr3.png (92,350) 2019-04-04 15:58
https://issues.openbravo.com/file_download.php?file_id=12840&type=bug
png

png CR4.png (97,623) 2019-04-04 15:59
https://issues.openbravo.com/file_download.php?file_id=12841&type=bug
png
Issue History
2019-04-04 15:55lmonrealNew Issue
2019-04-04 15:55lmonrealAssigned To => Retail
2019-04-04 15:55lmonrealFile Added: CUR_eRROR.png
2019-04-04 15:55lmonrealResolution time => 1556143200
2019-04-04 15:55lmonrealTriggers an Emergency Pack => No
2019-04-04 15:56lmonrealSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18585#r18585
2019-04-04 15:57lmonrealProposed Solution updated
2019-04-04 15:58lmonrealFile Added: Currency_CS.png
2019-04-04 15:58lmonrealFile Added: cr3.png
2019-04-04 15:59lmonrealFile Added: CR4.png
2019-04-08 04:20rqueraltaAssigned ToRetail => rqueralta
2019-04-08 04:20rqueraltaStatusnew => scheduled
2019-04-09 13:40martinsdanIssue Monitored: martinsdan
2019-04-22 18:16hgbotCheckin
2019-04-22 18:16hgbotNote Added: 0111218
2019-04-22 18:16hgbotStatusscheduled => resolved
2019-04-22 18:16hgbotResolutionopen => fixed
2019-04-22 18:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/5d01b99288589ef5eeb8908960e40b167cd4417f [^]
2019-04-24 14:37adrianromeroReview Assigned To => adrianromero
2019-04-24 14:37adrianromeroNote Added: 0111280
2019-04-24 14:37adrianromeroStatusresolved => closed
2019-04-24 14:38adrianromeroFixed in Version => RR19Q3

Notes
(0111218)
hgbot   
2019-04-22 18:16   
Repository: erp/pmods/org.openbravo.retail.copystore
Changeset: 5d01b99288589ef5eeb8908960e40b167cd4417f
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Apr 19 16:53:20 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.copystore/rev/5d01b99288589ef5eeb8908960e40b167cd4417f [^]

Fixed issue 40526: Copy Retail Store with different currency is triggering a
WEBPOS error because it is not correctly applied in Financial Accounts

- Changed the original Financial Account currency to the payment method currency
of the Channel Touchpoint payment type

---
M src/org/openbravo/retail/copystore/process/CopyStoreProcess.java
---
(0111280)
adrianromero   
2019-04-24 14:37   
Verified.