From fadb9f2e2f89ebaa7dacf760146899eb6dd24ea8 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期三, 12 三月 2025 12:06:39 +0800
Subject: [PATCH] 优化了一些已知问题

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

diff --git a/Tiger.Business.WMS/Common/WmsTask.cs b/Tiger.Business.WMS/Common/WmsTask.cs
index 8ef5ce0..62b3218 100644
--- a/Tiger.Business.WMS/Common/WmsTask.cs
+++ b/Tiger.Business.WMS/Common/WmsTask.cs
@@ -144,7 +144,7 @@
                 var location = Biz.Db.Queryable<V_WH_UNIT>().Where(q => q.LOCATION_CODE == targetLocation && q.AUTH_ORG == option.CurOrg).IncludesAllFirstLayer().First();
                 if (!location.IsNullOrEmpty())
                 {
-                    var isTransfer = CurInvItem.Location?.LOCATION_CODE != location.LOCATION_CODE;
+                    var isTransfer = CurInvItem?.Location?.LOCATION_CODE != location.LOCATION_CODE;
                     foreach (var item in CurInvItem.Items)
                     {
                         item.STATUS = WMS_ITEM.STATUSs.InStore.GetValue();

--
Gitblit v1.9.3