[feature] Simpany 薪資申報同步與欠薪對帳 - #73
Merged
Merged
Conversation
- SimpanyClient.listSalaryMonthlyForms / getSalaryForm,assertSalaryReadOnly(GET + 路徑/query 白名單) - 解析時丟掉身分證字號 / 地址 / 國籍;薪資錯誤訊息不附 body 片段 - migration 0027:simpany_salary_forms(月份狀態)+ simpany_salary_declarations(員工 × 月) - src/lib/simpany-salary.ts:冪等同步、salaryReconciliation(payslip 期別優先 + FIFO,未申報月份估計另計) - MCP:simpany_list_salary_declarations、simpany_sync_salary_declarations、salary_arrears;SERVER_VERSION 1.7.0 - 薪資頁 Simpany 薪資申報區塊:月份格、欠薪表、明細 Sheet、未指定員工的薪資支出;zh-TW / en - docs:integrations.md、mcp.md
yui0303
approved these changes
Sep 28, 2026
✅ SonarQube Quality Gate passed — pathorsAI_internal0 open issues on this PR. |
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.
Simpany 整合加上唯讀的薪資申報:
SimpanyClient.listSalaryMonthlyForms/getSalaryForm(沿用自動登入與 token 快取),全部經assertSalaryReadOnly:只允許 GET、路徑與 query 白名單。simpany_salary_forms(每月一列,區分未建立/表單空白/已申報)與simpany_salary_declarations(每人每月申報金額)。salary_arrears:以申報的實際發薪為應發、以薪資交易與薪資單為已發,依付款日 FIFO 沖最舊的月份;未申報月份以最近一次申報推估並標示 estimated;對不到員工的薪資支出列為待指派。simpany_list_salary_declarations、simpany_sync_salary_declarations、salary_arrears(server 1.7.0)。部署前:prod 需先套用 migration 0027。
驗證:tsc、lint、build 通過。