forked from erp-dev/erp
feat: added area field into shipments model
This commit is contained in:
@@ -49,6 +49,7 @@ def create_shipment(
|
||||
sales_item_ids: List[int],
|
||||
created_by,
|
||||
remark: str = '',
|
||||
area: str = '',
|
||||
) -> Shipment:
|
||||
"""
|
||||
创建出货单并关联销售品
|
||||
@@ -104,6 +105,7 @@ def create_shipment(
|
||||
merchant=merchant,
|
||||
customer=customer,
|
||||
shipment_date=shipment_date,
|
||||
area=(area or '').strip(),
|
||||
remark=remark,
|
||||
created_by=created_by,
|
||||
)
|
||||
@@ -125,6 +127,7 @@ def create_external_shipment(
|
||||
external_finished_products: List[dict],
|
||||
created_by,
|
||||
remark: str = '',
|
||||
area: str = '',
|
||||
) -> Shipment:
|
||||
"""
|
||||
创建出货单(external 版),并批量写入外部成品表并关联到出货单。
|
||||
@@ -160,6 +163,7 @@ def create_external_shipment(
|
||||
merchant=merchant,
|
||||
customer=customer,
|
||||
shipment_date=shipment_date,
|
||||
area=(area or '').strip(),
|
||||
remark=remark,
|
||||
created_by=created_by,
|
||||
external_id=external_id,
|
||||
|
||||
Reference in New Issue
Block a user