From c9cd6646fdd1296a7feeb4384ebfe06ab90a52d7 Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期三, 27 十一月 2024 08:25:17 +0800
Subject: [PATCH] 修改批次长度判断 ,批次长度增加为11位和12位

---
 Wms/WMS.BLL/SysServer/MaterialsServer.cs |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/Wms/WMS.BLL/SysServer/MaterialsServer.cs b/Wms/WMS.BLL/SysServer/MaterialsServer.cs
index eb05ab5..6492fb9 100644
--- a/Wms/WMS.BLL/SysServer/MaterialsServer.cs
+++ b/Wms/WMS.BLL/SysServer/MaterialsServer.cs
@@ -150,7 +150,7 @@
 
                 if (count > 0)
                 {
-                    throw new Exception("鐗╂枡缂栫爜閲嶅");
+                    return 2;
                 }
 
 
@@ -209,14 +209,6 @@
             //鎹曡幏寮傚父
             try
             {
-
-                int count = GetMateByNo(matedto.SkuNo);
-
-                if (count > 0)
-                {
-                    throw new Exception("鐗╂枡缂栫爜閲嶅");
-                }
-
                 if (matedto.AdventTime > 365 && matedto.AdventTime < 30)
                 {
                     return 2;

--
Gitblit v1.8.0