Lines 169-176
sub after_circ_action {
Link Here
|
169 |
my $patron_id = $payload->{patron_id}; |
169 |
my $patron_id = $payload->{patron_id}; |
170 |
my $collection_code = $payload->{collection_code}; |
170 |
my $collection_code = $payload->{collection_code}; |
171 |
my $date_due = $payload->{date_due}; |
171 |
my $date_due = $payload->{date_due}; |
|
|
172 |
my $date_returned = $payload->{date_returned}; |
172 |
|
173 |
|
173 |
Koha::Exceptions::Exception->throw("after_circ_action called with action: $action, ref: " . ref($date_due)); |
174 |
if ( $action eq 'renewal' or $action eq 'checkout') { |
|
|
175 |
Koha::Exceptions::Exception->throw("after_circ_action called with action: $action, ref: " . ref($date_due)); |
176 |
} |
177 |
elsif ( $action eq 'checkin' ) { |
178 |
Koha::Exceptions::Exception->throw("after_circ_action called with action: $action, ref: " . ref($date_returned)); |
179 |
} |
174 |
} |
180 |
} |
175 |
|
181 |
|
176 |
sub api_routes { |
182 |
sub api_routes { |
177 |
- |
|
|