rod.setQty(qty);
try {
ReceivingOrderDetail rodResp = coreManager.save(ReceivingOrderDetail.class, rod);
rodResp = coreManager.getReceivingOrderDetail(rodResp.getId());
DisplayReceivingOrderDetail det = mapper.map(rodResp, DisplayReceivingOrderDetail.class);
det.setCostPrice(rodResp.getPoDetail().getProduct().getBuying().getCostPrice());
ProductMeasurement productMeasurement = null;
if(rodResp.getPoDetail().getProduct().getProductMeasurement() != null && !rodResp.getPoDetail().getProduct().getProductMeasurement().isEmpty()){
productMeasurement = rodResp.getPoDetail().getProduct().getProductMeasurement().iterator().next();
}
if(productMeasurement != null){
det.getPoDetail().getProduct().setProductMeasurement(mapper.map(productMeasurement, DisplayProductMeasurement.class));
}
resp = det;
} catch (Exception e) {