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

(-)a/Koha/Checkouts/ReturnClaim.pm (-3 / +14 lines)
Lines 73-82 sub store { Link Here
73
sub checkout {
73
sub checkout {
74
    my ($self) = @_;
74
    my ($self) = @_;
75
75
76
    my $checkout = Koha::Checkouts->find( $self->issue_id )
76
    my $checkout_rs = $self->_result->checkout;
77
      || Koha::Old::Checkouts->find( $self->issue_id );
77
    return unless $checkout_rs;
78
    return Koha::Checkout->_new_from_dbic($checkout_rs);
79
}
80
81
=head3 old_checkout
82
83
=cut
84
85
sub old_checkout {
86
    my ($self) = @_;
78
87
79
    return $checkout;
88
    my $old_checkout_rs = $self->_result->old_checkout;
89
    return unless $old_checkout_rs;
90
    return Koha::Old::Checkout->_new_from_dbic($old_checkout_rs);
80
}
91
}
81
92
82
=head3 patron
93
=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