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

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