align finance fixture waybill and pool response

This commit is contained in:
2026-08-12 14:46:52 +08:00
parent c4e6c28da0
commit 0d2093054f
2 changed files with 5 additions and 3 deletions
@@ -399,7 +399,8 @@ export async function run(context) {
context.createdResources.financeFullFixtures = {
marker: context.marker, customerId,
orders: measured.map((item) => ({ orderId: id(item.orderId), orderNo: item.orderNo || null,
waybillId: item.waybillId ? id(item.waybillId) : null, inboundId: id(item.inboundId),
shipmentId: item.shipmentId ? id(item.shipmentId) : null,
waybillId: item.waybillId ? id(item.waybillId) : (item.shipmentId ? id(item.shipmentId) : null), inboundId: id(item.inboundId),
actualWeightKg: item.actualWeightKg, totalVolumeCbm: item.totalVolumeCbm,
businessDate: fixtures.find((fee) => fee.orderId === id(item.orderId))?.businessDate || null })),
feeSources: fixtures,