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

(-)a/Koha/Checkouts/ReturnClaim.pm (-1 / +15 lines)
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
    );
(-)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 29519