From 36746596927952a6b860129a62eec9059bf083a7 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期六, 26 四月 2025 18:06:27 +0800
Subject: [PATCH] 优化了备料逻辑

---
 Tiger.Business.WMS/Transaction/Old/InFinished.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.WMS/Transaction/Old/InFinished.cs b/Tiger.Business.WMS/Transaction/Old/InFinished.cs
index c329fec..88701cb 100644
--- a/Tiger.Business.WMS/Transaction/Old/InFinished.cs
+++ b/Tiger.Business.WMS/Transaction/Old/InFinished.cs
@@ -185,7 +185,7 @@
                     //    return action;
                     //}
 
-                    if (barcodeScanned.Qty != inv.Barcode.Qty.ToDecimal())
+                    if (barcodeScanned.Qty != inv.Barcode.Qty.ToDouble())
                     {
                         action.IsSuccessed = false;
                         action.LocaleMsg = Biz.L("WMS.CustSupChk.ScanItem.DiffQty", inv.SN); //$"姝ょ墿鏂欐潯鐮佸叆搴撴暟閲忎笌娓呯偣鏁伴噺涓嶅悓锛屼笉鑳藉叆搴�";
@@ -287,8 +287,8 @@
                 var total = Biz.Db.Queryable<BIZ_ERP_PROD_IN_SN>().Where(t => t.BUSINESSCODE.ToUpper() == billCode.ToUpper() && t.BUSINESSLINE == billLine)
                     .Where(x => x.STATUS == WMS_ITEM.STATUSs.InStore.GetValue() || x.SN == inv.SN).Sum(x => x.Qty);
                 billDetail.UPDATE_TIME = DateTime.Now.Date;
-                billDetail.INSTOCKQTY = total; //inv.Barcode.Qty.ToDecimal();
-                billDetail.INVENTORYQTY = total; //inv.Barcode.Qty.ToDecimal();
+                billDetail.INSTOCKQTY = total; //inv.Barcode.Qty.ToDouble();
+                billDetail.INVENTORYQTY = total; //inv.Barcode.Qty.ToDouble();
                 var isCompleted = false;
                 // 鏇存柊鍗曟嵁HEADER鐘舵��
                 var billHeader = Biz.Db.Queryable<BIZ_ERP_PROD_IN>().Where(t => t.BILLCODE.ToUpper() == billCode).First();

--
Gitblit v1.9.3