Lines 2974-2987
sub CreateBranchTransferLimit {
Link Here
|
2974 |
|
2974 |
|
2975 |
=head2 DeleteBranchTransferLimits |
2975 |
=head2 DeleteBranchTransferLimits |
2976 |
|
2976 |
|
2977 |
DeleteBranchTransferLimits(); |
2977 |
DeleteBranchTransferLimits($frombranch); |
|
|
2978 |
|
2979 |
Deletes all the branch transfer limits for one branch |
2978 |
|
2980 |
|
2979 |
=cut |
2981 |
=cut |
2980 |
|
2982 |
|
2981 |
sub DeleteBranchTransferLimits { |
2983 |
sub DeleteBranchTransferLimits { |
2982 |
my $dbh = C4::Context->dbh; |
2984 |
my $branch = shift; |
2983 |
my $sth = $dbh->prepare("TRUNCATE TABLE branch_transfer_limits"); |
2985 |
my $dbh = C4::Context->dbh; |
2984 |
$sth->execute(); |
2986 |
my $sth = $dbh->prepare("DELETE FROM branch_transfer_limits WHERE fromBranch = ?"); |
|
|
2987 |
$sth->execute($branch); |
2985 |
} |
2988 |
} |
2986 |
|
2989 |
|
2987 |
sub ReturnLostItem{ |
2990 |
sub ReturnLostItem{ |