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

(-)a/Koha/Checkouts/ReturnClaim.pm (-3 / +15 lines)
Lines 66-71 sub store { Link Here
66
    return $self->SUPER::store;
66
    return $self->SUPER::store;
67
}
67
}
68
68
69
69
=head3 checkout
70
=head3 checkout
70
71
71
=cut
72
=cut
Lines 73-82 sub store { Link Here
73
sub checkout {
74
sub checkout {
74
    my ($self) = @_;
75
    my ($self) = @_;
75
76
76
    my $checkout = Koha::Checkouts->find( $self->issue_id )
77
    my $checkout_rs = $self->_result->issue;
77
      || Koha::Old::Checkouts->find( $self->issue_id );
78
    return unless $checkout_rs;
79
    return Koha::Checkout->new_from_dbic($checkout_rs);
80
}
81
82
=head3 old_checkout
83
84
=cut
85
86
sub old_checkout {
87
    my ($self) = @_;
78
88
79
    return $checkout;
89
    my $old_checkout_rs = $self->_result->old_issue;
90
    return unless $old_checkout_rs;
91
    return Koha::Old::Checkout->_new_from_dbic($old_checkout_rs);
80
}
92
}
81
93
82
=head3 patron
94
=head3 patron
(-)a/Koha/Schema/Result/ReturnClaim.pm (-5 / +4 lines)
Lines 280-286 __PACKAGE__->belongs_to( Link Here
280
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-17 10:01:24
280
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-17 10:01:24
281
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ik93SD3kLNecIyRgsBVKDQ
281
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ik93SD3kLNecIyRgsBVKDQ
282
282
283
=head2 issue
283
=head2 checkout
284
284
285
Type: belongs_to
285
Type: belongs_to
286
286
Lines 289-295 Related object: L<Koha::Schema::Result::Issue> Link Here
289
=cut
289
=cut
290
290
291
__PACKAGE__->belongs_to(
291
__PACKAGE__->belongs_to(
292
    "issue",
292
    "checkout",
293
    "Koha::Schema::Result::Issue",
293
    "Koha::Schema::Result::Issue",
294
    { issue_id => "issue_id" },
294
    { issue_id => "issue_id" },
295
    {
295
    {
Lines 298-304 __PACKAGE__->belongs_to( Link Here
298
    },
298
    },
299
);
299
);
300
300
301
=head2 old_issue
301
=head2 old_checkout
302
302
303
Type: belongs_to
303
Type: belongs_to
304
304
Lines 307-313 Related object: L<Koha::Schema::Result::OldIssue> Link Here
307
=cut
307
=cut
308
308
309
__PACKAGE__->belongs_to(
309
__PACKAGE__->belongs_to(
310
    "old_issue",
310
    "old_checkout",
311
    "Koha::Schema::Result::OldIssue",
311
    "Koha::Schema::Result::OldIssue",
312
    { issue_id => "issue_id" },
312
    { issue_id => "issue_id" },
313
    {
313
    {
314
- 

Return to bug 29495