优化
This commit is contained in:
@@ -46,6 +46,7 @@ test('PAYABLE fee selection uses only the explicit nullable supplierCategory fie
|
||||
test('Finance PAYABLE fixture creates an isolated ACTIVE supplier through the formal API', () => {
|
||||
const body = buildSupplierBody('ADMIN-API-20260815-FINANCE', 'BOOKING')
|
||||
assert.equal(body.category, 'BOOKING')
|
||||
assert.deepEqual(body.carrierCodes, ['MATSON'])
|
||||
assert.equal(Object.hasOwn(body, 'scope'), false)
|
||||
assert.equal(body.status, 'ACTIVE')
|
||||
assert.match(body.name, /^财务验收供应商-/)
|
||||
@@ -53,6 +54,10 @@ test('Finance PAYABLE fixture creates an isolated ACTIVE supplier through the fo
|
||||
assert.match(source, /detail\?\.status === 'ACTIVE' && \(!category \|\| detail\?\.category === category\)/)
|
||||
})
|
||||
|
||||
test('Finance measurement can reuse real pallets from the selected pricing warehouse', () => {
|
||||
assert.match(source, /context\.context\.allowAnyExistingPallet = true/)
|
||||
})
|
||||
|
||||
test('fee detail writes preserve 19-digit fee item IDs as strings', () => {
|
||||
assert.doesNotMatch(source, /feeItemId: Number\(/)
|
||||
assert.match(source, /feeItemId: String\(feeItem\.id\)/)
|
||||
|
||||
Reference in New Issue
Block a user