docs: define executable knowledge step architecture

This commit is contained in:
cflmy committed 2026-10-23 15:46:02 +08:00
1 parent 1a13989230
commit 8bbe017a5e
10 files changed
+806 -68

No files matched your search

@@ -0,0 +1,26 @@
---
id: capability.order-pricing
type: Capability
import tax:../knowledge/tax-2026.mq.md
import order:../schema/order.mq.md
---
# 订单定价
## 含税价
+ `行`
**金额 = [订单行金额](at(行, "金额"))**
**品类 = [订单行品类](at(行, "品类"))**
**税率 = [适用税率](tax.标准税率.查询(品类))**
**结果 = [本行含税价](金额 * (1 + 税率))**
**结果**
## 含税总额
+ `订单`
- [逐个订单行](遍历 订单.行 为 行)
**行含税价 = [计算本行含税价](订单定价.含税价(行))**
**总额 = [汇总全部行含税价](sum(行含税价))**
**总额**