Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038872Retail ModulesCash Managementpublic2018-07-02 17:382018-08-03 09:07
lmonreal 
javierRodriguez 
immediatemajoralways
closedfixed 
5
 
RR18Q4 
marvintm
No
0038872: When doing a deposit in another currency, the FA shows the amount converted in the local currency but with ISO code of initial
When doing a cash management event in a foreign currency the financial account shows the amount converted in the local currency but with the currency ISO Code of the foreign one.

For example, if I add a deposit of 1000 dollars, the financial account of the dollars will show 760.80 USD. This is the conversion in Euros but it shows USD.
1. Have an organization set up with EUR as local currency but with the option of paying and doing cash management events with USD (financial accounts associated)

2. Do a cash management of a deposit of 1000 USD

3. In back office check the financial account for IN USD

4. Value will be 760.80 USD that is the conversion of 1000 USD into EUR. However, this is not right, it should be 1000 USD or 760.80 EUR defining the conversion for USD. Also the exchange rate subtab of the financial account is empty.
See ProposedSolution attached image.

- Inside transaction tab we need to define:
  * Currency: USD; Deposit/Withdrawal Amount: 1000
  * Foreign Currency: EUR; Foreign Amount: 760.82
- Inside Exchange rate we need to add a line:
  * Currency: EUR; To Currency: USD; Foreign Amount: 760.82

You can check OrderLoader code to see how we do this. When pay an order with 1000 USD, a transactions is created with the same expected values for this case.
No tags attached.
png FAUSD.png (80,393) 2018-07-02 17:38
https://issues.openbravo.com/file_download.php?file_id=11923&type=bug
png

png USDPOS.png (129,649) 2018-07-02 17:39
https://issues.openbravo.com/file_download.php?file_id=11924&type=bug
png

png ProposedSolution.png (108,049) 2018-07-03 10:34
https://issues.openbravo.com/file_download.php?file_id=11928&type=bug
png
Issue History
2018-07-02 17:38lmonrealNew Issue
2018-07-02 17:38lmonrealAssigned To => Retail
2018-07-02 17:38lmonrealFile Added: FAUSD.png
2018-07-02 17:38lmonrealResolution time => 1532296800
2018-07-02 17:38lmonrealTriggers an Emergency Pack => No
2018-07-02 17:39lmonrealFile Added: USDPOS.png
2018-07-03 10:20lmonrealPriorityhigh => immediate
2018-07-03 10:34migueldejuanaFile Added: ProposedSolution.png
2018-07-03 10:41migueldejuanaProposed Solution updated
2018-07-03 21:21rqueraltaAssigned ToRetail => rqueralta
2018-07-03 21:22rqueraltaStatusnew => scheduled
2018-07-17 17:04hgbotCheckin
2018-07-17 17:04hgbotNote Added: 0105773
2018-07-17 17:04hgbotStatusscheduled => resolved
2018-07-17 17:04hgbotResolutionopen => fixed
2018-07-17 17:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/86e605f560b137423d1ca86da1bbc98f024c189a [^]
2018-07-19 13:26lmonrealStatusresolved => new
2018-07-19 13:28lmonrealNote Added: 0105800
2018-07-23 17:56javierRodriguezAssigned Torqueralta => javierRodriguez
2018-07-30 13:29hgbotCheckin
2018-07-30 13:29hgbotNote Added: 0106016
2018-07-30 13:30hgbotCheckin
2018-07-30 13:30hgbotNote Added: 0106017
2018-07-30 13:30hgbotStatusnew => resolved
2018-07-30 13:30hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/86e605f560b137423d1ca86da1bbc98f024c189a [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/19989248855512910d18c97e0b83c75f130e76ae [^]
2018-07-31 15:06hgbotCheckin
2018-07-31 15:06hgbotNote Added: 0106056
2018-08-03 09:07marvintmReview Assigned To => marvintm
2018-08-03 09:07marvintmStatusresolved => closed
2018-08-03 09:07marvintmFixed in Version => RR18Q4

Notes
(0105773)
hgbot   
2018-07-17 17:04   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 86e605f560b137423d1ca86da1bbc98f024c189a
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Thu Jul 05 16:36:50 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/86e605f560b137423d1ca86da1bbc98f024c189a [^]

Fixed issue 38872: When doing a deposit in another currency, the FA shows the
amount converted in the local currency but with ISO code of initial

- In cash management event with a foreign currency was created
a new line into Exchange rates tab and was filled foreing currency
and foreing amount in trasaction tab of financial account window.

---
M src/org/openbravo/retail/posterminal/ProcessCashMgmt.java
---
(0105800)
lmonreal   
2018-07-19 13:28   
Tested it and still it is not showing, I have reopen it.
(0106016)
hgbot   
2018-07-30 13:29   
Repository: tools/automation/pi-mobile
Changeset: 07d3d1308c5f1c5da0c5e39d30471304af91488b
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Mon Jul 30 12:51:08 2018 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/07d3d1308c5f1c5da0c5e39d30471304af91488b [^]

Related to issue 38872: When doing a deposit in another currency, the FA shows the amount converted in the local currency but with ISO code of initial

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/terminals/WebPOSTerminalHelper.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashmanagement/CashManagementUSDDeposit.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/ChangeBPOffline.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/CreateLayawayOffline.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/I34503_JSErrorShownInCashManagementDetails.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineAllowedFlows.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineAllowedFlowsWait.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCashmanagement.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCashmanagementWait.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOfflineCashmanagementWaitNoForce.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOnlineAllowedFlows.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOnlineAllowedFlowsWait.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOnlineCashmanagement.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/LoginOnlineCashmanagementWait.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/offline/WebPOSOfflineCustomTerminalHelper.java
---
(0106017)
hgbot   
2018-07-30 13:30   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 19989248855512910d18c97e0b83c75f130e76ae
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Mon Jul 30 12:56:34 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/19989248855512910d18c97e0b83c75f130e76ae [^]

Fixed issue 38872: When doing a deposit in another currency, the FA shows

---
M src/org/openbravo/retail/posterminal/ProcessCashMgmt.java
---
(0106056)
hgbot   
2018-07-31 15:06   
Repository: tools/automation/pi-mobile
Changeset: c1af4e7e6a77604c45957910317b9a16c273f526
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Wed Jul 11 14:56:13 2018 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/c1af4e7e6a77604c45957910317b9a16c273f526 [^]

Related to issue 38872: Added automated test

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashmanagement/I38872_VerifyCurrencyConversionAfterCashManagement.java
---