fix: 后端统一非劳动合同类型不缴社保公积金

- payroll.service.ts: isNoSocialContract 补充 PARTTIME/OUTSOURCING/UNSIGNED
- payroll.routes.ts tax-preview: 增加 contract 类型判断,非劳动合同 socialBase/housingBase 强制 0
- roster.routes.ts: 之前已修复
This commit is contained in:
freedakgmail
2026-08-17 20:25:11 +08:00
parent 0c2b9ec5e8
commit 442063fb14
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ export async function calcBatchEntry(
// 劳务协议/实习协议人员:不缴纳社保公积金,基数强制 0
const latestContract = employee.contracts[0]
const isNoSocialContract = latestContract && ['LABOR', 'INTERNSHIP'].includes(latestContract.contractType)
const isNoSocialContract = latestContract && ['LABOR', 'INTERNSHIP', 'PARTTIME', 'OUTSOURCING', 'UNSIGNED'].includes(latestContract.contractType)
// 通过员工账户查年度标准(新逻辑),回退到旧配置(兼容)
const { socialAccount, housingAccount } = await getEmployeeAccounts(orgId, employeeId)