- DW 无 original_amount;discount_*_rate 实为折扣金额(应收3-dept0.45=实收2.55)→ 折扣率=1-Σ折扣/应收。摄入 payment_record.content.discount_cents + settlement_project(重摄)。 - discount_anchor:取真实治疗最深【部分】折扣 + 日期/项目。 -⚠ ️ 修 spec 两个 naive 点:① 免费洁牙/检查促销(100%off=0折)会霸占锚点→只看原价≥¥500+ratio>0; ② 保险方付款非诊所折扣→排除 discount_insurance_rate(只算科室/公司/卡)。 - 本地 338 患者:avg 6.4折,样例合理(种植9.4折/修复/促销2.9-5.1折)。 -⚠ ️ 留口径:近免费(>90%off)comp/全保 是否算锚点;¥500 阈值可调。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| admin | Loading commit data... | |
| agent | Loading commit data... | |
| ai | Loading commit data... | |
| auth | Loading commit data... | |
| facts | Loading commit data... | |
| patient | Loading commit data... | |
| persona | Loading commit data... | |
| plan | Loading commit data... | |
| plan-aggregate | Loading commit data... | |
| realtime-coach | Loading commit data... | |
| sync | Loading commit data... |