# Generated by Django 5.1.4 on 2024-12-09 20:42

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='salequotationcar',
            name='financial_details',
        ),
        migrations.AddField(
            model_name='salequotation',
            name='status',
            field=models.CharField(choices=[('DRAFT', 'Draft'), ('CONFIRMED', 'Confirmed'), ('CANCELED', 'Canceled')], default='DRAFT', max_length=10, verbose_name='Status'),
        ),
        migrations.AddField(
            model_name='salequotation',
            name='updated_at',
            field=models.DateTimeField(auto_now=True, verbose_name='Updated At'),
        ),
        migrations.AddField(
            model_name='salequotationcar',
            name='administration_fee',
            field=models.DecimalField(decimal_places=2, default=150, max_digits=14, verbose_name='Administration Fee'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='salequotationcar',
            name='custom_card_fee',
            field=models.DecimalField(decimal_places=2, default=70, max_digits=14, verbose_name='Custom Card Fee'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='salequotationcar',
            name='selling_price',
            field=models.DecimalField(decimal_places=2, default=120000, max_digits=14, verbose_name='Selling Price'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='salequotationcar',
            name='total_amount',
            field=models.DecimalField(decimal_places=2, default=135000, max_digits=14, verbose_name='Total Amount'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='salequotationcar',
            name='transportation_fee',
            field=models.DecimalField(decimal_places=2, default=500, max_digits=14, verbose_name='Transportation Fee'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='salequotationcar',
            name='vat_amount',
            field=models.DecimalField(decimal_places=2, default=4352, max_digits=14, verbose_name='VAT Amount'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='salequotation',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, verbose_name='Created At'),
        ),
        migrations.AlterField(
            model_name='salequotation',
            name='customer',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quotations', to='inventory.customer', verbose_name='Customer'),
        ),
        migrations.AlterField(
            model_name='salequotation',
            name='remarks',
            field=models.TextField(blank=True, null=True, verbose_name='Remarks'),
        ),
        migrations.AlterField(
            model_name='salequotationcar',
            name='car',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventory.car', verbose_name='Car'),
        ),
        migrations.AlterField(
            model_name='salequotationcar',
            name='quotation',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quotation_cars', to='inventory.salequotation', verbose_name='Quotation'),
        ),
        migrations.CreateModel(
            name='SalesOrder',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
                ('total_amount', models.DecimalField(decimal_places=2, max_digits=14, verbose_name='Total Amount')),
                ('quotation', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='sales_order', to='inventory.salequotation', verbose_name='Quotation')),
            ],
        ),
    ]
