# Generated by Django 5.2.8 on 2025-12-10 02:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0005_supplier_outstanding_balance_and_more'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='supplierpayment',
            options={'ordering': ['-date']},
        ),
        migrations.RenameField(
            model_name='supplierpayment',
            old_name='created_at',
            new_name='date',
        ),
        migrations.RemoveField(
            model_name='purchaseorder',
            name='total_cost',
        ),
        migrations.RemoveField(
            model_name='purchaseorderitem',
            name='line_total',
        ),
        migrations.RemoveField(
            model_name='supplier',
            name='total_amount_paid',
        ),
        migrations.RemoveField(
            model_name='supplierpayment',
            name='method',
        ),
        migrations.RemoveField(
            model_name='supplierpayment',
            name='payment_date',
        ),
        migrations.RemoveField(
            model_name='supplierpayment',
            name='purchase_order',
        ),
        migrations.AlterField(
            model_name='supplierpayment',
            name='notes',
            field=models.TextField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='supplierpayment',
            name='supplier',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='payments', to='inventory.supplier'),
        ),
    ]
