Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
0131346a
Commit
0131346a
authored
Nov 05, 2021
by
季圣华
Browse files
解决采购入库单状态bug
parent
de7ed4a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java
View file @
0131346a
...
@@ -458,9 +458,12 @@ public class DepotItemService {
...
@@ -458,9 +458,12 @@ public class DepotItemService {
//更新当前库存
//更新当前库存
updateCurrentStock
(
depotItem
);
updateCurrentStock
(
depotItem
);
}
}
//如果关联单据号非空则更新订单的状态
//如果关联单据号非空则更新订单的状态,单据类型:采购入库单或销售出库单
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getLinkNumber
()))
{
if
(
BusinessConstants
.
SUB_TYPE_PURCHASE
.
equals
(
depotHead
.
getSubType
())
changeBillStatus
(
depotHead
,
billStatus
);
||
BusinessConstants
.
SUB_TYPE_SALES
.
equals
(
depotHead
.
getSubType
()))
{
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getLinkNumber
()))
{
changeBillStatus
(
depotHead
,
billStatus
);
}
}
}
}
else
{
}
else
{
throw
new
BusinessRunTimeException
(
ExceptionConstants
.
DEPOT_HEAD_ROW_FAILED_CODE
,
throw
new
BusinessRunTimeException
(
ExceptionConstants
.
DEPOT_HEAD_ROW_FAILED_CODE
,
...
...
Write
Preview
Supports
Markdown
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