1
0
forked from erp-dev/erp

feat: correct first

This commit is contained in:
2026-05-19 23:41:34 +08:00
parent f409f2e6ee
commit b97e86257e
25 changed files with 3885 additions and 25 deletions

View File

@@ -108,7 +108,7 @@
### 4.1 列表
- **GET** `/api/v1/payment-orders/`
- 返回字段:`supplier_name``payment_date``amount``status` 等。
- 返回字段:`supplier_name``payment_date``amount``status``is_external_source``external_source_id` 等。
### 4.2 创建
- **POST** `/api/v1/payment-orders/`
@@ -120,6 +120,11 @@
| `amount` | decimal | 付款金额(必须 > 0 |
| `remarks` | str | 可选 |
列表/详情响应补充字段:
- `is_external_source`:是否来源于外部系统同步。
- `external_source_id`:外部系统记录 ID用于关联与审计。
### 4.3 审批 / 作废
- **POST** `/api/v1/payment-orders/<id>/review/`
- `{"action": "approve"}``{"action": "cancel"}`
@@ -136,6 +141,11 @@
审批通过表示“确认收款”,作废则恢复为初始状态。
列表/详情响应同样包含:
- `is_external_source`
- `external_source_id`
---
## 6. 错误示例