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
be6ef2aa
Commit
be6ef2aa
authored
Jul 09, 2021
by
季圣华
Browse files
解决单据中查询商品库存的bug
parent
19e635b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/controller/MaterialController.java
View file @
be6ef2aa
...
@@ -201,7 +201,7 @@ public class MaterialController {
...
@@ -201,7 +201,7 @@ public class MaterialController {
Unit
unit
=
unitService
.
getUnit
(
material
.
getUnitId
());
Unit
unit
=
unitService
.
getUnit
(
material
.
getUnitId
());
if
(
material
.
getCommodityUnit
().
equals
(
unit
.
getOtherUnit
()))
{
if
(
material
.
getCommodityUnit
().
equals
(
unit
.
getOtherUnit
()))
{
if
(
unit
.
getRatio
()!=
0
)
{
if
(
unit
.
getRatio
()!=
0
)
{
stock
=
stock
.
divide
(
BigDecimal
.
valueOf
(
unit
.
getRatio
()));
stock
=
stock
.
divide
(
BigDecimal
.
valueOf
(
unit
.
getRatio
())
,
2
,
BigDecimal
.
ROUND_HALF_UP
);
}
}
}
}
}
}
...
...
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