Bug 20912: (QA follow-up) Move Fees to Charges::
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 29 Jan 2019 11:28:28 +0000 (11:28 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 7 Mar 2019 17:27:36 +0000 (17:27 +0000)
In preparation for the introduction of Koha::Charges::Fines I have moved
this ::Fees class into the Koha::Charges:: namespace

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

C4/Circulation.pm
Koha/Charges/Fees.pm [moved from Koha/Fees.pm with 97% similarity]
t/db_dependent/Koha/Charges/Fees.t [moved from t/db_dependent/Koha/Fees.t with 97% similarity]

index 42eb690..23fafdd 100644 (file)
@@ -59,7 +59,7 @@ use Koha::RefundLostItemFeeRules;
 use Koha::Account::Lines;
 use Koha::Account::Offsets;
 use Koha::Config::SysPrefs;
-use Koha::Fees;
+use Koha::Charges::Fees;
 use Carp;
 use List::MoreUtils qw( uniq any );
 use Scalar::Util qw( looks_like_number );
@@ -716,7 +716,7 @@ sub CanBookBeIssued {
         #  So issuingimpossible should be ok.
     }
 
-    my $fees = Koha::Fees->new(
+    my $fees = Koha::Charges::Fees->new(
         {
             patron    => $patron,
             library   => $library,
@@ -1347,7 +1347,7 @@ sub AddIssue {
 
             my $patron = Koha::Patrons->find( $borrower );
             my $library = Koha::Libraries->find( $branch );
-            my $fees = Koha::Fees->new(
+            my $fees = Koha::Charges::Fees->new(
                 {
                     patron    => $patron,
                     library   => $library,
@@ -2893,7 +2893,7 @@ sub AddRenewal {
     }
 
 
-    my $fees = Koha::Fees->new(
+    my $fees = Koha::Charges::Fees->new(
         {
             patron    => $patron,
             library   => $library,
similarity index 97%
rename from Koha/Fees.pm
rename to Koha/Charges/Fees.pm
index 33bf3aa..62f5341 100644 (file)
@@ -1,4 +1,4 @@
-package Koha::Fees;
+package Koha::Charges::Fees;
 
 # Copyright 2018 ByWater Solutions
 #
@@ -27,11 +27,11 @@ use Koha::Exceptions;
 
 =head1 NAME
 
-Koha::Feess - Module calculating fees in Koha
+Koha::Charges::Fees - Module calculating fees in Koha
 
 =head3 new
 
-Koha::Fees->new(
+Koha::Charges::Fees->new(
     {
         patron    => $patron,
         library   => $library,
similarity index 97%
rename from t/db_dependent/Koha/Fees.t
rename to t/db_dependent/Koha/Charges/Fees.t
index db16a82..55c3242 100644 (file)
@@ -30,7 +30,7 @@ use C4::Calendar;
 use Koha::DateUtils qw(dt_from_string);
 
 BEGIN {
-    use_ok('Koha::Fees');
+    use_ok('Koha::Charges::Fees');
 }
 
 my $builder = t::lib::TestBuilder->new();
@@ -89,7 +89,7 @@ my $patron = $builder->build_object(
 my $dt_from = dt_from_string();
 my $dt_to = dt_from_string()->add( days => 6 );
 
-my $fees = Koha::Fees->new(
+my $fees = Koha::Charges::Fees->new(
     {
         patron    => $patron,
         library   => $library,