| | |
| | | using WIDESEA_DTO.ERP; |
| | | using WIDESEA_Core.Helper; |
| | | using System.Security.Cryptography; |
| | | using WIDESEA_Common.WareHouseEnum; |
| | | |
| | | namespace WIDESEA_InboundService |
| | | { |
| | |
| | | inboundOrderDetails.ForEach(x => |
| | | { |
| | | Dt_MaterielInfo? materielInfo = materielInfos.FirstOrDefault(t => t.MaterielCode == x.MaterialCode); |
| | | if (warehouse.WarehouseCode==WarehouseEnum.LLDYL.ToString() && x.MaterialThick<= 0) |
| | | { |
| | | throw new Exception($"ç©æ{x.MaterialCode}æ¡ç {x.BarCode}ç´å¾é大äº0"); |
| | | } |
| | | x.MaterialName = materielInfo?.MaterielName; |
| | | x.Unit = materielInfo?.MaterielUnit; |
| | | x.MaterialSpec = materielInfo.MaterielSpec; |
| | | }); |
| | | inboundOrder.Details = inboundOrderDetails; |
| | | inboundOrder.WarehouseId = warehouse.WarehouseId; |