优化
This commit is contained in:
@@ -231,6 +231,11 @@ async function loadPricingEvidence(context) {
|
||||
|
||||
async function createMarkerContainer(context, resource) {
|
||||
if (context.financeFixtureHooks?.createMarkerContainer) return context.financeFixtureHooks.createMarkerContainer(context, resource)
|
||||
if (!resource) {
|
||||
blocker(context, '取得可创建柜次的测量入库单',
|
||||
'本轮没有完成测量的 marker-owned 入库单;跳过柜次及整柜成本 fixture,等待订单/测量前置修复')
|
||||
return null
|
||||
}
|
||||
if (context.financeFixtureHooks) return null
|
||||
const original = context.createdResources.phase3ContainerLoading
|
||||
const originalMarker = context.marker
|
||||
@@ -349,7 +354,7 @@ export async function run(context) {
|
||||
}
|
||||
}
|
||||
|
||||
const container = await createMarkerContainer(context, measured[0])
|
||||
const container = (measured[0] ? await createMarkerContainer(context, measured[0]) : null)
|
||||
|| context.createdResources?.phase3ContainerLoading
|
||||
const containerOwned = (container?.marker === context.marker || String(container?.marker || '').startsWith(`${context.marker}-`))
|
||||
&& container?.loadingPlanId && container?.containerBookingId
|
||||
|
||||
Reference in New Issue
Block a user