From 7f58f6b5ebaeca5d0233b1895d9f533e11942627 Mon Sep 17 00:00:00 2001
From: Administrator <Administrator@DESKTOP-JIE70N9>
Date: 星期四, 08 五月 2025 15:02:20 +0800
Subject: [PATCH] 图片上传

---
 Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
index 16cb84d..33bac31 100644
--- a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
+++ b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -149,6 +149,10 @@
                 }
 
                 var labelQty = Db.Queryable<BllBoxInfo>().Where(m => m.IsDel == "0" && m.ASNDetailNo == id).Sum(m => m.Qty + (m.SamplingQty == null? 0: m.SamplingQty));
+                if (labelQty == null)
+                {
+                    labelQty = 0;
+                }
                 var qty = detail.Qty - labelQty;
                 if (qty<0)
                 {

--
Gitblit v1.8.0