| | |
| | | foreach (var item in dt_InventoryInfos) |
| | | { |
| | | if (materielInfo.Business_qty >= materielInfo.MinQty) break; |
| | | item.StockStatus = StockStatusEmun.鍑哄簱閿佸畾.ObjToInt(); |
| | | //item.StockStatus = StockStatusEmun.鍑哄簱閿佸畾.ObjToInt(); |
| | | while (item.StockQuantity > item.OutboundQuantity && materielInfo.Business_qty < materielInfo.MinQty) |
| | | { |
| | | Qty += materielInfo.BoxQty; |
| | |
| | | #endregion |
| | | |
| | | _unitOfWorkManage.BeginTran(); |
| | | _basicService.MaterielInfoService.Repository.UpdateData(materielInfo); |
| | | _materielInfoService.UpdateData(materielInfo); |
| | | _inventoryInfoService.Repository.UpdateData(dt_InventoryInfos); |
| | | _supplyTaskService.AddData(supplyTasks); |
| | | BaseDal.Db.InsertNav(deliveryOrder).Include(x => x.Details).ExecuteCommand(); |