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
3c9e5939
Commit
3c9e5939
authored
Dec 08, 2021
by
季圣华
Browse files
解决库存计算的bug
parent
0e82eac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java
View file @
3c9e5939
...
@@ -649,9 +649,7 @@ public class DepotItemService {
...
@@ -649,9 +649,7 @@ public class DepotItemService {
BigDecimal
transfOutTotal
=
stockObj
.
getTransfOutTotal
();
BigDecimal
transfOutTotal
=
stockObj
.
getTransfOutTotal
();
BigDecimal
assemOutTotal
=
stockObj
.
getAssemOutTotal
();
BigDecimal
assemOutTotal
=
stockObj
.
getAssemOutTotal
();
BigDecimal
disAssemOutTotal
=
stockObj
.
getDisAssemOutTotal
();
BigDecimal
disAssemOutTotal
=
stockObj
.
getDisAssemOutTotal
();
outSum
=
outTotal
.
subtract
(
transfOutTotal
).
subtract
(
assemOutTotal
).
subtract
(
disAssemOutTotal
);
outSum
=
outTotal
.
add
(
transfOutTotal
).
add
(
assemOutTotal
).
add
(
disAssemOutTotal
);
//取绝对值
outSum
=
outSum
.
abs
();
}
}
if
(
stockCheckSum
.
compareTo
(
BigDecimal
.
ZERO
)>
0
)
{
if
(
stockCheckSum
.
compareTo
(
BigDecimal
.
ZERO
)>
0
)
{
inSum
=
inSum
.
add
(
stockCheckSum
);
inSum
=
inSum
.
add
(
stockCheckSum
);
...
...
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