forked from erp-dev/erp
feat: added fields into shipment and support external order system
This commit is contained in:
@@ -246,3 +246,14 @@ curl -X GET \
|
||||
- `shipment/services.py`: 业务逻辑层
|
||||
- `api_v1/views/shipment/`: API 视图层
|
||||
- `shipment/models.py`: 数据模型(SalesItem, Shipment)
|
||||
|
||||
---
|
||||
|
||||
## 外部系统兼容(数据模型说明)
|
||||
|
||||
为兼容外部遗留系统,Shipment 模块新增了“外部成品表”模型:
|
||||
|
||||
- **关系**:`Shipment` 1 → N `ExternalFinishedProduct`
|
||||
- 外键在 `ExternalFinishedProduct.shipment`(可空)
|
||||
- **Shipment 外部字段**:
|
||||
- `external_id`:外部订单号(可空)
|
||||
|
||||
Reference in New Issue
Block a user