Merge branch '1.11' into 1.12

* 1.11:
  Allow to set zero tax rate
This commit is contained in:
Grzegorz Sadowski 2022-07-13 10:07:59 +02:00
commit 922e99a1a7
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 14 additions and 1 deletions

View file

@ -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

View file

@ -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>