Commit be6ef2aa authored by 季圣华's avatar 季圣华
Browse files

解决单据中查询商品库存的bug

parent 19e635b7
...@@ -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);
} }
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment