This commit is contained in:
2026-09-14 20:03:22 +08:00
parent d53de922db
commit ebc299d58a
28 changed files with 756 additions and 95 deletions
@@ -62,3 +62,14 @@ test('overseas plans preserve per-inbound ownership and shared physical identity
assert.match(source, /byPallet.get\(pallet.palletNo\) === identity/)
assert.match(source, /JSON.stringify\(replay\) === JSON.stringify\(plans\)/)
})
test('overseas receipt uses scoped PDA identity and scans each physical pallet once', () => {
assert.match(source, /await createPicker\(context/)
assert.match(source, /await disablePicker\(context/)
assert.match(source, /const sourceNos = \[\.\.\.new Set\(group.flatMap/)
assert.match(source, /current\/receipts\/pallet/)
assert.match(source, /duplicate.result === 'ALREADY_RECEIVED'/)
assert.match(source, /Number\(inbound.receivedPackages\) === item.expectedCartonMarks.length/)
assert.match(source, /completed.status === 'COMPLETED'/)
assert.match(source, /fullFlowVerified: false/)
})