Lines 24-29
use DateTime;
Link Here
|
24 |
use Try::Tiny qw( catch try ); |
24 |
use Try::Tiny qw( catch try ); |
25 |
|
25 |
|
26 |
use C4::Circulation qw( LostItem MarkIssueReturned ); |
26 |
use C4::Circulation qw( LostItem MarkIssueReturned ); |
|
|
27 |
use Koha::Checkouts::Renewals; |
27 |
use Koha::Checkouts::ReturnClaims; |
28 |
use Koha::Checkouts::ReturnClaims; |
28 |
use Koha::Database; |
29 |
use Koha::Database; |
29 |
use Koha::DateUtils qw( dt_from_string ); |
30 |
use Koha::DateUtils qw( dt_from_string ); |
Lines 121-126
sub issuer {
Link Here
|
121 |
return Koha::Patron->_new_from_dbic( $issuer_rs ); |
122 |
return Koha::Patron->_new_from_dbic( $issuer_rs ); |
122 |
} |
123 |
} |
123 |
|
124 |
|
|
|
125 |
=head3 renewals |
126 |
|
127 |
my $renewals = $checkout->renewals; |
128 |
|
129 |
Return a Koha::Checkouts::Renewals set attached to this checkout |
130 |
|
131 |
=cut |
132 |
|
133 |
sub renewals { |
134 |
my ( $self ) = @_; |
135 |
my $renewals_rs = $self->_result->renewals; |
136 |
return unless $renewals_rs; |
137 |
return Koha::Checkouts::Renewals->_new_from_dbic( $renewals_rs ); |
138 |
} |
139 |
|
124 |
=head3 to_api_mapping |
140 |
=head3 to_api_mapping |
125 |
|
141 |
|
126 |
This method returns the mapping for representing a Koha::Checkout object |
142 |
This method returns the mapping for representing a Koha::Checkout object |
127 |
- |
|
|