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 |
); |