Bug 19759: Fix failing test in Chargelostitem.t

t/db_dependent/Circulation/Chargelostitem.t .. 1/6
 #   Failed test 'The accountline amount should be precessfee value '
 #   at t/db_dependent/Circulation/Chargelostitem.t line 71.
 #          got: '4.5968041848873e+20'
 #     expected: '459680418488730451968.00'

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-12-18 14:47:37 -03:00
parent 6325f9ed55
commit 130ace3899

View file

@ -68,7 +68,7 @@ C4::Accounts::chargelostitem( $borrowernumber, $issue->{itemnumber}, '1.00');
my $accountline = Koha::Account::Lines->search( { borrowernumber => $borrowernumber, accounttype => 'PF' } )->next();
is( int($accountline->amount), $itemtype->{processfee}, "The accountline amount should be precessfee value " );
is( int($accountline->amount), int($itemtype->{processfee}), "The accountline amount should be precessfee value " );
is( $accountline->itemnumber, $itemnumber1, "The accountline itemnumber should the linked with barcode '0101'" );
is( $accountline->note, C4::Context->preference("ProcessingFeeNote"), "The accountline description should be 'test'" );