pre sale system deployment
This commit is contained in:
18
apps/product/migrations/0074_quota_limit_by_herd_size.py
Normal file
18
apps/product/migrations/0074_quota_limit_by_herd_size.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0 on 2025-09-20 13:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('product', '0073_historicalquotadistribution_free_sale_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='quota',
|
||||
name='limit_by_herd_size',
|
||||
field=models.BooleanField(default=True),
|
||||
),
|
||||
]
|
||||
@@ -361,6 +361,7 @@ class Quota(BaseModel):
|
||||
base_price_factory = models.PositiveBigIntegerField(default=0)
|
||||
base_price_cooperative = models.PositiveBigIntegerField(default=0)
|
||||
final_price = models.DecimalField(max_digits=12, decimal_places=2, null=True, blank=True)
|
||||
limit_by_herd_size = models.BooleanField(default=True)
|
||||
is_closed = models.BooleanField(default=False)
|
||||
closed_at = models.DateTimeField(null=True, blank=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user