1
0
forked from erp-dev/erp

feat: added fields into shipment and support external order system

This commit is contained in:
2026-01-14 19:13:20 +08:00
parent cae0f8434e
commit 8846446ecf
5 changed files with 205 additions and 0 deletions

View File

@@ -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`:外部订单号(可空)