fix(fulfillment): 收口渠道商品与统一结算边界
This commit is contained in:
@@ -165,6 +165,15 @@ test('人工确认前必须自动匹配履约配置,配置保存/定时任务
|
||||
)
|
||||
})
|
||||
|
||||
test('统一结算金额未知时只生成待对账账单,不写 0 元实际成本', async () => {
|
||||
const source = await readFile(new URL('./manual-fulfillment-service.ts', import.meta.url), 'utf8')
|
||||
|
||||
assert.ok(source.includes("platformKey === 'on_account' && costFen <= 0"))
|
||||
assert.ok(source.includes('if (!onAccountCostPending)'))
|
||||
assert.ok(source.includes("reason: 'on_account_cost_pending'"))
|
||||
assert.ok(source.includes('costPending: onAccountCostPending'))
|
||||
})
|
||||
|
||||
test('人工成本缺失由管道按配置与快照生成并收口', async () => {
|
||||
const [pipelineSource, manualSource] = await Promise.all([
|
||||
readFile(new URL('../scheduler/finance-pipeline-jobs.ts', import.meta.url), 'utf8'),
|
||||
|
||||
Reference in New Issue
Block a user