fix(customs): keep declaration pending while exceptions remain
This commit is contained in:
@@ -304,7 +304,7 @@ async function verifyPalletSummaries(context, warehouseId) {
|
||||
success(domestic) && summaryValid(d, ['totalCount', 'idleCount', 'occupiedCount'])
|
||||
&& Number(d.totalCount) === Number(d.idleCount) + Number(d.occupiedCount),
|
||||
`total=${d?.totalCount}, idle=${d?.idleCount}, occupied=${d?.occupiedCount}`)
|
||||
const overseas = await context.request('GET', '/api/platform/v1/warehouse-admin/pallets/summary?page=1&size=20')
|
||||
const overseas = await context.request('GET', '/api/platform/v1/overseas-warehouse-resources/pallets/summary?page=1&size=20')
|
||||
const o = overseas?.body?.data
|
||||
assert(context, '海外托盘汇总含闲置、占用和报废数量', overseas,
|
||||
success(overseas) && summaryValid(o, ['totalCount', 'idleCount', 'occupiedCount', 'scrappedCount'])
|
||||
|
||||
Reference in New Issue
Block a user