-
-
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
[Behat][Promotion] Fixed discount promotion scenarios vol 2 #4208
[Behat][Promotion] Fixed discount promotion scenarios vol 2 #4208
Conversation
449d0c4
to
29f68ad
Compare
We need a rebase here. |
29f68ad
to
1ac9d3d
Compare
Rebase done, but we should definitely wait for merging #4223 😄 |
66741ce
to
e7ba3e5
Compare
*/ | ||
private function calculateAdjustmentAmount($promotionSubjectTotal, $targetPromotionAmount) | ||
{ | ||
return ($promotionSubjectTotal < $targetPromotionAmount) ? -$promotionSubjectTotal : -$targetPromotionAmount; |
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.
-1 * min($promotionSubjectTotal, $targetPromotionAmount)
, wdyt? :D
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.
👍
89414a0
to
c6314af
Compare
…arios-vol-2 [Behat][Promotion] Fixed discount promotion scenarios vol 2
👍 |
Based on previous #4199.
Two last scenarios in these feature implemented, also some changes in code to fit them.