fix(dropship): generate pallet numbers atomically and extend full regressions
This commit is contained in:
@@ -46,8 +46,8 @@ export async function run(context) {
|
||||
OPTIONS)
|
||||
if (!plan || beforeItems.length === 0) return
|
||||
|
||||
const containerResponse = await context.request('GET', `${CONTAINERS}/${encodeURIComponent(containerId)}`)
|
||||
const container = context.apiSuccess(MODULE, 'PDA 就绪操作前读取内部模拟柜', containerResponse, '', OPTIONS)
|
||||
const containerResponse = await context.request('GET', `${CONTAINERS}/domestic/${encodeURIComponent(containerId)}`)
|
||||
const container = context.apiSuccess(MODULE, 'PDA 就绪操作前读取内部模拟柜', containerResponse, '', OPTIONS)?.container
|
||||
context.assert(MODULE, '操作前柜次仍无真实柜号和订舱关联', containerResponse,
|
||||
id(container?.id) === containerId && container?.cabinetNo === source.cabinetNo
|
||||
&& container?.containerNo == null && container?.oceanBookingId == null
|
||||
|
||||
Reference in New Issue
Block a user