# Generated by Django 3.1.4 on 2022-01-12 13:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0133_batch_prd_team_id'),
        ('product', '0030_product_is_banquet'),
        ('erp', '0006_salesorder_edit_logs'),
    ]

    operations = [
        migrations.AddField(
            model_name='salesorderdetails',
            name='qty0',
            field=models.IntegerField(default=0, verbose_name='最小计量单位的数量'),
        ),
        migrations.CreateModel(
            name='SalesOrderDelivery',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('company_id', models.IntegerField(verbose_name='企业ID')),
                ('qty0', models.IntegerField(default=0, verbose_name='最小计量单位的数量')),
                ('dt', models.DateField(auto_now_add=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventory.batch', verbose_name='销售出库batch')),
                ('ordertype', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='erp.ordertype', verbose_name='订单类别')),
                ('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='对应产品ID')),
                ('salesorder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='erp.salesorder', verbose_name='销售订单')),
            ],
            options={
                'verbose_name': '销售订单销售出库明细',
                'verbose_name_plural': '销售订单销售出库明细',
            },
        ),
    ]
