fix(overseas-pda): stabilize receiving state flow

This commit is contained in:
2026-08-27 15:56:13 +08:00
parent 7624f83d1e
commit 3fdfcb659a
5 changed files with 26 additions and 10 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ test('receiving adapter preserves the three signed photo roles in workflow order
})
test('receiving adapter exposes calculable candidate facts and workflow errors', () => {
const candidate = normalizeReceivingCandidate({ destinationCodes: ['ONT8', 'LAX'], plannedPalletCount: 4, currentAccount: true })
const candidate = normalizeReceivingCandidate({ containerNo: ' C10000000 ', status: 'WAIT_SIGN', planCount: 15, inboundCodeCount: 15, destinationCodes: ['ONT8', 'LAX'], plannedPalletCount: 4, currentAccount: true })
assert.equal(candidate.containerNo, 'C10000000')
assert.equal(candidate.status, 'WAIT_SIGN')
assert.equal(candidate.planCount, 15)
assert.equal(candidate.inboundCodeCount, 15)
assert.deepEqual(candidate.destinationCodes, ['ONT8', 'LAX'])
assert.equal(candidate.plannedPalletCount, 4)
assert.equal(candidate.currentAccount, true)