Bug 24380: (QA follow-up) Do not use compare float with precision

Forbidden pattern: Do not use compare float with precision (bug 24408).

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-04-15 12:48:44 +02:00 committed by Martin Renvoize
parent 806bee5a2e
commit 88239d126c
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ subtest 'Backdated returns should reduce fine if needed' => sub {
my ( $doreturn, $messages, $issue ) = AddReturn($item->barcode, undef, undef, dt_from_string('1999-01-01') );
$fine->discard_changes;
is( $fine->amountoutstanding, '0.000000', "Fine was reduced correctly with a backdated return" );
is( $fine->amountoutstanding+0, 0, "Fine was reduced correctly with a backdated return" );
};
$schema->storage->txn_rollback;