From 89b87e81a4419a7fefef3a75766c02c463d97f01 Mon Sep 17 00:00:00 2001 From: bobwang <8205347@qq.com> Date: Thu, 23 Jan 2025 22:53:20 +0800 Subject: [PATCH] =?UTF-8?q?pick=20count=20=E5=8F=962=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WcfService1/BLL/lWmsOutPickRequest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WcfService1/BLL/lWmsOutPickRequest.cs b/WcfService1/BLL/lWmsOutPickRequest.cs index b50fd44..c5ea831 100644 --- a/WcfService1/BLL/lWmsOutPickRequest.cs +++ b/WcfService1/BLL/lWmsOutPickRequest.cs @@ -3424,7 +3424,7 @@ namespace DeiNiu.wms.Logical { logOut.Debug(string.Format("1 下架任务 {0},flowNO:{1},状态 {2}, 下架数量{3}", id, flowNo, state, pickCount)); - + pickCount = Math.Round(pickCount, 2); WmsPlateStock_tmp ptmp = new WmsPlateStock_tmp(); string custId = ptmp.getRelatedCustId(flowNo); @@ -3456,7 +3456,7 @@ namespace DeiNiu.wms.Logical WmsGoods goods = new WmsGoods(sr.goodsId); - pickCount = goods.isWeightOut() ? pickCount : ((int)(pickCount / goods.minOperateCount)) * goods.minOperateCount; + pickCount = goods.isWeightOut() ? pickCount : ((int)Math.Ceiling(pickCount / goods.minOperateCount)) * goods.minOperateCount; logOut.Debug(string.Format(" 下架任务 {0},flowNO:{1},状态 {2}, 下架数量{3}, gooddsname {4} ,minOperateCount {5}", id, flowNo, state, pickCount,goods.goodsName, goods.minOperateCount));