-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Api] Receiving percentage discount #12083
Conversation
@@ -541,4 +565,22 @@ private function checkProductQuantity( | |||
} | |||
} | |||
} | |||
|
|||
private function compareItemSubtotal(ProductInterface $product, \Closure $price): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that very simillar or even the same function is here https://github.com/Sylius/Sylius/pull/12081/files/a2cef239265f11c566a0efbff8514ef2142685d4#diff-b5c163d690bfe47026cba0b16b71bdc7a4e1b0d95352b10522d4b0194d23e85dR555
Maybe we can think about another class that can have same function? 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same function because this PR is based on #12081
1d6d7e1
to
dcbfc00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rebase with master?
dcbfc00
to
25afe06
Compare
Thanks, Tomasz! 🎉 |
This PR is based on #12081