|
|
@@ -662,8 +662,8 @@ public class PsiCollectService {
|
|
|
double remainBottle = totalBottle - MAX_ONCE_LIMIT_BOTTLE; // 库存剩余瓶数
|
|
|
double remainUndeductedBottle = needBottle - MAX_ONCE_LIMIT_BOTTLE; // 剩余未扣瓶数
|
|
|
double remainBox = remainBottle / spec; // 剩余箱数
|
|
|
- remainBox = Math.round(remainBox * 100.0) / 100.0; // 保留2位
|
|
|
- newDto.setCurrentInventory(String.valueOf(remainBox)); // 库存
|
|
|
+ //remainBox = Math.round(remainBox * 100.0) / 100.0; // 保留2位
|
|
|
+ newDto.setCurrentInventory(String.format("%.4f", remainBox)); // 库存
|
|
|
collectNumber = remainUndeductedBottle;
|
|
|
}
|
|
|
//else {
|