fix: recalcEntry 排除 taxBreakdown 字段,该字段不在 BatchEntry 表中
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user