corporate: Add minimum_licenses field to Customer model.

This commit is contained in:
Lauryn Menard 2023-12-14 19:47:40 +01:00 committed by Tim Abbott
parent cc957e92f4
commit deaf734488
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.8 on 2023-12-14 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("corporate", "0031_customer_flat_discount_and_more"),
]
operations = [
migrations.AddField(
model_name="customer",
name="minimum_licenses",
field=models.PositiveIntegerField(null=True),
),
]

View File

@ -28,6 +28,7 @@ class Customer(models.Model):
sponsorship_pending = models.BooleanField(default=False)
# A percentage, like 85.
default_discount = models.DecimalField(decimal_places=4, max_digits=7, null=True)
minimum_licenses = models.PositiveIntegerField(null=True)
# Some non-profit organizations on manual license management pay
# only for their paid employees. We don't prevent these
# organizations from adding more users than the number of licenses