some first models of pos & add required to attributes

This commit is contained in:
2025-07-21 09:39:31 +03:30
parent c87204c134
commit ebc79a7dbd
14 changed files with 446 additions and 17 deletions

View File

@@ -0,0 +1,47 @@
# Generated by Django 5.0 on 2025-07-20 08:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0051_quotabrokervalue_value'),
]
operations = [
migrations.RemoveField(
model_name='productstats',
name='total_quota',
),
migrations.AddField(
model_name='productstats',
name='active_quotas_weight',
field=models.PositiveBigIntegerField(default=0),
),
migrations.AddField(
model_name='productstats',
name='closed_quotas_weight',
field=models.PositiveBigIntegerField(default=0),
),
migrations.AddField(
model_name='productstats',
name='quotas_number',
field=models.PositiveBigIntegerField(default=0),
),
migrations.AddField(
model_name='productstats',
name='total_distributed_weight',
field=models.PositiveBigIntegerField(default=0),
),
migrations.AddField(
model_name='productstats',
name='total_quota_weight',
field=models.PositiveBigIntegerField(default=0),
),
migrations.AddField(
model_name='productstats',
name='total_warehouse_entry',
field=models.PositiveBigIntegerField(default=0),
),
]

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.0 on 2025-07-21 06:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0052_remove_productstats_total_quota_and_more'),
]
operations = [
migrations.AddField(
model_name='attribute',
name='required',
field=models.BooleanField(default=False),
),
]