View | Details | Raw Unified | Return to bug 29495
Collapse All | Expand All

(-)a/Koha/Checkouts/ReturnClaim.pm (-1 / +15 lines)
Lines 101-106 sub patron { Link Here
101
    return Koha::Patron->_new_from_dbic( $borrower ) if $borrower;
101
    return Koha::Patron->_new_from_dbic( $borrower ) if $borrower;
102
}
102
}
103
103
104
=head3 item
105
106
  my $item = $claim->item;
107
108
Return the return claim item
109
110
=cut
111
112
sub item {
113
    my ( $self ) = @_;
114
    my $item_rs = $self->_result->item;
115
    return Koha::Item->_new_from_dbic( $item_rs );
116
}
117
104
=head3 resolve
118
=head3 resolve
105
119
106
    $claim->resolve(
120
    $claim->resolve(
Lines 137-143 sub resolve { Link Here
137
            )->store;
151
            )->store;
138
152
139
            if ( defined $params->{new_lost_status} ) {
153
            if ( defined $params->{new_lost_status} ) {
140
                $self->checkout->item->itemlost( $params->{new_lost_status} )->store;
154
                $self->item->itemlost( $params->{new_lost_status} )->store;
141
            }
155
            }
142
        }
156
        }
143
    );
157
    );
(-)a/Koha/Schema/Result/ReturnClaim.pm (-1 / +15 lines)
Lines 316-321 __PACKAGE__->belongs_to( Link Here
316
    },
316
    },
317
);
317
);
318
318
319
=head2 item
320
321
Type: belongs_to
322
323
Related object: L<Koha::Schema::Result::Item>
324
325
=cut
326
327
__PACKAGE__->belongs_to(
328
  "item",
329
  "Koha::Schema::Result::Item",
330
  { itemnumber => "itemnumber" },
331
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
332
);
333
319
sub koha_objects_class {
334
sub koha_objects_class {
320
    'Koha::Checkouts::ReturnClaims';
335
    'Koha::Checkouts::ReturnClaims';
321
}
336
}
322
- 

Return to bug 29495