EC-CUBE / EC-CUBE/ec-cube

内税対応(消費税込500円の商品を500円ジャストで販売したい)

Open
#5,850 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
788
Forks
719
Avg merge
4d 4h
Merged PRs (30d)
39

Description

## 概要(Overview)

以下、開発コミュニティにて
https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=26753&forum=2

> 500÷1.1=454.5454...なので
> 454円で商品登録すると、454+45(...454x10%=45.4 四捨五入されて45)=499円
> 455円で商品登録すると、455+46(...455x10%=45.5 四捨五入されて46)=501円
> となり、500円で売れないのでした。

## 期待する内容(Expect) or 要望 (Requirement)
消費税込500円の商品を500円ジャストで販売したい

## 再現手順(Procedure)
454円で商品登録すると、454+45(...454x10%=45.4 四捨五入されて45)=499円
455円で商品登録すると、455+46(...455x10%=45.5 四捨五入されて46)=501円
となってしまう

### 環境 (environment)
+ EC-CUBE: 4.2.0

## 関連情報 (Ref)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.