Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040659Retail ModulesWeb POSpublic2019-04-23 14:592019-05-17 15:26
samuel_nicuesa 
rqueralta 
highmajoralways
closedfixed 
5
pi 
RR19Q3 
marvintm
No
0040659: If the change is paid using a foreign currency the variable called change is not updated with the foreign currency.
This variable is located in the receipt and has the change in the local currency .
[POS]

Login using vallblanca

Create a ticket and add one product

Pay more than the product price and return the change in USA Cash

Example

Product Price = 30 €
 
Pay 50 €

Change is 20 € = 26.29$


If you try to print the change in the print template using this variable OB.MobileApp.model.receipt.attributes.change you will see 20 € instead of 26.29$


The same behavior is happening if you use OB.MobileApp.model.attributes.changeReceipt variable.
No tags attached.
png img1.png (12,902) 2019-04-23 14:59
https://issues.openbravo.com/file_download.php?file_id=12880&type=bug
png

png img2.png (22,840) 2019-04-23 14:59
https://issues.openbravo.com/file_download.php?file_id=12881&type=bug
png
Issue History
2019-04-23 14:59samuel_nicuesaNew Issue
2019-04-23 14:59samuel_nicuesaAssigned To => Retail
2019-04-23 14:59samuel_nicuesaFile Added: img1.png
2019-04-23 14:59samuel_nicuesaResolution time => 1557784800
2019-04-23 14:59samuel_nicuesaTriggers an Emergency Pack => No
2019-04-23 14:59samuel_nicuesaFile Added: img2.png
2019-04-23 23:33rqueraltaAssigned ToRetail => rqueralta
2019-04-23 23:33rqueraltaStatusnew => scheduled
2019-04-25 14:44hgbotCheckin
2019-04-25 14:44hgbotNote Added: 0111320
2019-04-25 14:44hgbotStatusscheduled => resolved
2019-04-25 14:44hgbotResolutionopen => fixed
2019-04-25 14:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3c24b74f4160b31ef166b428bde5bd7a0e4a52b4 [^]
2019-05-07 18:54marvintmNote Added: 0111549
2019-05-07 18:54marvintmStatusresolved => new
2019-05-07 18:54marvintmResolutionfixed => open
2019-05-07 23:38marvintmStatusnew => scheduled
2019-05-07 23:39marvintmStatusscheduled => resolved
2019-05-07 23:39marvintmFixed in Version => RR19Q3
2019-05-07 23:39marvintmResolutionopen => fixed
2019-05-07 23:40marvintmReview Assigned To => marvintm
2019-05-07 23:40marvintmNote Added: 0111553
2019-05-07 23:40marvintmStatusresolved => closed
2019-05-17 15:26hgbotCheckin
2019-05-17 15:26hgbotNote Added: 0111775

Notes
(0111320)
hgbot   
2019-04-25 14:44   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3c24b74f4160b31ef166b428bde5bd7a0e4a52b4
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Apr 24 16:18:04 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3c24b74f4160b31ef166b428bde5bd7a0e4a52b4 [^]

Fixed issue 40659: If the change is paid using a foreign currency the variable
called change is not updated with the foreign currency.

- Avoided unnecessary call to calculateChange funtion.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0111549)
marvintm   
2019-05-07 18:54   
Fix is not working properly, the change is still set in the main currency of the store.
(0111553)
marvintm   
2019-05-07 23:40   
Finally the fix is correct, the change in different currency is saved in the "changePayments" variable, and here the value is correct.
(0111775)
hgbot   
2019-05-17 15:26   
Repository: tools/automation/pi-mobile
Changeset: bf120555e05db8d9268fdf948b4589904b104485
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Wed May 08 11:27:52 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/bf120555e05db8d9268fdf948b4589904b104485 [^]

Related to issue 40659: added automated test

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I40659_VerifyChangeValueIfPayingWithForeignCurrency.java
---