material增加piece_count字段

This commit is contained in:
caoqianming 2021-12-01 10:37:35 +08:00
parent 20b5cdde67
commit 133e99d556
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.9 on 2021-12-01 02:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mtm', '0039_auto_20211201_1016'),
]
operations = [
migrations.AddField(
model_name='material',
name='piece_count',
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='单片玻璃数量'),
),
]

View File

@ -40,6 +40,7 @@ class Material(CommonAModel):
sort_str = models.CharField('排序字符', max_length=100, null=True, blank=True)
unit = models.CharField('基准计量单位', choices=unit_choices, default='', max_length=10)
count = models.IntegerField('物料总数', default=0)
piece_count = models.PositiveSmallIntegerField('单片玻璃数量', null=True, blank=True)
class Meta:
verbose_name = '物料表'
verbose_name_plural = verbose_name