Bug 20912: (QA follow-up) Move Fees to Charges::

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>
This commit is contained in:
Martin Renvoize 2019-01-29 11:28:28 +00:00 committed by Nick Clemens
parent 8b4bcb3156
commit 8abb7edc98
3 changed files with 9 additions and 9 deletions

View 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,

View 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,

View 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,