This new script have been pushed just before 23463.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
use C4::Auth qw( get_template_and_user );
use C4::Output qw( output_html_with_http_headers );
-use C4::Items qw( ModItem );
use Koha::Checkouts;
use Koha::DateUtils qw( dt_from_string );
$checkout->date_due($new_due_date)->store;
# Update items.onloan
- ModItem( { onloan => $new_due_date->strftime('%Y-%m-%d %H:%M') },
- undef, $checkout->itemnumber );
+ $checkout->item->onloan($new_due_date)->store;
}
$template->param(