From c476c9cf07c1b1920cc4bf51f60a78f5768c30fa Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期一, 23 十二月 2024 19:41:33 +0800
Subject: [PATCH] 实体变化引起变更

---
 Tiger.Business.MES/Transaction/YadaPacking.cs |    2 +-
 Tiger.Business.MES/BIZ/BIZ_MES_WO.cs          |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.MES/BIZ/BIZ_MES_WO.cs b/Tiger.Business.MES/BIZ/BIZ_MES_WO.cs
index 9d3fe8a..75a63f5 100644
--- a/Tiger.Business.MES/BIZ/BIZ_MES_WO.cs
+++ b/Tiger.Business.MES/BIZ/BIZ_MES_WO.cs
@@ -642,12 +642,12 @@
                     result.Data = ship.BusinessDate.Date == DateTime.Now.Date ? new()
                     {
                         ShipDoc = ship.ShipDoc,
-                        ShippingQty = ship.ShipQty,
+                        ShippingQty = ship.ShipQty.ToDouble(),
                         Tag = "Customer"
                     } : new()
                     {
                         ShipDoc = ship.ShipDoc,
-                        ShippingQty = ship.ShipQty,
+                        ShippingQty = ship.ShipQty.ToDouble(),
                         Tag = "InStoreLabel"
                     };
                     result.LocaleMsg = new($"鍑鸿揣淇℃伅瀛樺湪锛�");
diff --git a/Tiger.Business.MES/Transaction/YadaPacking.cs b/Tiger.Business.MES/Transaction/YadaPacking.cs
index 20bb28e..488cd68 100644
--- a/Tiger.Business.MES/Transaction/YadaPacking.cs
+++ b/Tiger.Business.MES/Transaction/YadaPacking.cs
@@ -404,7 +404,7 @@
 
                     //鑾峰彇鍑鸿揣鐘舵��
                     var ship = U9CDB.Queryable<mes_ShipList>().Where(q => q.MoDoc == CurBatch.WO.ORDER_NO && q.Status == 2 && SqlFunc.DateIsSame(q.BusinessDate, DateTime.Now)).First();
-                    int CurShipQty = 0;
+                    decimal CurShipQty = 0;
                     int WaitShipmentCarton = 0;
                     int WaitShipment = 0;
                     if (ship.IsNullOrEmpty()) { IsPrintCustomerLabel = false; }

--
Gitblit v1.9.3