value cannot have decimals for JPY
Issue #7
resolved
Current
When the currency is JPY, Payment via PayPal causes error, "value cannot have decimals for JPY"
JPY Currency
JPY means Japanese Yen. JPY does not have decimals.
How to Reproduce
-
Sets the currency JPY
-
Setups consumption tax 8% It will create decimal prices.
-
Payment via Paypal causes error. JPY does not have decimals, but seems that the tax calculation creates decimals, causing an error. FormatConverter.php formatToPrice, l46-61
Proposal
Apply floor/round after tax calculation.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
Fixed in version 0.9.7.8
-
repo owner PS: In general settings of shop system, section "Money Format" you have to set the decimal to 0 to get this work.
- Log in to comment
Hello,
thank you for your error report. I was able to reproduce and fix this bug.
Version 0.9.7.8 will be ready to download in 10 minutes.
Thank you for using Bitter Shop System!
Fabian