From 62a49c78f68579a2dd51372526bef6939aa927bb Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 12 三月 2025 14:54:18 +0800
Subject: [PATCH] 雅达-新增MES相关类以扩展项目功能

---
 Tiger.Business.WMS/ERP/U9C_WMS.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Tiger.Business.WMS/ERP/U9C_WMS.cs b/Tiger.Business.WMS/ERP/U9C_WMS.cs
index 1041691..31b18dc 100644
--- a/Tiger.Business.WMS/ERP/U9C_WMS.cs
+++ b/Tiger.Business.WMS/ERP/U9C_WMS.cs
@@ -41,7 +41,7 @@
                     item.Segment5 = barcode.ItemCode;
                     item.PROD_DATE = barcode.DateCode.ToDateTime();
                     item.Unit = barcode.Unit;
-                    item.LotNo= barcode.LotNo;
+                    item.LotNo= barcode.LotNo.IsNullOrEmpty() ? item.Segment7 : barcode.LotNo;
                 }
 
                 //淇濆瓨鍒版暟鎹簱

--
Gitblit v1.9.3