Repository navigation
Add versioned fee precision and partial confirmation reconciliation - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
基金此前只能按单一申购费率计算未舍入份额,并将外部对账限制为一单一行。本变更新增可选、随历史条款冻结的 execution_policy:申购金额档位/固定费、明确的金额与份额舍入、按批次或合计舍入赎回费,以及可重放校验的带符号尾差。默认空策略保留旧运行语义;自动目标单向下取整,人工超精度指令原子拒绝。
新增 reconcile-batches,只读关联分批确认和分次收款,按确认分别统计实收、未收与超收,并保留模型日期/净值/金额差异。缺最终确认不算完成,重复、未知关联和越界日期拒绝;不会修改账户或把应收款当作可用现金。原一单一行入口继续保持严格契约。
验证:全量 133 测试、Ruff lint/format、103 包依赖检查通过。覆盖费率阈值、固定费、舍入尾差、提交原子性、历史规则冻结、导出与重放、重新签写摘要后的篡改拒绝、批次缺款/超收/未完成与重复凭证。使用公开招募说明书的三项算例验算通过;这些是算例,并非真实账户交易。输入/输出、尾差归属及仍需真实业务证据的边界同步文档,无私有数据或下载文件提交。