| | |
| | | |
| | | } |
| | | |
| | | // åé
宿åï¼æ£æ¥æ¯ä¸ªè®¢åæç»çåé
æ
åµï¼è®¾ç½®æ£ç¡®çç¶æ |
| | | foreach (var detail in details) |
| | | { |
| | | decimal assignedQuantity = outStockLockInfos.Where(x => x.OrderDetailId == detail.Id).Sum(x => x.AssignQuantity); |
| | | if (assignedQuantity > 0) |
| | | { |
| | | // å·²ç»åé
å°åºåï¼æ 记为é缺æç¶æï¼æªå¼å§ï¼ |
| | | detail.OutSGOrderDetailStatus = OutOrderStatusEnum.æªå¼å§.ObjToInt(); |
| | | } |
| | | else |
| | | { |
| | | // æªåé
å°åºåï¼æ 记为缺æ |
| | | detail.OutSGOrderDetailStatus = OutOrderStatusEnum.缺æ.ObjToInt(); |
| | | } |
| | | } |
| | | |
| | | locationInfos.AddRange(_basicRepository.LocationInfoRepository.GetLocationInfos(outStocks.Where(x=>!x.LocationCode.IsNullOrEmpty() && !locationInfos.Select(x=>x.LocationCode).Contains(x.LocationCode)).Select(x => x.LocationCode).ToList())); |
| | | |
| | | } |
| | | |
| | | return (outStocks, outboundOrderDetails, outStockLockInfos, locationInfos, message); |