Administrator
2024-02-21 3a33dd4767b20bd233714d35e1b0912f91e3546a
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -1816,6 +1816,12 @@
                {
                    throw new Exception("未查询到托盘信息,请核实!");
                }
                //判断托盘是否在库外
                var stockDetail = Db.Queryable<DataStockDetail>().First(m => m.IsDel == "0" && m.PalletNo == model.PalletNo);
                if (stockDetail != null && !string.IsNullOrEmpty(stockDetail.WareHouseNo))
                {
                    throw new Exception("该托盘未在库外,请核实!");
                }
                // 验证入库单明细是否存在
                var detail = Db.Queryable<BllArrivalNoticeDetail>().First(m => m.IsDel == "0" && m.Id == model.AsnDetailId && m.ASNNo == model.AsnNo && m.LotNo.Contains(model.LotNo));
                if (detail == null)
@@ -2079,6 +2085,13 @@
                //验证库存是否拥有该托信息
                if (stockDetail != null && stockDetail.Count > 0)
                {
                    foreach (var item in stockDetail)
                    {
                        if (!string.IsNullOrEmpty(item.WareHouseNo))
                        {
                            throw new Exception("该托盘未在库外,请核查!");
                        }
                    }
                    iscount = 1; //回流入库
                }
                #endregion