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

ポイントの付与率を0で設定したい #4780

Closed
okazy opened this issue Dec 1, 2020 · 0 comments
Closed

ポイントの付与率を0で設定したい #4780

okazy opened this issue Dec 1, 2020 · 0 comments
Labels
good-first-issue Good for newcomers/簡単に修正できそうなもの improvement 機能改善
Milestone

Comments

@okazy
Copy link
Contributor

okazy commented Dec 1, 2020

概要(Overview)

ポイントの付与率は1~100で設定できるようになっている。

->add('basic_point_rate', NumberType::class, [
'required' => false,
'constraints' => [
new Assert\Regex([
'pattern' => "/^\d+$/u",
'message' => 'form_error.numeric_only',
]),
new Assert\Range([
'min' => 1,
'max' => 100,
]),
],
])

ポイント制度を廃止したい時、「新しくポイントを付与したくないが、所持しているポイントは利用できるようにしたい」という要件があるが、現状では付与率を0で設定できないため要件を満たせない。

image

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

ポイント付与率の範囲を0~100に変更する。

再現手順(Procedure)

ポイント付与率を0で登録

環境 (environment)

  • EC-CUBE: 4.0.x

関連情報 (Ref)

@okazy okazy added the improvement 機能改善 label Dec 1, 2020
@okazy okazy added this to the 4.0.x milestone Dec 1, 2020
@okazy okazy added the good-first-issue Good for newcomers/簡単に修正できそうなもの label Dec 1, 2020
@okazy okazy modified the milestones: 4.0.x, 4.0.6 Jan 28, 2021
@chihiro-adachi chihiro-adachi modified the milestones: 4.0.6, 4.1 Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Good for newcomers/簡単に修正できそうなもの improvement 機能改善
Projects
None yet
Development

No branches or pull requests

3 participants