Quick fix to prevent the mis-allocation of a resource. When checking if the resource searched by barcode is already part of the batch, we also include a filtering based on the expected resourceType. If the type is wrong, it will appear to the user that there is no lab ware associated with the searched barcode. This will prevent the allocation. However, this is not a good fix, as it prevents the delivery of a proper message to the user!
fixed resource type check
+ style improvement
Merge pull request #246 from benoitmangili/hotfixes/add_typecheck_for_scan_output

Hotfixes/add typecheck for scan output