# Generated by Django 6.0.2 on 2026-07-08 12:49

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='OutgoingInvoice',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.CharField(max_length=100, unique=True)),
                ('reference', models.CharField(blank=True, max_length=100)),
                ('date', models.DateField()),
                ('due_date', models.DateField(blank=True, null=True)),
                ('contact_code', models.CharField(max_length=100)),
                ('contact', models.JSONField(blank=True, default=dict)),
                ('contact_title', models.CharField(blank=True, max_length=255)),
                ('sum', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('payable', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('paid', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('rest', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('note', models.TextField(blank=True)),
                ('sent', models.BooleanField(default=False)),
                ('returned', models.BooleanField(default=False)),
                ('invoice_type', models.CharField(blank=True, max_length=100)),
                ('status', models.CharField(blank=True, max_length=100)),
                ('tag', models.CharField(blank=True, max_length=255)),
                ('freight', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('warehouse_receipt_status', models.CharField(blank=True, max_length=100)),
                ('project', models.JSONField(blank=True, default=dict)),
                ('salesman_code', models.CharField(blank=True, max_length=100)),
                ('salesman_percent', models.DecimalField(decimal_places=2, default=0, max_digits=5)),
                ('profit', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('currency', models.CharField(blank=True, max_length=50)),
                ('tax_id', models.CharField(blank=True, max_length=100)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Outgoing Invoice',
                'verbose_name_plural': 'Outgoing Invoices',
                'ordering': ['-date', '-id'],
            },
        ),
    ]
