优化
This commit is contained in:
@@ -115,3 +115,13 @@ test('copy previous matching SKU skips other SKUs and preserves the target palle
|
||||
ctx.cartonBoxes[2].items[0].quantity = 9
|
||||
assert.equal(ctx.cartonBoxes[0].items[0].quantity, 12)
|
||||
})
|
||||
|
||||
test('预报箱可调整原SKU,新增无绑定箱也可清点', () => {
|
||||
const ctx = context(); const current = { ...box('B', 4), cartonMark: 'FORECAST-1', transferItemId: '1' }
|
||||
assert.equal(ctx.validCartonSkuLines(current), true)
|
||||
current.transferItemId = null
|
||||
assert.equal(ctx.validCartonSkuLines(current), true)
|
||||
current.items[0].skuCode = 'OTHER'
|
||||
assert.equal(ctx.validCartonSkuLines(current), false)
|
||||
assert.doesNotMatch(source, /:lock-first-sku="Boolean\(box.cartonMark\)"/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user