Lines 102-107
sub patron {
Link Here
|
102 |
return Koha::Patron->_new_from_dbic( $borrower ) if $borrower; |
102 |
return Koha::Patron->_new_from_dbic( $borrower ) if $borrower; |
103 |
} |
103 |
} |
104 |
|
104 |
|
|
|
105 |
=head3 item |
106 |
|
107 |
my $item = $claim->item; |
108 |
|
109 |
Return the return claim item |
110 |
|
111 |
=cut |
112 |
|
113 |
sub item { |
114 |
my ( $self ) = @_; |
115 |
my $item_rs = $self->_result->item; |
116 |
return Koha::Item->_new_from_dbic( $item_rs ); |
117 |
} |
118 |
|
105 |
=head3 resolve |
119 |
=head3 resolve |
106 |
|
120 |
|
107 |
$claim->resolve( |
121 |
$claim->resolve( |
Lines 138-144
sub resolve {
Link Here
|
138 |
)->store; |
152 |
)->store; |
139 |
|
153 |
|
140 |
if ( defined $params->{new_lost_status} ) { |
154 |
if ( defined $params->{new_lost_status} ) { |
141 |
$self->checkout->item->itemlost( $params->{new_lost_status} )->store; |
155 |
$self->item->itemlost( $params->{new_lost_status} )->store; |
142 |
} |
156 |
} |
143 |
} |
157 |
} |
144 |
); |
158 |
); |