From ed903443d28d390401904427bd1c1befaade33bb Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期二, 18 三月 2025 10:16:46 +0800 Subject: [PATCH] 优化清点逻辑again --- 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..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