add: add expence type crud and model
This commit is contained in:
31
core/apps/finance/migrations/0009_expencetype.py
Normal file
31
core/apps/finance/migrations/0009_expencetype.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.2.4 on 2025-09-08 17:40
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('finance', '0008_alter_income_audit_alter_income_counterparty_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ExpenceType',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('name', models.CharField(max_length=200)),
|
||||
('category', models.CharField(choices=[('OTHERS', 'boshqalar'), ('FIXED_COST', 'doimiy xarajat')], max_length=20)),
|
||||
('activity', models.CharField(choices=[('FINANCIAL', 'moliyaviy'), ('CAPITAL', 'sarmoya')], max_length=20)),
|
||||
('comment', models.CharField(max_length=200)),
|
||||
('status', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'xarajat turi',
|
||||
'verbose_name_plural': 'xarajat turlari',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user