浏览代码

景聚庭-库存调整

huangguoce 2 天之前
父节点
当前提交
1b9c7e2410

+ 2 - 2
jeeplus-modules/jeeplus-psi-management/src/main/java/com/jeeplus/psimanage/collect/service/PsiCollectService.java

@@ -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 {