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

Fix configuring amount for catalog promotions fixed discount actions #15214

Merged
merged 1 commit into from Aug 10, 2023

Conversation

TheMilek
Copy link
Member

@TheMilek TheMilek commented Aug 7, 2023

Q A
Branch? 1.12
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Related tickets fixes #X
License MIT

it is now possible to configure decimal amounts with comma without validation errors

@TheMilek TheMilek requested a review from a team as a code owner August 7, 2023 11:25
@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Aug 7, 2023
@TheMilek TheMilek added the Bug Confirmed bugs or bugfixes. label Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

UPGRADE-1.12.md Outdated Show resolved Hide resolved
Comment on lines +29 to +31
'constraints' => [
new Type(['type' => 'numeric', 'groups' => ['sylius']]),
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering maybe the groups option should be passed through the constructor. Now it cannot be easily changed, as you need to remove, and add a given field.

Given the store operates on a single channel in "United States"
And I am logged in as an administrator

@ui @no-api @javascript
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@ui @no-api @javascript
@no-api @ui @javascript

or

Suggested change
@ui @no-api @javascript
@ui @javascript @no-api

🤔

@@ -0,0 +1,20 @@
@managing_catalog_promotions
Feature: Adding a new catalog promotion with fixed discount where amount is a decimal number with comma
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This scenario could be added as an additional one to the feature for creating catalog promotions as the purpose is IMO the same, there is no need to create a separate feature file for that.

@GSadee GSadee merged commit 163953b into Sylius:1.12 Aug 10, 2023
25 checks passed
@GSadee
Copy link
Member

GSadee commented Aug 10, 2023

Thank you, Kamil! 🥇

GSadee added a commit that referenced this pull request Sep 14, 2023
… discount actions (TheMilek, NoResponseMate)

This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                      |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
Same issue like [here](#15214)

Commits
-------

92562de Fix configuring amount for cart promotions item percentage discount actions
eb13a29 [Behat][Promotion] Update percentage decimal places tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes. Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants