Fill statistics table properly for renewals; and issue->checkout, return->checkin

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Ryan Higgins 2008-05-25 02:54:18 -05:00 committed by Joshua Ferraro
parent 561e9437eb
commit 302da68ce5
3 changed files with 6 additions and 5 deletions

View File

@ -1034,7 +1034,7 @@ sub AddIssue {
C4::Context->userenv->{'branch'},
'issue', $charge,
'', $item->{'itemnumber'},
$item->{'itemtype'}, $borrower->{'borrowernumber'}
$item->{'itype'}, $borrower->{'borrowernumber'}
);
}
@ -1879,7 +1879,7 @@ sub AddRenewal {
$sth->finish;
}
# Log the renewal
UpdateStats( $branch, 'renew', $charge, '', $itemnumber );
UpdateStats( $branch, 'renew', $charge, '', $itemnumber, $item->{itype}, $borrowernumber);
}
sub GetRenewCount {

View File

@ -145,8 +145,9 @@
</tr>
<tr class="hilighted">
<td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
<option value ="issue">Issue</option>
<option value ="return">Return</option>
<option value ="issue">Checkout</option>
<option value ="renew">Renewal</option>
<option value ="return">Checkin</option>
<option value ="localuse">Local Use</option>
</select></td>
<td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">

View File

@ -291,7 +291,7 @@ sub calculate {
push @loopfilter, \%cell;
}
}
push @loopfilter,{crit=>"Issue|Return ",filter=>$type};
push @loopfilter,{crit=>"Event",filter=>$type};
push @loopfilter,{crit=>"Display by ",filter=>$dsp} if ($dsp);
push @loopfilter,{crit=>"Select Day ",filter=>$daysel} if ($daysel);
push @loopfilter,{crit=>"Select Month ",filter=>$monthsel} if ($monthsel);