forked from CGM_Public/pretix_original
New data model for default tax rule and new options for cancellation fees (#4962)
* New data model for default tax rule * Remove misleading empty label when field is not optional * Allow to split cancellation fee * Fix API and tests * Update migration * Update src/tests/api/test_taxrules.py Co-authored-by: luelista <weller@rami.io> * Update src/tests/api/test_taxrules.py Co-authored-by: luelista <weller@rami.io> * Review note * Update src/pretix/base/models/tax.py Co-authored-by: luelista <weller@rami.io> * Flip API behaviour for default * Fix failing tests * Fix failing test * Split migration --------- Co-authored-by: luelista <weller@rami.io>
This commit is contained in:
@@ -192,7 +192,7 @@ def subevent2(event2, meta_prop):
|
||||
@pytest.fixture
|
||||
@scopes_disabled()
|
||||
def taxrule(event):
|
||||
return event.tax_rules.create(name="VAT", rate=19, code="S/standard")
|
||||
return event.tax_rules.create(name="VAT", rate=19, code="S/standard", default=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user