test: carry sealed pallet into overseas acceptance
This commit is contained in:
@@ -1381,6 +1381,7 @@ export class AcceptanceRun {
|
||||
inboundId: fixture.inboundId,
|
||||
boxCode: fixture.boxCode,
|
||||
sealedCartonMarks: Array.isArray(fixture.sealedCartonMarks) ? fixture.sealedCartonMarks : [],
|
||||
sealedSourcePalletNos: Array.isArray(fixture.sealedSourcePalletNos) ? fixture.sealedSourcePalletNos : [],
|
||||
fulfillmentType: fixtureOrder.fulfillmentType || 'STANDARD',
|
||||
skuCodes: Array.isArray(fixtureOrder.skuCodes) ? fixtureOrder.skuCodes : [],
|
||||
skuLines: Array.isArray(fixtureOrder.skuLines) ? fixtureOrder.skuLines : [],
|
||||
|
||||
@@ -92,6 +92,7 @@ test('measurement and loading pass destination identity into the LOADED producer
|
||||
assert.match(finalize, /phase4InboundProducerFixtures = collectPhase4InboundProducerFixture/)
|
||||
const entry = read('../admin-test-env-acceptance.mjs')
|
||||
assert.match(entry, /runPhase4ProducerVariant\('DROPSHIP-PRIMARY', 'FBA', 'ONE_CLICK_DROPSHIP', true\)/)
|
||||
assert.match(entry, /sealedSourcePalletNos: Array\.isArray\(fixture\.sealedSourcePalletNos\)/)
|
||||
assert.match(entry, /orderFulfillmentType/)
|
||||
assert.match(entry, /fulfillmentType: fixtureOrder\.fulfillmentType \|\| 'STANDARD'/)
|
||||
assert.match(entry, /inboundFees\.ensureInitialCalculated\(this,/)
|
||||
|
||||
@@ -764,7 +764,7 @@ async function runReceiving(context, token, secondaryToken, merchantToken, prefe
|
||||
'/api/pda/v1/last-leg/receiving-containers/current/receipts/bulk', {
|
||||
inboundCode: firstInbound.inboundCode, palletCode: pallet.palletCode,
|
||||
packageCount: 1, idempotencyKey: key(context, 'dropship-bulk-forbidden'),
|
||||
}, (response) => a0409Message(response, /^One-click dropship inbound must be picked by complete source pallet$/))
|
||||
}, (response) => a0409Message(response, /^One-click dropship inbound must be operated by complete source pallet$/))
|
||||
}
|
||||
await receiveDropship(context, token, preferredProducer, dropshipInbounds)
|
||||
}
|
||||
|
||||
@@ -37,7 +37,10 @@ test('module covers the public tail-order write surface before PDA receiving', (
|
||||
assert.match(source, /feeItemName/)
|
||||
assert.match(source, /direction: 'RECEIVABLE'/)
|
||||
assert.match(source, /businessDate:/)
|
||||
assert.match(source, /reviewStatus === 'PENDING_REVIEW'/)
|
||||
assert.match(source, /originalCurrency === 'USD'/)
|
||||
assert.match(source, /currency === 'CNY'/)
|
||||
assert.match(source, /reviewStatus === 'PENDING'/)
|
||||
assert.match(source, /'Idempotency-Key': `\$\{context\.marker\}-tail-fee`/)
|
||||
assert.doesNotMatch(source, /supplierDescription/)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user