Bug 21953: Add tests
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
65de5781f2
commit
7ff3f68e20
1 changed files with 8 additions and 0 deletions
|
@ -930,6 +930,14 @@ my ( $reused_itemnumber_1, $reused_itemnumber_2 );
|
|||
LostItem( $item_3->itemnumber, 'test', 0 );
|
||||
my $accountline = Koha::Account::Lines->find( { itemnumber => $item_3->itemnumber } );
|
||||
is( $accountline->issue_id, $checkout->id, "Issue id added for lost replacement fee charge" );
|
||||
is(
|
||||
$accountline->description,
|
||||
sprintf( "%s %s %s",
|
||||
$item_3->biblio->title || '',
|
||||
$item_3->barcode || '',
|
||||
$item_3->itemcallnumber || '' ),
|
||||
"Account line description must not contain 'Lost Items ', but be title, barcode, itemcallnumber"
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue