Commit e127c2a3 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

plukkliste: exclude items allready bound for a hold

parent 232adcd6
......@@ -81,8 +81,10 @@ sub compute {
my @items = SELECT "items.*, branchtransfers.tobranch transfer_to FROM items
LEFT JOIN branchtransfers ON branchtransfers.itemnumber = items.itemnumber AND datearrived IS NULL
WHERE biblionumber = ?
AND deleted_on IS NULL"
LEFT JOIN reserves ON reserves.itemnumber = items.itemnumber
WHERE items.biblionumber = ?
AND deleted_on IS NULL
AND found IS NULL"
=> [$bnum] => sub {
return \%_;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment