Skip to content

[docs] 外銷勞務收款:單據上傳與進度管理設計提案 - #61

Merged
YJack0000 merged 1 commit into
mainfrom
docs/export-vat-tracking-design
Sep 1, 2026
Merged

[docs] 外銷勞務收款:單據上傳與進度管理設計提案#61
YJack0000 merged 1 commit into
mainfrom
docs/export-vat-tracking-design

Conversation

@YJack0000

Copy link
Copy Markdown
Contributor

這個 PR 是什麼

把 2026-08 Zonic(HNT Marketing LLC)七月期收款手動走過一次的外銷勞務收尾流程,收斂成一個 internal 模組的設計提案。純設計文件,docs/export-vat-tracking-design.md無 schema / code 變更

為什麼

外銷勞務收款有一條固定但容易漏的收尾:收款 → 拿水單 → 算台幣銷售額 → 開零稅率發票 → 報單據。這次全程手動——收款要翻銀行明細、水單要翻 contact@ 信箱、台幣銷售額手算、進度靠記憶。這模組要消掉這些痛點。

範圍(刻意收斂)

只做兩件事:單據有地方上傳、進度看得到追得動。不把 Simpany 做進流程——開發票、申報上傳仍由人在 Simpany 手動,internal 只記結果。

設計要點

  • 沿用既有表,不拆新表invoices / documents / billing_items / transactions 本來就為這件事鋪過路(external_status/external_ref 註解已寫明「Simpany 才是發票真相來源」)。
  • 最小 schema 增修(本 PR 不含,待設計拍板後另開實作 PR):
    • invoicestax_treatment / zero_rate_reason / exchange_rate / twd_sales_amount / filed_to_authority_on
    • documentsdoc_type 增加 remittance_cert(水單)
    • billing_itemszero_rated 旗標
  • 4 個新 MCP 工具attach_remittance_cert / compute_zero_rated_invoice / mark_einvoice_issued / mark_filed_to_authority
  • 一頁進度看板:每案六步狀態 + 水單/合約上傳區。

Schema 影響

本 PR:無。 這是設計文件。schema 變更會在設計 approve 後的實作 PR 才動,屆時走 /prod-migrate

驗收

Review 設計方向。實作分階段(見文件 §8),第一筆真實驗收資料就是本次 Zonic 七月期(台幣銷售額 418,737)。

把 2026-08 Zonic (HNT Marketing LLC) 手動走過的外銷勞務收尾流程
(收款 → 水單 → 算台幣銷售額 → 開零稅率發票 → 報單據)收斂成一個
internal 模組的設計:單據上傳 + 進度管理,不把 Simpany 做進流程。

沿用既有 invoices / documents / billing_items / transactions,只補最小欄位
(tax_treatment / exchange_rate / twd_sales_amount / filed_to_authority_on、
documents 的 remittance_cert doc_type、billing_items.zero_rated)。

僅設計文件,無 schema / code 變更。
@YJack0000
YJack0000 enabled auto-merge (squash) September 1, 2026 19:40
@YJack0000

Copy link
Copy Markdown
Contributor Author

@yui 這份是把這次 Zonic 外銷勞務收尾流程收斂成 internal 模組的設計提案,純設計文件、無 code/schema 變更。範圍已收斂成「單據上傳 + 進度管理,不接 Simpany」。有空幫忙 review 方向,OK 就 approve/merge,謝謝!

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ SonarQube Quality Gate passed — pathorsAI_internal

0 open issues on this PR.

@YJack0000
YJack0000 merged commit ae2881f into main Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants