-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2192 from dpfaffenbauer/issues/2180
- Loading branch information
Showing
5 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
features/domain/cart/rules/surcharge_amount_more_than_item_total_action.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@domain @cart | ||
Feature: Adding a new cart rule | ||
In order to give the customer surcharge | ||
based on the cart, we add a new rule | ||
the surcharge is allowed to be more than the items total | ||
|
||
Background: | ||
Given the site operates on a store in "Austria" | ||
And the site has a currency "Euro" with iso "EUR" | ||
And I am in country "Austria" | ||
And the site has a tax rate "AT" with "20%" rate | ||
And the site has a tax rule group "AT" | ||
And the tax rule group has a tax rule for country "Austria" with tax rate "AT" | ||
And the site has a product "Shoe" priced at 10000 | ||
And the product has the tax rule group "AT" | ||
And I add the product "Shoe" to my cart | ||
|
||
Scenario: Add a new surcharge rule with 500 euro for all products | ||
Given adding a cart price rule named "surcharge" | ||
And the cart rule is active | ||
And the cart rule is a voucher rule with code "asdf" | ||
And the cart rule has a action surcharge with 500 in currency "EUR" off | ||
And I apply the voucher code "asdf" to my cart | ||
Then the cart discount should be "60000" including tax | ||
Then the cart discount should be "50000" excluding tax | ||
Then the cart total tax should be "12000" | ||
Then the cart item taxes should be "12000" | ||
Then the cart total should be "60000" excluding tax | ||
Then the cart total should be "72000" including tax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters