New issue
Advanced search Search tips

Issue 638480 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Don't show fractions of JPY

Project Member Reported by rouslan@chromium.org, Aug 17 2016

Issue description

If payment amount is {currency: 'JPY', value: '5'}, then the value should be displayed as '5'. This is in contrast to {currency: 'USD', value: '5'}, which is displayed as '5.00'.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 17 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f36dc088ea31d9385246dbe67a82505acb56c410

commit f36dc088ea31d9385246dbe67a82505acb56c410
Author: rouslan <rouslan@chromium.org>
Date: Wed Aug 17 16:51:04 2016

Show no fractions for JPY currency.

Currencies such as JPY do not have fractions by default. If the
website is using web payments with an amount like "500", then
UI should show only "500", without any decimals.

BUG= 638480 

Review-Url: https://codereview.chromium.org/2246923006
Cr-Commit-Position: refs/heads/master@{#412562}

[modify] https://crrev.com/f36dc088ea31d9385246dbe67a82505acb56c410/chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java
[modify] https://crrev.com/f36dc088ea31d9385246dbe67a82505acb56c410/chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java

Status: Fixed (was: Started)
Components: -UI>Browser>Autofill>Payments UI>Browser>Payments

Sign in to add a comment