refactor(cost-center): 收敛人工 SKU 自动创建流程
This commit is contained in:
@@ -115,6 +115,14 @@ test('人工确认前必须自动匹配履约配置,配置保存/定时任务
|
||||
configSource.includes('dateFrom: shiftDate(today, -29)'),
|
||||
'保存人工 SKU 配置后必须立即回填最近 30 天订单项',
|
||||
)
|
||||
const saveStart = configSource.indexOf('export async function saveManualFulfillmentConfig')
|
||||
const saveEnd = configSource.indexOf('async function retryPendingManualItems', saveStart)
|
||||
const saveBody = configSource.slice(saveStart, saveEnd)
|
||||
assert.ok(
|
||||
saveBody.indexOf('withTransaction(') <
|
||||
saveBody.indexOf('await syncManualChannelRule(saved, client)'),
|
||||
'标准商品、人工配置和人工渠道规则必须同一事务提交',
|
||||
)
|
||||
assert.ok(
|
||||
jobSource.includes("fulfillment_channel = 'manual'") &&
|
||||
jobSource.includes('fulfillment_config_id'),
|
||||
|
||||
Reference in New Issue
Block a user