优化
This commit is contained in:
@@ -51,6 +51,9 @@ test('creates one real backend draft per order row and keeps its products togeth
|
||||
})
|
||||
|
||||
test('requires the old inbound code globally only while legacy manual mode is active', () => {
|
||||
assert.match(source, /async function refreshInboundCodePolicyForWrite\(\)/)
|
||||
assert.match(source, /if \(!await refreshInboundCodePolicyForWrite\(\)\) return/)
|
||||
assert.match(source, /if \(policy\.mode === 'AUTO'\)[\s\S]*?row\.inboundCode = ''/)
|
||||
assert.match(source, /manualInboundCodeRequired\.value[\s\S]*?rows\.findIndex\(\(row\) => !row\.inboundCode\.trim\(\)\)/)
|
||||
assert.match(source, /请填写第 \$\{missingInboundCodeIndex \+ 1\} 行的旧系统入仓码/)
|
||||
assert.match(source, /!row\.channelKey \|\| !row\.destinationWarehouseName/)
|
||||
|
||||
Reference in New Issue
Block a user