Accounting: share invoice, receipt and credit-note reads between CLI and MCP
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
- 領域
- api, backend-api-design, cli
調査の方向性
Start with the listed accounting tools and CLI commands, then read CLAUDE.md, RateLookupResult, ProjectLookup, and WeekCheckResult for the intended shared shapes. Trace ToolsWithoutCliMirror and the existing executable parity rows before planning the migration. Done means all listed reads share result records and miss shapes, totals and validation are centralized, client-history commands exist, and parity rows pass.
索引モデルが issue の本文から書いたものです。
説明
Why
Every invoice, receipt and credit-note tool calls ITimeProApiClient directly, and the CLI commands keep their logic in the renderer. Differences that matter:
- A missing invoice/receipt is
{found:false, …}with exit 1 on the CLI and a barenullon MCP. - Totals exist only in CLI renderers: invoice line totals (
Invoices/LinesCommand), invoice timesheet hours/amounts (TimesheetsCommand), signed receipt payments (ReceiptsCommand), outstanding totals (Receipts/OutstandingCommand), credit-note totals (CreditNotes/ListCommand). GetInvoiceTimesheetsforwards a free-texttype; the CLI derives it from--write-off.invoice list,receipt listwith--jsonprint nothing (exit 0) when the API returns no page; MCP printsnull.GetInvoicesByClientandGetUnpaidInvoicesByClienthave no CLI command (on theToolsWithoutCliMirrorallowlist).
Migrate
- Tools:
ListInvoices,GetInvoice,GetInvoiceLines,GetInvoiceTimesheets,GetInvoiceReceipts,GetInvoicesByClient,GetUnpaidInvoicesByClient,ListPaidReceipts,GetReceiptDetail,GetClientOutstanding,ListCreditNotes. - A lookup/result record per read with a shared miss shape (
found:false+ id), and totals computed in the result, not the renderer. - Validate the invoice-timesheet type in one place.
- CLI commands for client invoice history and unpaid invoices (e.g.
invoice list --client NWIND [--unpaid]); remove both fromToolsWithoutCliMirror. - Executable parity rows with
ExpectParity = true.
How
Pure pass-throughs do not need a service class: the shared piece is the result record and the miss shape (RateLookupResult, ProjectLookup). Where there are totals, follow WeekCheckResult. Keep the receipt DTOs separate (see "Accounting API Shapes" in CLAUDE.md).
Contract
MCP null → {found:false} and added totals are 0.4.0 wire changes; the new CLI commands are patch-safe.
Part of #38.
- 主要言語
- C#
- スター
- 3
- フォーク
- 0
- 平均マージ
- 7分
- マージ済み PR(30日)
- 30
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SSWConsulting/TimePro.Tools のほかの issue
-
Priority: P3 Type: Refactor
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
SSWConsulting/TimePro.Tools#101 ·
メンテナーはふだん 1 日以内に返信
-
Priority: P3 Type: Refactor
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
SSWConsulting/TimePro.Tools#100 ·
メンテナーはふだん 1 日以内に返信
-
Accounting: share product, SKU, rate, unbilled and recurring reads (unbilled paging is a no-op)オープンPriority: P3 Type: Refactor
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
SSWConsulting/TimePro.Tools#99 ·
メンテナーはふだん 1 日以内に返信
-
Priority: P2 Type: Bug Type: Refactor
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
SSWConsulting/TimePro.Tools#97 ·
メンテナーはふだん 1 日以内に返信
-
Priority: P2 Type: Feature
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
SSWConsulting/TimePro.Tools#96 ·
メンテナーはふだん 1 日以内に返信
SSWConsulting/TimePro.Tools の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15462 ·
メンテナーはふだん 1 日以内に返信
-
:watch: Not Triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
comp:instrumentation.aspnetcore
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-telemetry/opentelemetry-dotnet-contrib#5427 ·
メンテナーはふだん 1 日以内に返信
-
design-proposal
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/aspnetcore#69592 ·
メンテナーはふだん 1 日以内に返信
-
Client Container Registry customer-reported needs-team-attention question Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Azure/azure-sdk-for-net#63470 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信