н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/CabinOrderServices.cs
@@ -557,11 +557,13 @@ } #endregion inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); } infosUp.AddRange(inventoryInfos); inventory_Batch.StockQuantity = inventory_Batch.SupplyQuantity; inventory_Batch.AvailableQuantity = inventory_Batch.StockQuantity; inventory_Batch.SupplyQuantity = 0; batchesUp.Add(inventory_Batch); //_inventoryInfoService.UpdateData(inventoryInfos); @@ -655,12 +657,14 @@ } #endregion inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); } //_inventoryInfoService.UpdateData(inventoryInfos); infosUp.AddRange(inventoryInfos); inventory_Batch.StockQuantity = inventory_Batch.SupplyQuantity; inventory_Batch.AvailableQuantity = inventory_Batch.StockQuantity; inventory_Batch.SupplyQuantity = 0; //_inventory_BatchServices.UpdateData(inventory_Batch); batchesUp.Add(inventory_Batch); @@ -726,6 +730,7 @@ } #endregion inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); } н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/DeliveryOrderServices.cs
@@ -555,10 +555,12 @@ } #endregion inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); } inventory_Batch.StockQuantity = inventory_Batch.SupplyQuantity; inventory_Batch.AvailableQuantity = inventory_Batch.StockQuantity; inventory_Batch.SupplyQuantity = 0; infosUp.AddRange(inventoryInfos); batchesUp.Add(inventory_Batch); @@ -652,11 +654,13 @@ } #endregion inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); } //_inventoryInfoService.UpdateData(inventoryInfos); inventory_Batch.StockQuantity = inventory_Batch.SupplyQuantity; inventory_Batch.AvailableQuantity = inventory_Batch.StockQuantity; inventory_Batch.SupplyQuantity = 0; //_inventory_BatchServices.UpdateData(inventory_Batch); infosUp.AddRange(inventoryInfos); @@ -723,6 +727,7 @@ } #endregion inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); } н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/LKBusiness/CabinOrderServicesLK.cs
@@ -49,11 +49,13 @@ if (orderQty != qty) throw new Exception($"ççå ¥åºæ°éä¸ä¸è´,ä¸ä¼ æ°éã{orderQty}ã,åºåççæ°éã{qty}ã"); inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); infosUp.Add(inventoryInfo); Dt_Inventory_Batch inventory_Batch = inventory_Batches.First(x => x.MaterielCode == inventoryInfo.MaterielCode && x.BatchNo == inventoryInfo.BatchNo); inventory_Batch.StockQuantity = inventory_Batch.SupplyQuantity; inventory_Batch.AvailableQuantity = inventory_Batch.StockQuantity; inventory_Batch.SupplyQuantity = 0; batchesUp.Add(inventory_Batch); orderDetail.OrderDetailStatus = "已宿"; н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/LKBusiness/DeliveryOrderServicesLK.cs
@@ -43,11 +43,13 @@ if (orderQty != qty) throw new Exception($"çäºåºåºæ°éä¸ä¸è´,ä¸ä¼ æ°éã{orderQty}ã,åºåçäºæ°éã{qty}ã"); inventoryInfo.StockQuantity = inventoryInfo.SupplyQuantity; inventoryInfo.AvailableQuantity = inventoryInfo.StockQuantity; inventoryInfo.SupplyQuantity = 0; inventoryInfo.StockStatus = StockStatusEmun.å ¥åºå®æ.ObjToInt(); infosUp.Add(inventoryInfo); Dt_Inventory_Batch inventory_Batch = inventory_Batches.First(x => x.MaterielCode == inventoryInfo.MaterielCode && x.BatchNo == inventoryInfo.BatchNo); inventory_Batch.StockQuantity = inventory_Batch.SupplyQuantity; inventory_Batch.AvailableQuantity = inventory_Batch.StockQuantity; inventory_Batch.SupplyQuantity = 0; batchesUp.Add(inventory_Batch); orderDetail.OotDetailStatus = "已宿"; н¨Îļþ¼Ð/WIDESEA_WMSServer/WIDESEA_SquareCabinServices/extend/Check.cs
@@ -317,11 +317,8 @@ #endregion _inventoryInfoService.UpdateData(inventoryInfo); _supplyTaskService.Repository.DeleteAndMoveIntoHty(supplyTask, OperateTypeEnum.èªå¨å®æ); if (inventoryInfos.Count >= 1) { _inventoryInfoService.UpdateData(inventoryInfos); _inventory_BatchServices.UpdateData(inventory_Batch); } _unitOfWorkManage.CommitTran(); #endregion content.OK();