from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0016_product_is_hidden'),
    ]

    operations = [
        # Product.stock_quantity: PositiveIntegerField -> DecimalField(12,1)
        migrations.AlterField(
            model_name='product',
            name='stock_quantity',
            field=models.DecimalField(
                max_digits=12, decimal_places=1, default=0,
                help_text='Supports fractional stock e.g. 0.5 for half a pack.',
            ),
        ),
        # BranchStock.quantity: IntegerField -> DecimalField(12,1)
        migrations.AlterField(
            model_name='branchstock',
            name='quantity',
            field=models.DecimalField(max_digits=12, decimal_places=1, default=0),
        ),
        # VariantBranchStock.quantity: IntegerField -> DecimalField(12,1)
        migrations.AlterField(
            model_name='variantbranchstock',
            name='quantity',
            field=models.DecimalField(max_digits=12, decimal_places=1, default=0),
        ),
        # ProductVariant.stock_quantity: IntegerField -> DecimalField(12,1)
        migrations.AlterField(
            model_name='productvariant',
            name='stock_quantity',
            field=models.DecimalField(max_digits=12, decimal_places=1, default=0),
        ),
    ]
