修复财务整柜成本雪花ID精度

This commit is contained in:
2026-08-12 13:37:47 +08:00
parent c2b1ab92ff
commit 584b73faf5
2 changed files with 3 additions and 2 deletions
@@ -258,7 +258,7 @@ async function createContainerCost(context, customerId, container, voucherFileId
const body = { customerId: Number(customerId), costType: 'CONTAINER_SHARED', orderId: null,
// Finance names this field containerId, but its Firstleg cost snapshot contract
// resolves it as the loading plan ID, not the physical container booking ID.
containerId: Number(container.loadingPlanId), expenseName: `${context.marker}-整柜成本`, amount: 300,
containerId: String(container.loadingPlanId), expenseName: `${context.marker}-整柜成本`, amount: 300,
currency: 'CNY', voucherFileIds: [voucherFileId], remark: context.marker }
const response = await request(context, 'POST', '/api/platform/finance/v1/cost-entries', body)
if (response?.body?.code === 'FIN_400') {