Commit 47f42982 by Joneq

修改发货判断

parent 37f478cc
Showing with 6 additions and 2 deletions
......@@ -178,11 +178,15 @@ class PalletLogic
if (OutStoreDetailModel::whereIn('out_store_detail_id',$outStoreDetailIdArr)->value('is_apply_customs') ){
throw new \Exception('报关单据不可在此发货');
}
//复核
if(PickTaskDetailModel::whereIn('pick_task_detail_id',$pickTaskDetailIdArr)->whereIn('pack_status',[1])->value('pick_task_detail_id')){
throw new \Exception('单据存在未复核数据,请确认');
}
}
if(PickTaskDetailModel::whereIn('pick_task_detail_id',$pickTaskDetailIdArr)->whereNotIn('pack_status',[2,3])->value('pick_task_detail_id')){
throw new \Exception('单据存在未复核或者已出库数据,不可重复操作');
if(PickTaskDetailModel::whereIn('pick_task_detail_id',$pickTaskDetailIdArr)->whereIn('pack_status',[4])->value('pick_task_detail_id')){
throw new \Exception('单据存在已出库数据,不可重复操作');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment