|
|
|
@ -176,6 +176,10 @@ public class PoServiceImpl extends ServiceImpl<PoMapper, PurchaseOrder> implemen |
|
|
|
if (parts!=null && !parts.isEmpty()) { |
|
|
|
shelfLife = parts.getFirst().getDurabilityDays()!=0?parts.getFirst().getDurabilityDays():null; |
|
|
|
} |
|
|
|
// 如果物料没有设置shelfLife,报错提示:请联系工程维护产品有效期! |
|
|
|
if (shelfLife == null) { |
|
|
|
throw new XJException("请联系工程维护产品有效期!"); |
|
|
|
} |
|
|
|
// 根据库位获取仓库ID |
|
|
|
String warehouseId = null; |
|
|
|
Location location = locationService.getByLocationIdAndSite(inData.getSite(), inData.getLocationNo()); |
|
|
|
|