Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Accounting: share product, SKU, rate, unbilled and recurring reads (unbilled paging is a no-op)

Đang mở
#99 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
api, backend-api-design, cli

Hướng nghiên cứu

Start by tracing the listed tools and commands through ProjectLookup, RateLookupResult, and WeekCheckResult, then compare the CLI and MCP request paths. Check how unbilled paging, sorting, totals, miss shapes, and recurring empty responses currently behave. Done means the migration checklist is covered, executable parity rows pass, and the MCP schema changes are intentional.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Priority: P3 Type: Refactor

Why

Same pattern as invoices: direct API calls on both surfaces with separate miss handling and request construction.

  • GetProduct / GetRecurringInvoice: {found:false} + exit 1 on the CLI, null on MCP.
  • ListAllSkus is on the MCP-only allowlist, but product list --prepaid already covers the prepaid subset; the unrestricted listing has no CLI command.
  • ListClientRates and rate list build the filter/paging/sort query separately, and treat a blank emp id differently.
  • Unbilled paging does nothing. GetUnallocatedTimesheetsByClientAsync ignores pageSize, skip, sortField and direction, yet unbilled list and GetUnbilledTimesheetsForClient both advertise them. An agent paging with skip gets the same full list every time and double-counts.
  • recurring list --json prints nothing on an empty response.

Migrate

  • Tools: ListProducts, GetProduct, ListAllSkus, GetProductDiscountsForClient, ListClientRates, GetClientsWithOutstandingTime, GetUnbilledTimesheetsForClient, ListRecurringInvoices, GetRecurringInvoice.
  • Shared miss shape for single-entity gets.
  • sku list (or product list --all-skus) CLI command; remove ListAllSkus from the allowlist.
  • One rate-list request builder shared by rate list and ListClientRates.
  • Unbilled: page/sort client-side in one shared report, or remove the parameters from both surfaces. Move the hour/amount totals out of Unbilled/ListCommand.
  • Executable parity rows.

How

ProjectLookup / RateLookupResult for reads, WeekCheckResult for the unbilled report.

Contract

Removing the unbilled parameters, or making them work, changes the MCP schema; the miss shapes are 0.4.0.

Part of #38.

Ngôn ngữ chính
C#
Star
3
Fork
0
Merge trung bình
28 phút
Pull request đã merge (30 ngày)
31

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SSWConsulting/TimePro.Tools

Tất cả issue của SSWConsulting/TimePro.Tools

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.