Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040458Retail ModulesWeb POSpublic2019-03-26 13:472019-04-17 17:21
ngarcia 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
adrianromero
No
0040458: Payments in foreign currency with more decimals than the currency's precision
Payments in foreign currency with more decimals than the currency's precision
Configure the Format.xml to show 3 decimals in euro (amounts) and price formats

In the backoffice:
   Configure EUR currency with a POS Precision of 3 decimals (you will get a warning here as the ISO code is not matched, but the problem is reproducible having a currency with 3 decimals as the currency of the POS)

In the POS:
   Create a ticket
   Add Avalanche transceiver product
   Pay it with USA Cash (USD) and add manually an amount of 100.005
   Pay the rest with Cash (EUR)
   Done

In the backoffice:
   Check one of the payments has a transaction of 100.005USD in a financial account with USD currency (precision is 2)
   The current balance of the financial account has also 3 decimals and it should not
No tags attached.
related to defect 0038743 closed adrianromero If there is a different currency precision on the foreign currency 
related to design defect 0040487 new Retail Coin amounts should be rounded to POS Precision once they are summed up 
blocks defect 0040720 closed rqueralta Payments in foreign currency with more decimals than currency's precision if grouped in a Payment Method Category 
Issue History
2019-03-26 13:47ngarciaNew Issue
2019-03-26 13:47ngarciaAssigned To => Retail
2019-03-26 13:47ngarciaResolution time => 1555365600
2019-03-26 13:47ngarciaTriggers an Emergency Pack => No
2019-03-26 13:47ngarciaIssue Monitored: networkb
2019-03-26 15:08rqueraltaAssigned ToRetail => rqueralta
2019-03-26 15:09rqueraltaStatusnew => scheduled
2019-03-28 18:26ngarciaRelationship addedrelated to 0038743
2019-03-28 18:36ngarciaRelationship addedrelated to 0040487
2019-04-16 05:35hgbotCheckin
2019-04-16 05:35hgbotNote Added: 0111158
2019-04-16 05:35hgbotStatusscheduled => resolved
2019-04-16 05:35hgbotResolutionopen => fixed
2019-04-16 05:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2b985f8981dd7678ba57e28c1aeabe5e24b2c13f [^]
2019-04-17 00:55hgbotCheckin
2019-04-17 00:55hgbotNote Added: 0111173
2019-04-17 11:24adrianromeroReview Assigned To => adrianromero
2019-04-17 17:19hgbotCheckin
2019-04-17 17:19hgbotNote Added: 0111201
2019-04-17 17:21adrianromeroNote Added: 0111202
2019-04-17 17:21adrianromeroStatusresolved => closed
2019-04-17 17:21adrianromeroFixed in Version => RR19Q3
2019-04-30 12:18ngarciaRelationship addedblocks 0040720

Notes
(0111158)
hgbot   
2019-04-16 05:35   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2b985f8981dd7678ba57e28c1aeabe5e24b2c13f
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Thu Apr 11 14:39:45 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2b985f8981dd7678ba57e28c1aeabe5e24b2c13f [^]

Fixed issue 40458: Payments in foreign currency with more decimals than the
currency's precision

- Rounded amount to the POS Precision of the payment currency

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0111173)
hgbot   
2019-04-17 00:55   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c3e986777ed451770f5712adf314f3fd1920af34
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Apr 16 11:09:48 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c3e986777ed451770f5712adf314f3fd1920af34 [^]

Related to issue 40458: Payments in foreign currency with more decimals than the
currency's precision

- Now an alert is shown instead round amount if POS Precision of the payment
currency is not valid

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0111201)
hgbot   
2019-04-17 17:19   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2d1c127c2b91a5e4ea27bdbaaa1f5b19b369d518
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Apr 17 07:26:06 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d1c127c2b91a5e4ea27bdbaaa1f5b19b369d518 [^]

Related to issue 40458: Payments in foreign currency with more decimals than the
currency's precision

- Checked just the payment presicion

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---
(0111202)
adrianromero   
2019-04-17 17:21   
Verified.