Lines 2943-2953
sub AddRenewal {
Link Here
|
2943 |
# Update the renewal count on the item, and tell zebra to reindex |
2943 |
# Update the renewal count on the item, and tell zebra to reindex |
2944 |
$renews = $biblio->{'renewals'} + 1; |
2944 |
$renews = $biblio->{'renewals'} + 1; |
2945 |
|
2945 |
|
|
|
2946 |
my $borrower = C4::Members::GetMember( borrowernumber => $borrowernumber ); |
2946 |
my $schema = Koha::Database->new()->schema(); |
2947 |
my $schema = Koha::Database->new()->schema(); |
2947 |
my $rule = $schema->resultset('DefaultBranchCircRule')->single( { branchcode => _GetCircControlBranch( $item, $borrower ) } ); |
2948 |
my $rule = $schema->resultset('DefaultBranchCircRule')->single( { branchcode => _GetCircControlBranch( $item, $borrower ) } ); |
2948 |
$rule ||= $schema->resultset('DefaultCircRule')->single(); |
2949 |
$rule ||= $schema->resultset('DefaultCircRule')->single(); |
2949 |
|
2950 |
|
2950 |
# If item was lost, it has now been found, reverse any list item charges if neccessary. |
2951 |
# If item was lost, it has now been found, reverse any list item charges if necessary. |
2951 |
my $itemlost = 0; |
2952 |
my $itemlost = 0; |
2952 |
if ( $item->{itemlost} ) { |
2953 |
if ( $item->{itemlost} ) { |
2953 |
$itemlost = 1; |
2954 |
$itemlost = 1; |
2954 |
- |
|
|