feat: 物料增加主库位号
This commit is contained in:
parent
a819566c23
commit
8805237a44
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.12 on 2025-06-18 08:29
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('mtm', '0058_process_wpr_number_rule'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='material',
|
||||||
|
name='bin_number_main',
|
||||||
|
field=models.CharField(blank=True, max_length=50, null=True, verbose_name='主库位号'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -101,6 +101,7 @@ class Material(CommonAModel):
|
||||||
brothers = models.JSONField('兄弟件', default=list, null=False, blank=True)
|
brothers = models.JSONField('兄弟件', default=list, null=False, blank=True)
|
||||||
unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True)
|
unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True)
|
||||||
into_wm = models.BooleanField('是否进入车间库存', default=True)
|
into_wm = models.BooleanField('是否进入车间库存', default=True)
|
||||||
|
bin_number_main = models.CharField('主库位号', max_length=50, null=True, blank=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = '物料表'
|
verbose_name = '物料表'
|
||||||
|
|
Loading…
Reference in New Issue