Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
scm_wms_outstore_service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
47f42982
authored
May 19, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改发货判断
parent
37f478cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
app/Http/Model/Logic/PalletLogic.php
app/Http/Model/Logic/PalletLogic.php
View file @
47f42982
...
...
@@ -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
)
->
where
NotIn
(
'pack_status'
,[
2
,
3
])
->
value
(
'pick_task_detail_id'
)){
throw
new
\Exception
(
'单据存在
未复核或者
已出库数据,不可重复操作'
);
if
(
PickTaskDetailModel
::
whereIn
(
'pick_task_detail_id'
,
$pickTaskDetailIdArr
)
->
where
In
(
'pack_status'
,[
4
])
->
value
(
'pick_task_detail_id'
)){
throw
new
\Exception
(
'单据存在已出库数据,不可重复操作'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment