fix(dropship): generate pallet numbers atomically and extend full regressions
This commit is contained in:
@@ -41,8 +41,8 @@ export async function run(context) {
|
||||
OPTIONS)
|
||||
if (!bookingId) return
|
||||
|
||||
const containerResponse = await context.request('GET', `${CONTAINERS}/${encodeURIComponent(bookingId)}`)
|
||||
const container = context.apiSuccess(MODULE, '读取人工分柜关联柜次', containerResponse, '', OPTIONS)
|
||||
const containerResponse = await context.request('GET', `${CONTAINERS}/domestic/${encodeURIComponent(bookingId)}`)
|
||||
const container = context.apiSuccess(MODULE, '读取人工分柜关联柜次', containerResponse, '', OPTIONS)?.container
|
||||
context.assert(MODULE, '柜次保持准备清单的仓库和渠道范围', containerResponse,
|
||||
id(container?.id) === bookingId && id(container?.warehouseId) === id(manifest.warehouseId)
|
||||
&& container?.channelCode === manifest.channelCode,
|
||||
|
||||
Reference in New Issue
Block a user