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
bfee3896
Commit
bfee3896
authored
Jan 06, 2023
by
季圣华
Browse files
解决订单中商品数量为0,转出入库单据时候状态为部分完成的bug
parent
4a6a32db
Changes
1
Show whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java
View file @
bfee3896
...
@@ -652,15 +652,18 @@ public class DepotItemService {
...
@@ -652,15 +652,18 @@ public class DepotItemService {
materialSumMap
.
put
(
materialAndSum
.
getMaterialExtendId
(),
materialAndSum
.
getOperNumber
());
materialSumMap
.
put
(
materialAndSum
.
getMaterialExtendId
(),
materialAndSum
.
getOperNumber
());
}
}
for
(
DepotItemVo4MaterialAndSum
materialAndSum
:
linkList
)
{
for
(
DepotItemVo4MaterialAndSum
materialAndSum
:
linkList
)
{
//过滤掉原单里面有数量为0的商品
if
(
materialAndSum
.
getOperNumber
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
)
{
BigDecimal
materialSum
=
materialSumMap
.
get
(
materialAndSum
.
getMaterialExtendId
());
BigDecimal
materialSum
=
materialSumMap
.
get
(
materialAndSum
.
getMaterialExtendId
());
if
(
materialSum
!=
null
)
{
if
(
materialSum
!=
null
)
{
if
(
materialSum
.
compareTo
(
materialAndSum
.
getOperNumber
())
!=
0
)
{
if
(
materialSum
.
compareTo
(
materialAndSum
.
getOperNumber
())
!=
0
)
{
res
=
BusinessConstants
.
BILLS_STATUS_SKIPING
;
res
=
BusinessConstants
.
BILLS_STATUS_SKIPING
;
}
}
}
else
{
}
else
{
res
=
BusinessConstants
.
BILLS_STATUS_SKIPING
;
res
=
BusinessConstants
.
BILLS_STATUS_SKIPING
;
}
}
}
}
}
return
res
;
return
res
;
}
}
...
...
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