Lines 829-843
sub CanBookBeIssued {
Link Here
|
829 |
# |
829 |
# |
830 |
if ( $patron->category->category_type eq 'X' && ( $item_object->barcode )) { |
830 |
if ( $patron->category->category_type eq 'X' && ( $item_object->barcode )) { |
831 |
# stats only borrower -- add entry to statistics table, and return issuingimpossible{STATS} = 1 . |
831 |
# stats only borrower -- add entry to statistics table, and return issuingimpossible{STATS} = 1 . |
832 |
C4::Stats::UpdateStats({ |
832 |
C4::Stats::UpdateStats( |
833 |
branch => C4::Context->userenv->{'branch'}, |
833 |
{ |
834 |
type => 'localuse', |
834 |
branch => C4::Context->userenv->{'branch'}, |
835 |
itemnumber => $item_object->itemnumber, |
835 |
type => 'localuse', |
836 |
itemtype => $effective_itemtype, |
836 |
itemnumber => $item_object->itemnumber, |
837 |
borrowernumber => $patron->borrowernumber, |
837 |
itemtype => $effective_itemtype, |
838 |
ccode => $item_object->ccode}, |
838 |
borrowernumber => $patron->borrowernumber, |
839 |
usercode => $patron->categorycode, |
839 |
ccode => $item_object->ccode, |
840 |
); |
840 |
categorycode => $patron->categorycode, |
|
|
841 |
} |
842 |
); |
841 |
ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item |
843 |
ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item |
842 |
return( { STATS => 1 }, {}); |
844 |
return( { STATS => 1 }, {}); |
843 |
} |
845 |
} |
Lines 1741-1747
sub AddIssue {
Link Here
|
1741 |
location => $item_object->location, |
1743 |
location => $item_object->location, |
1742 |
borrowernumber => $borrower->{'borrowernumber'}, |
1744 |
borrowernumber => $borrower->{'borrowernumber'}, |
1743 |
ccode => $item_object->ccode, |
1745 |
ccode => $item_object->ccode, |
1744 |
usercode => $borrower->{'categorycode'} |
1746 |
categorycode => $borrower->{'categorycode'} |
1745 |
} |
1747 |
} |
1746 |
); |
1748 |
); |
1747 |
|
1749 |
|
Lines 2351-2356
sub AddReturn {
Link Here
|
2351 |
location => $item->location, |
2353 |
location => $item->location, |
2352 |
borrowernumber => $borrowernumber, |
2354 |
borrowernumber => $borrowernumber, |
2353 |
ccode => $item->ccode, |
2355 |
ccode => $item->ccode, |
|
|
2356 |
categorycode => $patron->categorycode, |
2354 |
}); |
2357 |
}); |
2355 |
|
2358 |
|
2356 |
# Send a check-in slip. # NOTE: borrower may be undef. Do not try to send messages then. |
2359 |
# Send a check-in slip. # NOTE: borrower may be undef. Do not try to send messages then. |
Lines 3225-3231
sub AddRenewal {
Link Here
|
3225 |
location => $item_object->location, |
3228 |
location => $item_object->location, |
3226 |
borrowernumber => $borrowernumber, |
3229 |
borrowernumber => $borrowernumber, |
3227 |
ccode => $item_object->ccode, |
3230 |
ccode => $item_object->ccode, |
3228 |
usercode => $patron->categorycode, |
3231 |
categorycode => $patron->categorycode, |
3229 |
} |
3232 |
} |
3230 |
); |
3233 |
); |
3231 |
|
3234 |
|