From c30ac3ad95328c1a34661ecde471e4215df9dab3 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 17 十月 2025 19:54:03 +0800
Subject: [PATCH] 添加盘点功能、添加立方智能库补货功能(入库平库调拨出库,立库调拨入库)
---
新建文件夹/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
index 858b401..4b6696c 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/ClassLibrary2/InventoryInfoService.cs"
@@ -83,14 +83,14 @@
switch (request.orderType)
{
case "1": // 鍏ュ簱
- entity.StockQuantity += (float)orderQty;
+ entity.StockQuantity += orderQty;
entity.InDate = DateTime.Now;
entity.Remark = "鍏ュ簱鍗曞洖浼�";
break;
case "2": // 鍑哄簱
- entity.OutboundQuantity += (float)orderQty;
- entity.StockQuantity -= (float)orderQty;
+ entity.OutboundQuantity += orderQty;
+ entity.StockQuantity -= orderQty;
if (entity.StockQuantity < 0) entity.StockQuantity = 0;
entity.Remark = "鍑哄簱鍗曞洖浼�";
break;
@@ -103,11 +103,11 @@
decimal diff = Convert.ToDecimal(stock.differenceQuantity);
if (stock.IsProfit == "1") // 鐩樼泩
{
- entity.SupplyQuantity += (float)Math.Abs(diff);
+ entity.SupplyQuantity += Math.Abs(diff);
}
else // 鐩樹簭
{
- entity.SupplyQuantity -= (float)Math.Abs(diff);
+ entity.SupplyQuantity -= Math.Abs(diff);
if (entity.SupplyQuantity < 0) entity.SupplyQuantity = 0;
}
entity.PalletCode = stock.palletCode;
--
Gitblit v1.9.3