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

[4.2] 税金計算エラーを 0 で割った値を表示 #5533

Closed
LeTanNghia opened this issue Aug 12, 2022 · 1 comment
Closed

[4.2] 税金計算エラーを 0 で割った値を表示 #5533

LeTanNghia opened this issue Aug 12, 2022 · 1 comment
Labels
Milestone

Comments

@LeTanNghia
Copy link
Contributor

LeTanNghia commented Aug 12, 2022

概要(Overview)

管理ページで新しい注文を作成するときに、注文に詳細を追加すると、注文の合計がゼロの場合に税率の計算に関するエラーが発生しました (Division by zero)
これは 8.0 および 8.1 環境で簡単に発生します。

期待する内容(Expect) or 要望 (Requirement)

再現手順(Procedure)

Step 1. 受注管理 → 受注登録
【商品情報】欄の【その他の明細を追加】ボタンを押してください。
image

Step 2. 注文に詳細を追加する
image

Step 3. システムエラーが発生しました。 (APP_ENV=prod, APP_DEBUG=0)
image

(APP_ENV=dev, APP_DEBUG=1)
image

環境 (environment)

  • EC-CUBE: 4.2.0 beta2
  • PHP: 7.4.x, 8.0.x, 8.1.x
  • DB:
    • PostgreSQL 10.x.x
    • MySQL 5.7.x, 8.0.x

関連情報 (Ref)

モンキーテスト(β2)

@chihiro-adachi
Copy link
Contributor

#5537 で修正

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

2 participants