This commit is contained in:
2026-08-31 14:42:28 +08:00
parent f7328e7c60
commit d0770517dc
8 changed files with 129 additions and 20 deletions
@@ -33,12 +33,12 @@ describe('last-mile order presentation adapter', () => {
expect(row.orderType).toBe(expected)
})
it('shows the actual related order numbers returned after pallet merge', () => {
it('shows related inbound numbers instead of the shared tail-leg order number', () => {
const row = toLastMileOrderListItem({
id: '11', customerId: '100', orderNo: 'LMO-1', palletMergeFlag: 'MERGED',
palletMergeBatchId: 'PMG-1', palletMergeOrderNos: ['LMO-2', 'LMO-3'],
palletMergeBatchId: 'PMG-1', palletMergeInboundNos: ['NYEXX2608280001', 'NYEXX2608280002'],
})
expect(row.palletMergeRelation).toBe('LMO-2、LMO-3')
expect(row.palletMergeRelation).toBe('NYEXX2608280001、NYEXX2608280002')
})
})