Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033059Retail ModulesWeb POSpublic2016-05-26 13:592019-01-10 14:00
malsasua 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
pi 
 
marvintm
No
0033059: rounding problem with multicurrency
trying to pay one receipt in other currency, in some cases, it is not possible to complete the payment
in backoffice, put the conversion rate with the next values:
. eur to usd: multiply 0.05458 divide: 18.3217
. usd to eur: multiply 18.3217 divide: 0.05458
(see attachment)

in POS:
. new receipt
. add Avalanche product (total receipt 150.5)
. click in total button
. pay with usd cash

it is not possible to finish the process:
remaining to pay: 0
paymnet: USA Cash (8.21 $) 150.42
(see attachment)
No tags attached.
related to defect 0033898 closed guilleaer Rounding issues paying with foreign currency 
png conversionRate.png (101,057) 2016-05-26 14:00
https://issues.openbravo.com/file_download.php?file_id=9441&type=bug
png

png paymentWindow.png (188,993) 2016-05-26 14:00
https://issues.openbravo.com/file_download.php?file_id=9442&type=bug
png
Issue History
2016-05-26 13:59malsasuaNew Issue
2016-05-26 13:59malsasuaAssigned To => Retail
2016-05-26 13:59malsasuaResolution time => 1465509600
2016-05-26 13:59malsasuaTriggers an Emergency Pack => No
2016-05-26 14:00malsasuaFile Added: conversionRate.png
2016-05-26 14:00malsasuaFile Added: paymentWindow.png
2016-05-26 17:26OrekariaStatusnew => acknowledged
2016-05-31 09:59egoitzResolution time1465509600 => 1464818400
2016-05-31 10:05egoitzIssue Monitored: egoitz
2016-06-01 15:12ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-06-01 15:12ranjith_qualiantech_comStatusacknowledged => scheduled
2016-06-06 07:52hgbotCheckin
2016-06-06 07:52hgbotNote Added: 0087010
2016-06-06 07:52hgbotStatusscheduled => resolved
2016-06-06 07:52hgbotResolutionopen => fixed
2016-06-06 07:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1f98f653194c879dfa7117515597ad823ca8d3fa [^]
2016-06-06 07:54hgbotCheckin
2016-06-06 07:54hgbotNote Added: 0087011
2016-06-06 07:55hgbotCheckin
2016-06-06 07:55hgbotNote Added: 0087012
2016-06-06 11:54marvintmReview Assigned To => marvintm
2016-06-06 11:54marvintmStatusresolved => closed
2016-09-06 23:15guilleaerRelationship addedrelated to 0033898
2016-09-08 08:54hgbotCheckin
2016-09-08 08:54hgbotNote Added: 0089830
2019-01-10 14:00hgbotCheckin
2019-01-10 14:00hgbotNote Added: 0108895

Notes
(0087010)
hgbot   
2016-06-06 07:52   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1f98f653194c879dfa7117515597ad823ca8d3fa
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jun 06 11:21:25 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1f98f653194c879dfa7117515597ad823ca8d3fa [^]

Fixes issue 33059 : Adding Scale parameter for currency conversion

- BY default, Receipt total amount is calculated based on price precision.
If conversion rate have 4 decimals, receipt payment amount is not calculated properly,
So precision is added to payment amount calculation based on conversion rate

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0087011)
hgbot   
2016-06-06 07:54   
Repository: tools/automation/pi-mobile
Changeset: 6de67a0107d88a62402dcdcf429c433d9f4e194e
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jun 06 11:21:03 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/6de67a0107d88a62402dcdcf429c433d9f4e194e [^]

Verifies issue 33059 : Added automated test 'I33059_VerifyPaymentBasedonConversionRate'

---
A src-test/org/openbravo/test/mobile/quarantine/pack/RAN/system/I33059_VerifyPaymentBasedonConversionRate.java
---
(0087012)
hgbot   
2016-06-06 07:55   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: af2f96bdcd3524c42db910b524c69187ebba77ab
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jun 06 11:21:20 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/af2f96bdcd3524c42db910b524c69187ebba77ab [^]

Related to issue 33059 : Adding scale argument to Decimal Division operation

---
M web/org.openbravo.mobile.core/source/utils/ob-arithmetic.js
---
(0089830)
hgbot   
2016-09-08 08:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: fbf4631464e1c0d1b5a916ad0267d85735d4c708
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Wed Sep 07 09:55:42 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fbf4631464e1c0d1b5a916ad0267d85735d4c708 [^]

Related to issue 33059, 33898: Backout this commit because fix introduced in 33898 resolves the issue in a better way

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0108895)
hgbot   
2019-01-10 14:00   
Repository: erp/pmods/org.openbravo.retail.sampledata
Changeset: 5fea2a6c56faafb1eff0dc93c4353bdf1c88bc90
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 10 18:30:14 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sampledata/rev/5fea2a6c56faafb1eff0dc93c4353bdf1c88bc90 [^]

Fixed issue 39874 : Added Sample data for Currency Conversion

* Added Sample data for Currency Conversion for the issue 39103
* Added Sample data for Currency Conversion for the issue 33059

---
M referencedata/sampledata/The_White_Valley_Group/C_CONVERSION_RATE.xml
---