From 14e1ec00865a829e9c6ed3df85a89858c55320a8 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期二, 16 十二月 2025 15:54:26 +0800
Subject: [PATCH] BindPalletNoPasteCode修改库存数量不正确
---
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
index 2e30ab5..440f87c 100644
--- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
+++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -1368,7 +1368,8 @@
{
sdId1 = sd1.Id;
// 搴撳瓨宸插瓨鍦� 鏇存柊鏁版嵁
- sd1.Qty += bind.Qty;
+ //sd1.Qty += bind.Qty;
+ sd1.Qty += model.SkuQty;
sd1.CompleteTime = comTime;
sd1.UpdateUser = userId;
sd1.UpdateTime = comTime;
@@ -1479,6 +1480,8 @@
bind.BitPalletMark = "0";
sd1.BitPalletMark = "0";
}
+ Db.Updateable(sd1).Where(m => m.Id == sdId1).ExecuteCommand();
+
//if (bind.Qty > pNum && isTextTable == 0)
if (bind.Qty > pNum)
{
@@ -1533,9 +1536,9 @@
#region 鏇存敼搴撳瓨鏄庣粏鏁伴噺
- sd1.Qty = bind.Qty;
- //鏇存敼搴撳瓨鏄庣粏鏁伴噺
- Db.Updateable(sd1).Where(m => m.Id == sdId1).ExecuteCommand();
+ //sd1.Qty = bind.Qty;
+ ////鏇存敼搴撳瓨鏄庣粏鏁伴噺
+ //Db.Updateable(sd1).Where(m => m.Id == sdId1).ExecuteCommand();
#endregion
--
Gitblit v1.8.0