Bug 27203: Adjust unit tests
authorNick Clemens <nick@bywatersolutions.com>
Wed, 5 May 2021 15:28:26 +0000 (15:28 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 11 May 2021 12:46:10 +0000 (14:46 +0200)
It seems the issue here is that the price passed in is a string, and not a number, so the tax
value is not calculated when no unitprice is provided

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Acquisition/populate_order_with_prices.t

index 7e59ec2..50af03b 100755 (executable)
@@ -41,7 +41,7 @@ my $order_exc_tax = {
     tax_rate  => .1965,
     discount  => .42,
     rrp       => 16.99,
-    unitprice => 0.00,
+    unitprice => "0.00",
     quantity  => 8,
 };