mirror of https://github.com/zulip/zulip.git
corporate: Add minimum_licenses field to Customer model.
This commit is contained in:
parent
cc957e92f4
commit
deaf734488
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -28,6 +28,7 @@ class Customer(models.Model):
|
||||||
sponsorship_pending = models.BooleanField(default=False)
|
sponsorship_pending = models.BooleanField(default=False)
|
||||||
# A percentage, like 85.
|
# A percentage, like 85.
|
||||||
default_discount = models.DecimalField(decimal_places=4, max_digits=7, null=True)
|
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
|
# Some non-profit organizations on manual license management pay
|
||||||
# only for their paid employees. We don't prevent these
|
# only for their paid employees. We don't prevent these
|
||||||
# organizations from adding more users than the number of licenses
|
# organizations from adding more users than the number of licenses
|
||||||
|
|
Loading…
Reference in New Issue