fix: verify archives while Huizhou delivery is blocked

This commit is contained in:
abaishu0730 committed 2026-10-21 15:26:45 +08:00
1 parent d8aa14d855
commit 57adef11ff
2 files changed
+22 -3

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@ function notifications(order){
const h=delivery(order,'huizhou');
return {normal:delivery(order),huizhou:h?{status:h.status,batchId:h.batchId||null,error:h.error||null,orderNos:[...(h.orderNos||[])],issues:[...(h.issues||[])]}:{status:'not_applicable',batchId:null,error:null,orderNos:[],issues:[]}};
}
function needsRuntimeCheck(order){return !!order?.archive&&(['pending','batched'].includes(order.status)||['pending','batched'].includes(delivery(order,'huizhou')?.status));}
function needsRuntimeCheck(order){return !!order?.archive&&(['pending','batched'].includes(order.status)||['pending','batched','blocked'].includes(delivery(order,'huizhou')?.status));}
function reserved(order){return !!order?.batchId||!!delivery(order,'huizhou')?.batchId;}
module.exports={modeOf,delivery,updateDelivery,notifications,needsRuntimeCheck,reserved};