Bug 24823: Fix spelling error and remove last of Catmandu
[koha-ffzg.git] / t / Prices.t
index b42ce9a..740bfe5 100644 (file)
@@ -48,7 +48,7 @@ my $today;
 
 for my $currency_format ( qw( US FR ) ) {
     t::lib::Mocks::mock_preference( 'CurrencyFormat', $currency_format );
-    subtest 'Configuration 1: 0 0' => sub {
+    subtest 'Configuration 1: 0 0 (Vendor List prices do not include tax / Invoice prices do not include tax)' => sub {
         plan tests => 8;
 
         my $biblionumber_0_0 = 42;
@@ -56,15 +56,15 @@ for my $currency_format ( qw( US FR ) ) {
         my $order_0_0 = {
             biblionumber     => $biblionumber_0_0,
             quantity         => 2,
-            listprice        => 82.000000,
-            unitprice        => 73.80000,
+            listprice        => 82,
+            unitprice        => 73.80,
             quantityreceived => 2,
             basketno         => $basketno_0_0,
             invoiceid        => $invoiceid_0_0,
             rrp              => 82.00,
             ecost            => 73.80,
             tax_rate         => 0.0500,
-            discount         => 10.0000,
+            discount         => 10,
             datereceived     => $today
         };
         $order_0_0 = C4::Acquisition::populate_order_with_prices(
@@ -150,22 +150,22 @@ for my $currency_format ( qw( US FR ) ) {
         );
     };
 
-    subtest 'Configuration 1: 1 1' => sub {
+    subtest 'Configuration 1: 1 1 (Vendor List prices do include tax / Invoice prices include tax)' => sub {
         plan tests => 8;
 
         my $biblionumber_1_1 = 43;
         my $order_1_1        = {
             biblionumber     => $biblionumber_1_1,
             quantity         => 2,
-            listprice        => 82.000000,
-            unitprice        => 73.800000,
+            listprice        => 82,
+            unitprice        => 73.80,
             quantityreceived => 2,
             basketno         => $basketno_1_1,
             invoiceid        => $invoiceid_1_1,
             rrp              => 82.00,
             ecost            => 73.80,
             tax_rate         => 0.0500,
-            discount         => 10.0000,
+            discount         => 10,
             datereceived     => $today
         };
 
@@ -252,14 +252,14 @@ for my $currency_format ( qw( US FR ) ) {
         );
     };
 
-    subtest 'Configuration 1: 1 0' => sub {
+    subtest 'Configuration 1: 1 0 (Vendor List prices include tax / Invoice prices do not include tax)' => sub {
         plan tests => 9;
 
         my $biblionumber_1_0 = 44;
         my $order_1_0        = {
             biblionumber     => $biblionumber_1_0,
             quantity         => 2,
-            listprice        => 82.000000,
+            listprice        => 82,
             unitprice        => 0,
             quantityreceived => 2,
             basketno         => $basketno_1_1,
@@ -267,7 +267,7 @@ for my $currency_format ( qw( US FR ) ) {
             rrp              => 82.00,
             ecost            => 73.80,
             tax_rate         => 0.0500,
-            discount         => 10.0000,
+            discount         => 10,
             datereceived     => $today
         };
 
@@ -373,14 +373,14 @@ for my $currency_format ( qw( US FR ) ) {
         );
     };
 
-    subtest 'Configuration 1: 0 1' => sub {
+    subtest 'Configuration 1: 0 1 (Vendor List prices do not include tax / Invoice prices include tax)' => sub {
         plan tests => 9;
 
         my $biblionumber_0_1 = 45;
         my $order_0_1        = {
             biblionumber     => $biblionumber_0_1,
             quantity         => 2,
-            listprice        => 82.000000,
+            listprice        => 82,
             unitprice        => 0,
             quantityreceived => 2,
             basketno         => $basketno_1_1,
@@ -388,7 +388,7 @@ for my $currency_format ( qw( US FR ) ) {
             rrp              => 82.00,
             ecost            => 73.80,
             tax_rate         => 0.0500,
-            discount         => 10.0000,
+            discount         => 10,
             datereceived     => $today
         };