# Generated by Django 5.1.4 on 2025-01-09 08:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0003_alter_stockoperation_product_alter_inventory_product_and_more'),
        ('product_directory', '0001_initial'),
        ('warehouse', '0002_warehouse_alter_stock_options_and_more'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='inventory',
            options={'verbose_name': 'Инвентаризация', 'verbose_name_plural': 'Инвентаризации'},
        ),
        migrations.RemoveField(
            model_name='inventory',
            name='location',
        ),
        migrations.RemoveField(
            model_name='inventory',
            name='quantity',
        ),
        migrations.AddField(
            model_name='inventory',
            name='actual_quantity',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Фактическое количество'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='difference',
            field=models.IntegerField(blank=True, default=0, null=True, verbose_name='Разница'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='recorded_quantity',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Учтенное количество'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='storage_location',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='inventory.storagelocation', verbose_name='Место хранения'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='warehouse',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='warehouse.warehouse', verbose_name='Склад'),
        ),
        migrations.AlterField(
            model_name='inventory',
            name='inventory_date',
            field=models.DateTimeField(auto_now_add=True, null=True, verbose_name='Дата инвентаризации'),
        ),
        migrations.AlterField(
            model_name='inventory',
            name='product',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product_directory.product', verbose_name='Товар'),
        ),
    ]
