diff --git a/apps/inm/migrations/0038_mioitem_count_send.py b/apps/inm/migrations/0038_mioitem_count_send.py new file mode 100644 index 00000000..84ad27e4 --- /dev/null +++ b/apps/inm/migrations/0038_mioitem_count_send.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2025-11-17 06:33 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('inm', '0037_alter_materialbatch_material'), + ] + + operations = [ + migrations.AddField( + model_name='mioitem', + name='count_send', + field=models.DecimalField(blank=True, decimal_places=3, max_digits=12, null=True, verbose_name='发出数量'), + ), + ] diff --git a/apps/inm/models.py b/apps/inm/models.py index 83580b49..e0d2cd3d 100644 --- a/apps/inm/models.py +++ b/apps/inm/models.py @@ -161,6 +161,7 @@ class MIOItem(BaseModel): batch = models.TextField('批次号', db_index=True) unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True) count = models.DecimalField('出入数量', max_digits=12, decimal_places=3) + count_send = models.DecimalField('发出数量', max_digits=12, decimal_places=3, null=True, blank=True) count_tested = models.PositiveIntegerField('已检数', null=True, blank=True) test_date = models.DateField('检验日期', null=True, blank=True) test_user = models.ForeignKey(