$datedue,
$issuedate, # here interpreted as the renewal date
);
$issue = Koha::Checkouts->find( { itemnumber => $item_object->itemnumber } );
$issue = $item_object->checkout;
}
else {
-