Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

値引き額を税率で按分し、小数点以下を丸めた際に、支払い金額とインボイスの合計額で誤差が発生する可能性がある #6335

Open
nanasess opened this issue Jan 31, 2025 · 1 comment
Labels
Milestone

Comments

@nanasess
Copy link
Contributor

概要(Overview)

2系での修正をバックポートする必要がありそう
EC-CUBE/ec-cube2#762 (comment)

再現手順(Procedure)

以下を参照
EC-CUBE/ec-cube2#762 (comment)

環境(Environment)

EC-CUBE: 4.3

@nanasess nanasess added the bug label Jan 31, 2025
@hironori-tanaka
Copy link

hironori-tanaka commented Jan 31, 2025

4.2系のサイトで実際に問題が発生していますので、報告しておきます。
基本税率で課税規則を切り捨てにしており、ポイントを利用すると税率ごとの割り戻し計算で金額にずれが発生しています。
src/Eccube/Entity/Order.php
getTotalByTaxRate()
にて、 $roundingTypes[$rate]->getId() を 1 // 四捨五入で固定 に変更すると、正しく計算されるようになりました。

Image

@ji-eunsoo ji-eunsoo added this to the 4.3.x milestone Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants