Lines 24-30
use CGI;
Link Here
|
24 |
|
24 |
|
25 |
use C4::Auth qw( get_template_and_user ); |
25 |
use C4::Auth qw( get_template_and_user ); |
26 |
use C4::Output qw( output_html_with_http_headers ); |
26 |
use C4::Output qw( output_html_with_http_headers ); |
27 |
use C4::Items qw( ModItem ); |
|
|
28 |
use Koha::Checkouts; |
27 |
use Koha::Checkouts; |
29 |
use Koha::DateUtils qw( dt_from_string ); |
28 |
use Koha::DateUtils qw( dt_from_string ); |
30 |
|
29 |
|
Lines 134-141
elsif ( $op eq 'modify' ) {
Link Here
|
134 |
$checkout->date_due($new_due_date)->store; |
133 |
$checkout->date_due($new_due_date)->store; |
135 |
|
134 |
|
136 |
# Update items.onloan |
135 |
# Update items.onloan |
137 |
ModItem( { onloan => $new_due_date->strftime('%Y-%m-%d %H:%M') }, |
136 |
$checkout->item->onloan($new_due_date)->store; |
138 |
undef, $checkout->itemnumber ); |
|
|
139 |
} |
137 |
} |
140 |
|
138 |
|
141 |
$template->param( |
139 |
$template->param( |
142 |
- |
|
|