use C4::Auth;
use C4::Koha;
use C4::Debug;
-use C4::Branch; # GetBranchesLoop
my $input = new CGI;
my $dbh = C4::Context->dbh;
my $frombranch = $input->param("frombranch");
my $tobranch = $input->param("tobranch");
-my $branchloop = GetBranchesLoop;
$template->param(frombranch => $frombranch) if ($frombranch);
$template->param(tobranch => $tobranch) if ($tobranch);
-$template->param(branchloop => $branchloop);
-
if ($frombranch && $tobranch) {
my $error;