From 39c15cf4430cfb515111a158f12f2460b0e1347a Mon Sep 17 00:00:00 2001 From: Willie Date: Mon, 25 May 2026 21:57:33 +0800 Subject: [PATCH] vault backup: 2026-05-25 21:57:33 --- .obsidian/workspace.json | 18 +++++++++--------- .../adhoc/collection-order-and-receipt.md | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 050ea89..93ea41b 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "prop-acc/index.md", + "file": "prop-acc/concepts/adhoc/collection-order-and-receipt.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "index" + "title": "collection-order-and-receipt" } } ] @@ -94,7 +94,7 @@ "state": { "type": "backlink", "state": { - "file": "prop-acc/index.md", + "file": "prop-acc/concepts/adhoc/collection-order-and-receipt.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -104,7 +104,7 @@ "unlinkedCollapsed": true }, "icon": "links-coming-in", - "title": "Backlinks for index" + "title": "Backlinks for collection-order-and-receipt" } }, { @@ -113,12 +113,12 @@ "state": { "type": "outgoing-link", "state": { - "file": "prop-acc/index.md", + "file": "prop-acc/concepts/adhoc/collection-order-and-receipt.md", "linksCollapsed": false, "unlinkedCollapsed": true }, "icon": "links-going-out", - "title": "Outgoing links from index" + "title": "Outgoing links from collection-order-and-receipt" } }, { @@ -156,13 +156,13 @@ "state": { "type": "outline", "state": { - "file": "prop-acc/index.md", + "file": "prop-acc/concepts/adhoc/collection-order-and-receipt.md", "followCursor": false, "showSearch": false, "searchQuery": "" }, "icon": "lucide-list", - "title": "Outline of index" + "title": "Outline of collection-order-and-receipt" } }, { @@ -196,9 +196,9 @@ }, "active": "b06ed69835363258", "lastOpenFiles": [ - "prop-acc/scenarios/adhoc/cancel-resident-withdrawal.md", "prop-acc/maps/adhoc-knowledge-map.md", "prop-acc/index.md", + "prop-acc/scenarios/adhoc/cancel-resident-withdrawal.md", "prop-acc/scenarios/adhoc/flow-a-counter-buy-ic-card.md", "概念-CollectionOrder与Receipt.md", "概念-A流与B流.md", diff --git a/prop-acc/concepts/adhoc/collection-order-and-receipt.md b/prop-acc/concepts/adhoc/collection-order-and-receipt.md index 18456e8..ba34b6d 100644 --- a/prop-acc/concepts/adhoc/collection-order-and-receipt.md +++ b/prop-acc/concepts/adhoc/collection-order-and-receipt.md @@ -79,12 +79,12 @@ graph LR ## 什么时候生成? -| 操作 | AdHocEvent | CollectionOrder | Receipt | -|---|---|---|---| -| **A 流前台买卡**(即收即付)| 立刻建 | 立刻建(Completed) | 立刻自动生成 | -| **B 流小程序下单**(尚未付款)| 立刻建(Pending) | 立刻建(Pending) | ❌ 还没生成 | -| **B 流支付回调到达**| 翻为 Completed | 翻为 Completed | 此刻自动生成 | -| **作废订单** | 翻为 Voided | 翻为 Failed | 翻为 Voided | +| 操作 | AdHocEvent | CollectionOrder | Receipt | +| ------------------ | ------------ | --------------- | --------- | +| **A 流前台买卡**(即收即付) | 立刻建 | 立刻建(Completed) | 立刻自动生成 | +| **B 流小程序下单**(尚未付款) | 立刻建(Pending) | 立刻建(Pending) | ❌ 还没生成 | +| **B 流支付回调到达** | 翻为 Completed | 翻为 Completed | 此刻自动生成 | +| **作废订单** | 翻为 Voided | 翻为 Failed | 翻为 Voided | > [!info] 收据怎么"自动生成" > 系统监听一个叫 `CollectionOrderCompleted` 的事件 —— 任何时候订单状态变为 Completed,系统自动建一张 Receipt 并附明细。业户不用做任何操作。