mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge branch '1.11' into 1.12
* 1.11: Allow to set zero tax rate
This commit is contained in:
commit
922e99a1a7
2 changed files with 14 additions and 1 deletions
|
|
@ -22,6 +22,19 @@ Feature: Adding a new tax rate
|
|||
Then I should be notified that it has been successfully created
|
||||
And the tax rate "United States Sales Tax" should appear in the registry
|
||||
|
||||
@ui
|
||||
Scenario: Adding a zero tax rate
|
||||
When I want to create a new tax rate
|
||||
And I specify its code as "US_SALES_TAX"
|
||||
And I name it "United States Sales Tax"
|
||||
And I define it for the "United States" zone
|
||||
And I make it applicable for the "Food and Beverage" tax category
|
||||
And I specify its amount as 0%
|
||||
And I choose the default tax calculator
|
||||
And I add it
|
||||
Then I should be notified that it has been successfully created
|
||||
And the tax rate "United States Sales Tax" should appear in the registry
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Adding a new tax rate which will be included in product price
|
||||
When I want to create a new tax rate
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
<option name="message">sylius.tax_rate.amount.not_blank</option>
|
||||
<option name="groups">sylius</option>
|
||||
</constraint>
|
||||
<constraint name="Positive">
|
||||
<constraint name="PositiveOrZero">
|
||||
<option name="message">sylius.tax_rate.amount.invalid</option>
|
||||
<option name="groups">sylius</option>
|
||||
</constraint>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue