}
unless ($itemnumber) {
# not found yet, fall back to basics
$pull_branches = [keys %items_by_branch];
if ($branches_to_use) {
$pull_branches = $branches_to_use;
} else {
# Try picking items where the home and pickup branch match first
PULL_BRANCHES:
-