Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028044Retail ModulesWeb POSpublic2014-10-31 15:482014-12-11 10:31
jecharri 
mario_castello 
immediatemajoralways
closedfixed 
5
 
RR15Q1RR15Q1 
marvintm
No
0028044: Change is not properly calculated when the conversion rates are really bigs
Change is not properly calculated when the conversion rates are really bigs
-Configure in the ERP EUR -> USD conversion multiple by 4700

-Go to Web POS
-Add Avalanche (150.5€)
-Total in USD = 707350
-Pay 708000
The change should be 650 but verify that change is 658.
No tags attached.
related to defect 0028168 closed marvintm When paying with a different currency the server side is calculating the amount again 
Issue History
2014-10-31 15:48jecharriNew Issue
2014-10-31 15:48jecharriAssigned To => marvintm
2014-10-31 15:48jecharriResolution time => 1418166000
2014-10-31 15:48jecharriTriggers an Emergency Pack => No
2014-11-11 16:44jecharriPriorityurgent => immediate
2014-11-13 17:22adrianromeroRelationship addedrelated to 0028168
2014-11-13 17:24adrianromeroNote Added: 0071640
2014-11-18 20:48mario_castelloAssigned Tomarvintm => mario_castello
2014-11-18 20:48mario_castelloStatusnew => scheduled
2014-11-18 20:48mario_castellofix_in_branch => pi
2014-11-20 05:29hgbotCheckin
2014-11-20 05:29hgbotNote Added: 0071838
2014-11-20 05:29hgbotStatusscheduled => resolved
2014-11-20 05:29hgbotResolutionopen => fixed
2014-11-20 05:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c03a3dab14c3b734e7d514babb216ff84410dd7c [^]
2014-12-11 10:31marvintmReview Assigned To => marvintm
2014-12-11 10:31marvintmStatusresolved => closed
2014-12-11 10:31marvintmFixed in Version => RR15Q1

Notes
(0071640)
adrianromero   
2014-11-13 17:24   
Probably the origin of the error is in the same part of the code of the related issue 28168. I guess that each currency must use its own precision value when rounding.
(0071838)
hgbot   
2014-11-20 05:29   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c03a3dab14c3b734e7d514babb216ff84410dd7c
Author: Salvador Zapata <salvador.zapata <at> gmail.com>
Date: Thu Nov 20 01:27:39 2014 -0300
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c03a3dab14c3b734e7d514babb216ff84410dd7c [^]

Fixed issue 28044: Used obposPrecision column in the Currency ERP window to calculate the change

---
M src/org/openbravo/retail/posterminal/term/Payments.java
M web/org.openbravo.retail.posterminal/js/model/order.js
---