Bug 25638: Fix float/decimal comparison in API related tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Jun 2020 12:40:04 +0000 (14:40 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 16 Jun 2020 21:47:48 +0000 (21:47 +0000)
commit93c0e6863ab65e951fea5941a0abcc250fc3e2ff
tree460765e69f5a8068ab4035d6d6b2c17fd236ef69
parent72b8ca802381aa3b59dd2a1b68c40731a6351138
Bug 25638: Fix float/decimal comparison in API related tests

The previous fix from bug 25513 does not work in all versions we are
supporting.

Let's hack the float/decimal columns in the same way we did for integer.

prove t/db_dependent/api/v1/acquisitions_vendors.t \
      t/db_dependent/api/v1/patrons_accounts.t \
      t/db_dependent/api/v1/acquisitions_orders.t

Note that there is another error on U20 for acquisitions_orders.t

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8dfbc46aa4bebffb5e7bd262612ef9d08d24e5d3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Object.pm