feat: mioitem添加count_send字段

This commit is contained in:
caoqianming 2025-11-17 14:34:13 +08:00
parent 8b74d0b121
commit 168d917232
2 changed files with 19 additions and 0 deletions

View File

@ -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='发出数量'),
),
]

View File

@ -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(