AddItem( { barcode => $barcode2, %item_infos }, $biblionumber2 );
my $borrowernumber =
- AddMember( categorycode => $categorycode, branchcode => $branchcode );
+ Koha::Patron->new({ categorycode => $categorycode, branchcode => $branchcode })->store->borrowernumber;
my $borrower = Koha::Patrons->find( $borrowernumber )->unblessed;
my $module = new Test::MockModule('C4::Context');
$issue_date = $yesterday_daily;
AddIssue( $borrower, $barcode2, $date_due, undef, $issue_date );
+ # Set timestamps to the same value to avoid a different order
+ Koha::Checkouts->search(
+ { borrowernumber => $borrower->{borrowernumber} }
+ )->update( { timestamp => dt_from_string } );
+
$expected_slip = <<EOS;
Checked out: