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:
parent
806bee5a2e
commit
88239d126c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue