低碳经济
This commit is contained in:
@@ -38,6 +38,7 @@ test('PAYABLE fee selection uses only the explicit nullable supplierCategory fie
|
||||
assert.equal(supplierCategoryForFeeItem({ supplierCategory: 'BOOKING', feeTypeName: '操作费' }), 'BOOKING')
|
||||
assert.equal(supplierCategoryForFeeItem({ supplierCategory: null, feeTypeName: '拖车费' }), null)
|
||||
assert.equal(supplierCategoryForFeeItem({ supplierCategory: 'INVALID' }), null)
|
||||
assert.match(source, /payableSupplierCategory && source\.supplierCategory !== payableSupplierCategory/)
|
||||
})
|
||||
|
||||
test('Finance PAYABLE fixture creates an isolated ACTIVE supplier through the formal API', () => {
|
||||
|
||||
@@ -498,7 +498,7 @@ export async function run(context) {
|
||||
const invalidFixtureSources = fixtureSources.filter((source) => !source.feeSourceId || !source.customerId
|
||||
|| !source.businessDate || !(source.waybillId || source.shipmentId || source.orderNo) || source.marker !== context.marker
|
||||
|| (source.direction === 'PAYABLE' && (!source.supplierId || !source.supplierName
|
||||
|| source.supplierCategory !== payableSupplierCategory)))
|
||||
|| (payableSupplierCategory && source.supplierCategory !== payableSupplierCategory))))
|
||||
context.assert(MODULE, '输出完整 Finance 来源契约', null, invalidFixtureSources.length === 0,
|
||||
`sources=${fixtureSources.length}, invalid=${invalidFixtureSources.length};字段必须来自本轮费用来源、客户、订单/运单和真实柜次分摊`, OPTIONS)
|
||||
context.createdResources.financeFullFixtures = {
|
||||
|
||||
Reference in New Issue
Block a user