fix: recalcEntry 排除 taxBreakdown 字段,该字段不在 BatchEntry 表中

This commit is contained in:
freedakgmail
2026-08-19 07:39:43 +08:00
parent a7f3d5f3b5
commit 6e995cc281
+1 -1
View File
@@ -82,7 +82,7 @@ async function recalcEntry(orgId: string, batchId: string, batchMonth: string, b
const prevDeferred = await getPrevDeferred(orgId, employeeId, batchMonth)
const calcResult = await calcBatchEntry(orgId, employeeId, batchMonth, inputs, batchType as any, { prevDeferred })
const { systemSocialEmp, systemSocialOrg, systemHousingEmp, systemHousingOrg, systemSupplementaryHousingEmp, systemSupplementaryHousingOrg, ...entryData } = calcResult
const { systemSocialEmp, systemSocialOrg, systemHousingEmp, systemHousingOrg, systemSupplementaryHousingEmp, systemSupplementaryHousingOrg, taxBreakdown, ...entryData } = calcResult
await prisma.batchEntry.update({
where: { id: entryId },
data: entryData,