Files
marqdo/examples/executable-knowledge/capabilities/order-pricing.mq.md
T
cflmyandCursor 352bc0d2c5 feat: finish remaining EK plan — bookstore chain, closure, 100-unit corpus
Make examples/executable-knowledge runnable on both backends, bind same-module
Type.member paths, add closure digests to locks/impact, and gate 100 corpus
units plus CLI smoke so S4–S6 leftover items have reviewable evidence.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 23:34:21 +08:00

712 B

markup, id, type, import
markup id type import
occlusion capability.order-pricing Capability
tax
../knowledge/tax-2026.mq.md

订单定价

按订单行取未税金额与品类,套用税率后汇总含税总额。

含税价

行

金额 = 订单行金额) 品类 = 订单行品类) 税率 = > tax.标准税率.查询 品类=品类 结果 = [本行含税价](金额 * (1 + 税率)) 结果

含税总额

订单

行列表 = 订单行列表) 总额 = 0

  • [逐个订单行](遍历 行列表 为 行) 行含税价 = > 订单定价.含税价 行=行 总额 = [累加](总额 + 行含税价) 总额