fix garanty esh

This commit is contained in:
javad committed 2026-06-24 18:22:34 +03:30
1 parent bf78bc2520
commit 739104115a
6 files changed
+382 -78

No files matched your search

@@ -0,0 +1,34 @@
# Generated by Django 3.2.25 on 2026-06-24 14:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('admin_panel', '0045_auto_20260610_1421'),
]
operations = [
migrations.AddField(
model_name='customer',
name='is_active',
field=models.BooleanField(blank=True, default=True, help_text='وضعیت فعالیت مشتری', null=True),
),
migrations.AddField(
model_name='factor',
name='is_active',
field=models.BooleanField(blank=True, default=True, null=True),
),
migrations.AddField(
model_name='productinstore',
name='movement_type',
field=models.CharField(blank=True, choices=[('SALE', 'فروش عادی'), ('WARRANTY', 'گارانتی'), ('PROMOTION', 'اشانتیون'), ('TRANSFER', 'انتقال'), ('INITIAL', 'موجودی اولیه'), ('DIRECT_IN', 'ورود دستی'), ('DIRECT_OUT', 'خروج دستی')], db_index=True, max_length=20, null=True),
),
migrations.AlterField(
model_name='productinstore',
name='factor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='admin_panel.factor'),
),
]