gitea and Claude
4b4a7049a0
feat(bill): 支持未提交草稿查询与 flowId 直读
...
- bill list --state=draft/草稿 改走 flows/my 草稿列表,修复草稿不在
invoice/search 台账索引中导致 --state=draft 返回空的问题
- 新增 --template/--title/--staff/--page 过滤与分页;服务端 RQL 结合
客户端兜底匹配,模板版本化 ID 自动剥离哈希
- bill get 新增 flowId 直读通道,工作流/他人创建的草稿无需 flows/my 可见
- 补充域层与 CLI 单测、bill 文档、Skill 与 OpenAPI 参数说明
Fixes #153
Co-Authored-By: Claude <noreply@anthropic.com >
2026-11-18 16:06:34 +08:00
gitea
51fb54dfe8
fix: 统一单据写前校验与传输结果契约
...
将模板、当前员工、草稿创建/删除、审批计划和送审共七处 HTTP 调用收口到 bill/api.ts,业务层函数签名保持兼容。创建与预演复用实际规格校验,缺失明细规格、必填字段或超长文本均先于写入拒绝。
统一检查已知业务错误及有效流程 ID,保留 flow/value/裸对象成功包装与已有单号字段;补充业务拒绝、HTTP 失败、无效 ID、计划失败不送审及 CLI 非零退出回归,同步域文档。
验证:bun test 911 通过、0 失败;bun run check、git diff --check 通过。未调用真实企业接口。
2026-10-29 18:14:52 +08:00
gitea
a7974abb08
fix: address Codex PR review findings
2026-10-25 22:32:45 +08:00
gitea
1de9e3f552
fix(bill): use original template ids and bust metadata cache
...
- bill templates / bill spec 改用服务端 originalId(支持含冒号的原始 ID)
- 元数据 GET 增加 _t 时间戳 + no-cache,避免改名后读到缓存旧值
- skill: 业务输入必须由用户提供,禁止编造驳回意见等占位内容
2026-10-23 17:32:03 +08:00
gitea
258b347d4d
fix(bill): resolve bills outside the caller's own flow list
...
根因:flows/my 按当前凭证身份返回“我发起”的单据,系统或其他员工创建的单据不在其中,
导致 bill get 返回 NOT FOUND(测试企业 B26000012/B26000017 复现)。
修复:新增企业级通道 POST /api/flow/v2/flows/searchByCode 兜底,
命中后再拉一次完整详情,保证表头字段齐全。
2026-10-23 17:13:32 +08:00
gitea
782466ad80
fix(bill): expose usable template group ids
...
- bill templates 文本输出带 ID(组 ID,可直接用于 bill spec)
- getFormSpecification 自动剥离版本后缀,兼容 <groupId>:<hash>
- 修复 bill spec <模板ID> 返回 NOT FOUND
2026-10-23 17:05:49 +08:00
gitea
6628a546c5
feat(bill): fix code lookup and add draft validate/copy/delete
...
- fix: resolve bill by code/ID via flows/my + flowId detail, covering draft and paid bills
- feat: draft validation engine (currency consistency, foreign rate, totals, draft status)
- feat: bill validate, bill copy, bill delete commands
- docs: write API contracts (freeflow.edit/delete/submit, plans/computed) and skill routing
2026-10-23 16:46:42 +08:00
gitea
ffec604ed9
feat(bill,flow): add unified bill trace and flow get diagnostic engine (Phase 2)
2026-10-14 22:00:55 +08:00
gitea
a0ec7f95a7
feat(platform,datalink,bill): add workflow job drilldown, safe record batch-edit, audit, and spec linkage diagnostics (v0.8.11)
2026-09-29 20:00:55 +08:00
gitea
139e50395d
feat(bill): expose raw filterBy, select, distinct, and join in search API and CLI
2026-09-17 15:08:38 +08:00
gitea
ca713cfafc
feat(bill): add server-side filterBy support and clarify status skill rules
2026-09-17 14:58:02 +08:00
gitea
43595e2410
fix: sqlite cache migration, bill timeout protection with --mine, and add-link overwrite UX (v0.8.7)
2026-09-17 10:06:08 +08:00
gitea
a8e32cff32
feat(bill): support full invoice validation details, datalink cards, and department paths (v0.7.3)
2026-09-07 15:47:44 +08:00
gitea
aa2a61d44f
feat: add bill approval action suite
2026-09-05 21:56:38 +08:00
gitea
17e5418005
feat: add bill attachment download command
2026-09-05 20:55:39 +08:00
gitea
96d28da862
feat(bill): resolve archive references in bill details
2026-09-05 20:20:40 +08:00
gitea
60866efa2e
feat(bill): resolve referenced IDs for approval details
2026-09-05 19:59:15 +08:00
gitea
6468710730
feat: add CLI bill risk review
2026-09-05 19:45:21 +08:00
gitea
a8bdb67293
feat: add CLI bill approval flow timeline
2026-09-05 19:40:45 +08:00
gitea
5cf6c9e014
feat(bill): 引入费控单据与费用明细检索(支持按单号精准查询与 DataLink 字典自动还原)并发布 v0.3.0
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled
2026-08-27 11:48:20 +08:00