From a2f8c1434ba06a5231c4f9f8bc9373402f4228f7 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 27 三月 2025 20:38:56 +0800 Subject: [PATCH] 优化数据库事务处理及收货单功能 --- Tiger.Business.WMS/Transaction/Old/CustomerSupplyInNew.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tiger.Business.WMS/Transaction/Old/CustomerSupplyInNew.cs b/Tiger.Business.WMS/Transaction/Old/CustomerSupplyInNew.cs index 541d0f3..2fc6f05 100644 --- a/Tiger.Business.WMS/Transaction/Old/CustomerSupplyInNew.cs +++ b/Tiger.Business.WMS/Transaction/Old/CustomerSupplyInNew.cs @@ -199,7 +199,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); //$"姝ょ墿鏂欐潯鐮佸叆搴撴暟閲忎笌娓呯偣鏁伴噺涓嶅悓锛屼笉鑳藉叆搴�"; @@ -294,7 +294,7 @@ var total = Biz.Db.Queryable<BIZ_ERP_OTH_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.DELIVERYDATE = DateTime.Now.Date; - billDetail.QTY = total; //inv.Barcode.Qty.ToDecimal(); + billDetail.QTY = total; //inv.Barcode.Qty.ToDouble(); var isCompleted = false; // 鏇存柊鍗曟嵁HEADER鐘舵�� var billHeader = Biz.Db.Queryable<BIZ_ERP_OTH_IN>().Where(t => t.BILLCODE.ToUpper() == billCode).First(); -- Gitblit v1.9.3