Administrator
2024-02-21 b1001cfabce789d0c2373e71f06b02d9feeca0fb
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -1761,8 +1761,6 @@
                {
                    throw new Exception("-1:单据号不可为空!");
                }
                //根据单据号获取入库单总单
                var notice = Db.Queryable<BllArrivalNotice>().First(a => a.IsDel == "0" && a.ASNNo == model.AsnNo);
                if (model.AsnDetailId == null || model.AsnDetailId == 0)
                {
                    throw new Exception("-1:物料不可为空!");
@@ -1771,6 +1769,12 @@
                {
                    throw new Exception("-1:托盘号不可为空!");
                }
                //根据单据号获取入库单总单
                var notice = Db.Queryable<BllArrivalNotice>().First(a => a.IsDel == "0" && a.ASNNo == model.AsnNo);
                if (notice.Status != "0" && notice.Status != "1")
                {
                    throw new Exception("-1:入库单状态不是等待执行或执行完成!");
                }
                if (string.IsNullOrEmpty(model.LotNo))
                {
                    //判断是否为不限制批次单据