[Koha-bugs] [Bug 7376] Transfer limits should be checked at check-in

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 27 11:41:29 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7376

--- Comment #124 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
    my $hbr = Koha::CirculationRules->get_return_branch_policy($item);
        # get the proper branch to which to return the item
    my $returnbranch = $hbr ne 'noreturn' ? $item->$hbr : $branch;
        # if $hbr was "noreturn" or any other non-item table value, then it
should 'float' (i.e. stay at this branch)

[...]

    # check if the return is allowed at this branch
    my ($returnallowed, $message) = CanBookBeReturned($item, $branch,
$returnbranch);

=> Looks like we should not pass $returnbranch if it equals $branch, right?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list