Fill statistics table properly for renewals; and issue->checkout, return->checkin
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
561e9437eb
commit
302da68ce5
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue