Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040720Retail ModulesWeb POSpublic2019-04-30 12:182019-05-08 13:25
ngarcia 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
marvintm
No
0040720: Payments in foreign currency with more decimals than currency's precision if grouped in a Payment Method Category
Payments in foreign currency with more decimals than currency's precision if grouped in a Payment Method Category.

The problem is that when checking the precision of the payment (fix for 40458 issue)

if (decimalAmount.scale() > payment.obposPosprecision) {

payment contains the information related with the first payment method included in the category
In the backoffice:
   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)

   Create a new Payment Method Category
   In Channel - Touchpoint Type window, Payment Method tab, set the previously created category to 'Voucher' (EUR) and USA Cash (USD)
   In Channel - Touchpoint set the following Line No. to the Payment Types:
      10) Cash
      20) Voucher
      30) USA Cash
      40) Card

In the POS:
   Create a ticket
   Add Avalanche transceiver product
   Click on the total
   Open the new Payment method category
   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.
depends on defect 0040458 closed rqueralta Payments in foreign currency with more decimals than the currency's precision 
related to defect 0040928 closed rqueralta The precision of the financial account currency is not used in transactions when paying a ticket with a different currency 
Issue History
2019-04-30 12:18ngarciaNew Issue
2019-04-30 12:18ngarciaAssigned To => Retail
2019-04-30 12:18ngarciaResolution time => 1558389600
2019-04-30 12:18ngarciaTriggers an Emergency Pack => No
2019-04-30 12:18ngarciaRelationship addeddepends on 0040458
2019-04-30 12:18ngarciaIssue Monitored: networkb
2019-04-30 15:10rqueraltaAssigned ToRetail => rqueralta
2019-04-30 15:10rqueraltaStatusnew => scheduled
2019-05-02 16:54hgbotCheckin
2019-05-02 16:54hgbotNote Added: 0111442
2019-05-02 16:54hgbotStatusscheduled => resolved
2019-05-02 16:54hgbotResolutionopen => fixed
2019-05-02 16:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2a6260cd92f08c216be3a8ac73090270597aab61 [^]
2019-05-08 13:25marvintmReview Assigned To => marvintm
2019-05-08 13:25marvintmStatusresolved => closed
2019-05-08 13:25marvintmFixed in Version => RR19Q3
2019-05-21 18:30ngarciaRelationship addedrelated to 0040928

Notes
(0111442)
hgbot   
2019-05-02 16:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2a6260cd92f08c216be3a8ac73090270597aab61
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Apr 30 18:01:04 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2a6260cd92f08c216be3a8ac73090270597aab61 [^]

Fixed issue 40720: Payments in foreign currency with more decimals than
currency's precision if grouped in a Payment Method Category

- Checked POS Precision of the selected payment to be sure that we take into
account the Payment Method Category too.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
---