1
0
forked from erp-dev/erp

feat: added remark field into shipment module

This commit is contained in:
2026-01-15 20:52:51 +08:00
parent 13c440a7fe
commit 554a2c4234
7 changed files with 57 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.2.8 on 2026-01-15 12:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shipment', '0006_add_merchant_to_shipment_and_salesitem'),
]
operations = [
migrations.AddField(
model_name='externalfinishedproduct',
name='remark',
field=models.CharField(blank=True, max_length=200, null=True, verbose_name='备注'),
),
]

View File

@@ -41,6 +41,12 @@ class ExternalFinishedProduct(ModelBase):
num_of_rolls = models.PositiveIntegerField(
verbose_name='卷数',
)
remark = models.CharField(
max_length=200,
null=True,
blank=True,
verbose_name='备注',
)
created_by = models.ForeignKey(
User,
on_delete=models.SET_NULL,

View File

@@ -171,6 +171,7 @@ def create_external_shipment(
shipment=shipment,
style_name=item.get('style_name', ''),
num_of_rolls=item.get('num_of_rolls', 0),
remark=item.get('remark') or '',
created_by=created_by,
))