提交一次代码

This commit is contained in:
andy
2026-07-12 09:57:54 +08:00
parent 9bd6bc1cd0
commit 6e47158d9e
46 changed files with 3524 additions and 48 deletions

View File

@@ -0,0 +1,58 @@
# 取消预订
## 适用业务
用于当前邮件要求取消或释放:
- FIT Reservation
- Group Block
- Allotment / Control Block
- 控房或配额
可接受信号:
- cancel booking / reservation / group
- release or cancel block
- cancel allotment / allocation / control block
- `CXL`
- 明确整单取消
## 事件类型
- 普通订单取消:`Cancel Booking`
- 控房/配额取消:`Cancel Allotment`
## 部分修改边界
减少房量、改日期、释放部分 allocation 可能是 Update不是整单 Cancel。不清楚时输出人工复核。
## Parent Allocation Linked Event
当当前证据已经确认 parent-to-child allocation creation且 parent group code 清楚时,必须为 parent group 生成 linked cancel/release 候选。
这个事件:
- 不替代 child New Booking。
- 不要求字面 cancel / CXL。
- 必须来自当前 parent-child split 证据。
- 不得由历史证据单独触发。
- 只是候选事件,不代表 PMS 已取消成功,不创建真实 TaskCard不写外部系统。
## 不适用
- 新建,除 parent release linked event 外。
- 普通 date/room/guest/price amendment。
- Voucher/payment evidence。
- Rooming List。
- 只有 Trace。
- cancel action 只在历史邮件中。
## 人工复核
- cancel target 不清。
- 出现 `CXL` 但不确定是否当前动作。
- 不清楚是整单取消还是部分 update。
- parent release evidence 缺 parent/child 关系。
- parent group code、child list 或 parent-child split evidence 不清。
- 多目标无法拆分。
- 系统上下文显示 conflict、lock 或 already completed state。