Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2019-04-30 12:182019-05-08 13:25
ReporterngarciaView Statuspublic 
Assigned Torqueralta 
PriorityurgentResolutionfixedFixed in VersionRR19Q3
StatusclosedFix in branchFixed in SCM revision2a6260cd92f0
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

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

DescriptionPayments 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
Steps To ReproduceIn 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)

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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0040458 closedrqueralta Payments in foreign currency with more decimals than the currency's precision 
related to defect 0040928 closedrqueralta The precision of the financial account currency is not used in transactions when paying a ticket with a different currency 

-  Notes
hgbot (developer)
2019-05-02 16:54

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2a6260cd92f08c216be3a8ac73090270597aab61
Author: Rafael Queralta <rafaelcuba81 <at>>
Date: Tue Apr 30 18:01:04 2019 -0400
URL: [^]

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

- Issue History
Date Modified Username Field Change
2019-04-30 12:18 ngarcia New Issue
2019-04-30 12:18 ngarcia Assigned To => Retail
2019-04-30 12:18 ngarcia Resolution time => 1558389600
2019-04-30 12:18 ngarcia Triggers an Emergency Pack => No
2019-04-30 12:18 ngarcia Relationship added depends on 0040458
2019-04-30 12:18 ngarcia Issue Monitored: networkb
2019-04-30 15:10 rqueralta Assigned To Retail => rqueralta
2019-04-30 15:10 rqueralta Status new => scheduled
2019-05-02 16:54 hgbot Checkin
2019-05-02 16:54 hgbot Note Added: 0111442
2019-05-02 16:54 hgbot Status scheduled => resolved
2019-05-02 16:54 hgbot Resolution open => fixed
2019-05-02 16:54 hgbot Fixed in SCM revision => [^]
2019-05-08 13:25 marvintm Review Assigned To => marvintm
2019-05-08 13:25 marvintm Status resolved => closed
2019-05-08 13:25 marvintm Fixed in Version => RR19Q3
2019-05-21 18:30 ngarcia Relationship added related to 0040928

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker