1
0
forked from erp-dev/erp

feat: sales_order api

This commit is contained in:
2025-11-30 17:06:48 +08:00
parent f6f0ec2ae9
commit ce1954ad58
15 changed files with 1426 additions and 44 deletions

View File

@@ -4,7 +4,7 @@
- 采购单在创建时默认进入 `PENDING`(审批中)状态,不再立即创建出入库记录。
- `business.services.review_purchase_order` 统一处理审批通过 (`APPROVED`) 与作废 (`CANCELLED`) 的业务规则。
- `api_v1/views/purchase_order.py` 暴露 `POST /api/v1/purchase-orders/<id>/review/` 接口作为唯一入口,便于前端、自动化流程和第三方系统统一调用。
- `api_v1/business/purchase/views.py` 暴露 `POST /api/v1/purchase-orders/<id>/review/` 接口作为唯一入口,便于前端、自动化流程和第三方系统统一调用。
## 2. 审批流程总览