From 0a68c7142da0814044f81b7081e702b0f72078ef Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 12 三月 2025 11:29:01 +0800 Subject: [PATCH] 雅达-修复 WmsTask.cs 中的空引用问题 --- 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 b13368e..8ef5ce0 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