From 6e995cc2813c0b47a796f6186ea5bee8e3bbb1ef Mon Sep 17 00:00:00 2001 From: freedakgmail Date: Wed, 19 Aug 2026 07:39:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20recalcEntry=20=E6=8E=92=E9=99=A4=20taxBr?= =?UTF-8?q?eakdown=20=E5=AD=97=E6=AE=B5=EF=BC=8C=E8=AF=A5=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=8D=E5=9C=A8=20BatchEntry=20=E8=A1=A8=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/routes/payroll2.routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/payroll2.routes.ts b/backend/src/routes/payroll2.routes.ts index 5d4c5f2..da12dee 100644 --- a/backend/src/routes/payroll2.routes.ts +++ b/backend/src/routes/payroll2.routes.ts @@ -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,