Browse Source

Little fix to the returnbook routine so the correct branchcode is passed to the updatestats routine

3.0.x
rangi 21 years ago
parent
commit
6bd59eeef7
  1. 2
      C4/Circulation/Circ2.pm

2
C4/Circulation/Circ2.pm

@ -419,7 +419,7 @@ sub returnbook {
my $branchname=$branches->{$resrec->{'branchcode'}}->{'branchname'};
push (@$messages, "<b><font color=red>RESERVED</font></b> for collection by $borrower->{'firstname'} $borrower->{'surname'} ($borrower->{'cardnumber'}) at $branchname");
}
UpdateStats($env,'branch','return','0','',$iteminformation->{'itemnumber'});
UpdateStats($env,$env->{'branchcode'},'return','0','',$iteminformation->{'itemnumber'});
}
$dbh->disconnect;
return ($iteminformation, $borrower, $messages, $overduecharge);

Loading…
Cancel
Save