service level specific base fees

This commit is contained in:
Tobias Brunner 2025-06-20 15:39:26 +02:00
parent 150250bfb1
commit 033eea92cd
No known key found for this signature in database
9 changed files with 716 additions and 58 deletions

View file

@ -0,0 +1,79 @@
# Generated by Django 5.2 on 2025-06-20 13:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("services", "0035_alter_article_image_vshnappcataddon_and_more"),
]
operations = [
migrations.AlterModelOptions(
name="vshnappcataddonbasefee",
options={
"ordering": ["currency", "service_level"],
"verbose_name": "Addon Base Fee",
},
),
migrations.AlterModelOptions(
name="vshnappcatbasefee",
options={
"ordering": ["currency", "service_level"],
"verbose_name": "Service Base Fee",
},
),
migrations.AlterUniqueTogether(
name="vshnappcataddonbasefee",
unique_together=set(),
),
migrations.AlterUniqueTogether(
name="vshnappcatbasefee",
unique_together=set(),
),
migrations.AddField(
model_name="vshnappcataddonbasefee",
name="service_level",
field=models.CharField(
choices=[("BE", "Best Effort"), ("GA", "Guaranteed Availability")],
default="BE",
max_length=2,
),
),
migrations.AddField(
model_name="vshnappcatbasefee",
name="service_level",
field=models.CharField(
choices=[("BE", "Best Effort"), ("GA", "Guaranteed Availability")],
default="BE",
max_length=2,
),
),
migrations.AlterField(
model_name="vshnappcataddonbasefee",
name="amount",
field=models.DecimalField(
decimal_places=2,
help_text="Base fee in the specified currency and service level, excl. VAT",
max_digits=10,
),
),
migrations.AlterField(
model_name="vshnappcatbasefee",
name="amount",
field=models.DecimalField(
decimal_places=2,
help_text="Base fee in the specified currency and service level, excl. VAT",
max_digits=10,
),
),
migrations.AlterUniqueTogether(
name="vshnappcataddonbasefee",
unique_together={("addon", "currency", "service_level")},
),
migrations.AlterUniqueTogether(
name="vshnappcatbasefee",
unique_together={("vshn_appcat_price_config", "currency", "service_level")},
),
]